BUNDLE-INIT(1)
π BUNDLE-INIT π
okay bestie, welcome to the bundle-init page β this is the bundle-init(1) situation from the General Commands Manual, and she is so much simpler than she looks π«Ά
β¨ NAME β¨
bundle-init β literally just generates a Gemfile into the current working directory, no cap π
πΈ SYNOPSIS πΈ
bundle init [--gemspec=FILE]
π DESCRIPTION π
okay so here's the tea β β init generates a default [Gemfile(5)][Gemfile(5)] right there in your current working directory. iconic behavior, zero effort, she just appears π
and here's the part that's giving main character energy: 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 that gemspec file into the brand-new [Gemfile(5)][Gemfile(5)] you just made. likeβ¦ she read your gemspec and did the homework for you?? obsessed πβ¨
π OPTIONS π
--gemspec=GEMSPECβ use the specified.gemspecto create the [Gemfile(5)][Gemfile(5)]. yes, you're telling her which gemspec to build from π--gemfile=GEMFILEβ use the specified name for the gemfile instead ofGemfile. so if you're feeling quirky and want her named something else, this is your moment π
π FILES π
included in the default [Gemfile(5)][Gemfile(5)] that gets generated is this line:
# frozen_string_literal: true
this is 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. yes bestie, it's doing a lot with a single little comment β she's efficient like that π β¨
π¦ SEE ALSO π¦
[Gemfile(5)][Gemfile(5)] β https://guides.rubygems.org/gemfile/
[Gemfile(5)]: https://guides.rubygems.org/gemfile/
and that's the whole page, bestie π«Ά this one's from April 2026, BUNDLE-INIT(1), and honestly? she ate π go forth and generate that Gemfile β¨
π¦ where this page comes from
- fedora 44: rubygem-bundler 4.0.20-39.fc44
- fedora 44: rubygem-bundler 4.0.20-40.fc44 Β· MIT AND (Ruby OR BSD-2-Clause)
- ubuntu stonking: ruby-bundler 4.0.18-1 Β· MIT OR Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms