BUNDLE-INJECT(1)

πŸ“¦
version 2.6.9 Β· 6 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, debian trixie, fedora 43, ubuntu questing, ubuntu resolute

✨ 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