BUNDLE-INIT(1)

πŸ“¦ version 4.0.6, in centos-stream 10

πŸ’– BUNDLE-INIT(1) πŸ’–

okay so real quick β€” this is a page from the General Commands Manual, and it's all about bundle init, the little command that hands you a fresh Gemfile like it's passing you a boba πŸ§‹. Bestie, it's genuinely so simple you're gonna slay this.


✨ NAME ✨

bundle-init β€” literally just generates a Gemfile into the current working directory πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bundle init [--gemspec=FILE]

🌸 DESCRIPTION 🌸

So init generates a default [Gemfile(5)][Gemfile(5)] right in your current working directory. That's it. That's the whole vibe. πŸŽ€

But here's the cute part β€” when you're adding a [Gemfile(5)][Gemfile(5)] to a gem that already has a gemspec, the --gemspec option will automatically add each dependency listed in the gemspec file straight into the newly created [Gemfile(5)][Gemfile(5)]. No cap, it just does it for you. πŸ”₯


πŸ’… OPTIONS πŸ’…

  • --gemspec=GEMSPEC β€” use the .gemspec you specify to create the [Gemfile(5)][Gemfile(5)]. iconic behavior honestly ✨
  • --gemfile=GEMFILE β€” use the name you specify for the gemfile instead of Gemfile. yeah you can rename it, main character energy πŸ‘‘

πŸŽ€ FILES πŸŽ€

Included in the default [Gemfile(5)][Gemfile(5)] that gets generated is this line:

# frozen_string_literal: true

That's a magic comment, and it was supported for the first time in Ruby 2.3. πŸͺ„ The presence of this line results in all string literals in the file being implicitly frozen. lowkey a big deal, fr fr 🧊


🌈 SEE ALSO 🌈

Gemfile(5) β€” https://bundler.io/man/gemfile.5.html


okay that's the whole page bestie, go forth and init 🌟

mwah πŸ’‹ β€” this was the General Commands Manual entry for BUNDLE-INIT(1), dated April 2026.

πŸ“¦ where this page comes from
  • centos-stream 10: ruby4.0 4.0.6-37.el10 Β· (Ruby OR BSD-2-Clause) AND (Ruby OR BSD-2-Clause OR GPL-1.0-or-later) AND BSD-3-Clause AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND ISC AND LicenseRef-Fedora-Public-Domain AND MIT AND CC0-1.0 AND zlib AND Unicode-DFS-2015 AND HPND-Markus-Kuhn AND Ruby-pty AND (Ruby OR BSD-2-Clause OR Python-2.0.1) AND BSD-2-Clause AND (Apache-2.0 OR BSL-1.0) AND GPL-2.0-only AND CC-BY-2.5 AND OFL-1.1-RFN AND BSL-1.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms