BUNDLE-INJECT(1)
β¨ NAME β¨
okay bestie, welcome to bundle-inject β the manual page for the bundle-inject command π
she's the one that adds named gem(s) with their version requirements straight into your Gemfile. yes queen, she writes to your Gemfile directly. we love a confident icon.
π SYNOPSIS π
bundle inject [GEM] [VERSION] [--source=SOURCE] [--group=GROUP]
that's it. that's the whole vibe check. GEM, VERSION, and two lil optional flags that we'll get to π«Ά
π DESCRIPTION π
so what she does is: she takes the named gem(s), along with their version requirements, and adds them to your resolved Gemfile(5). β¨
and like, not just one file β this command will add the gem to both your Gemfile(5) and your Gemfile.lock if it isn't listed yet. both. she does both. main character behaviour fr fr π
here's the glow-up in action:
bundle install
bundle inject 'rack' '> 0'
what just happened? she injected the rack gem with a version greater than 0 into your Gemfile(5) and your Gemfile.lock. slay. π
okay so real talk though β the bundle inject command was deprecated in Bundler 2.1 and will be removed in Bundler 3.0. π i know. it's giving "we need to talk." she still works, but she's on her way out, so don't build your whole personality around her, bestie. no cap.
πΈ OPTIONS πΈ
--source=SOURCEβ install the gem from the given source. you're telling her where to grab it from π§--group=GROUPβ install the gem into a bundler group. put her in a group, she's social like that π
and that's the whole page, bestie!! every flag, every path, every little detail, all preserved and all iconic π
this manual page is from March 2025 and belongs to BUNDLE-INJECT(1) β the General Commands Manual energy, the vintage era, the moment. mwah. πβ¨
π¦ where this page comes from
- alpine 3.22: ruby-bundler-doc 2.6.8-r0 Β· MIT
- alpine 3.23: ruby-bundler-doc 2.6.9-r0 Β· MIT
- alpine 3.24: ruby-bundler-doc 2.6.9-r0 Β· MIT
- debian trixie: ruby-bundler 2.6.7-2 Β· MIT OR Custom
- fedora 43: rubygem-bundler 2.6.9-27.fc43 Β· MIT AND (Ruby OR BSD-2-Clause)
- fedora 43: rubygem-bundler 2.6.9-32.fc43
- fedora 43: rubygem-bundler 2.6.9-33.fc43 Β· MIT AND (Ruby OR BSD-2-Clause)
- ubuntu questing: ruby-bundler 2.6.7-2ubuntu1
- ubuntu resolute: ruby-bundler 2.6.7-2ubuntu2 Β· MIT OR Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms