BUNDLE-INIT(1)
π 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.gemspecyou specify to create the [Gemfile(5)][Gemfile(5)]. iconic behavior honestly β¨--gemfile=GEMFILEβ use the name you specify for the gemfile instead ofGemfile. 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