BUNDLE-ADD(1)

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

πŸ’Ž BUNDLE-ADD(1) β€” the β€œadd a gem, bestie” era ✨

okay so this is bundle-add, straight out of the General Commands Manual, and it’s literally the glow-up button for your Gemfile. You give it a gem name, it slides that gem into the Gemfile, and then it runs bundle install. Main character energy only πŸ’…

πŸ¦‹ NAME πŸ¦‹

bundle-add β€” Add gem to the Gemfile and run bundle install πŸŽ€

🌸 SYNOPSIS 🌸

bundle add GEM_NAME [--group=GROUP] [--version=VERSION]
[--source=SOURCE] [--path=PATH] [--git=GIT|--github=GITHUB]
[--branch=BRANCH] [--ref=REF] [--cooldown=NUMBER] [--quiet]
[--skip-install] [--strict|--optimistic]

πŸ’… DESCRIPTION πŸ’…

Adds the named gem to the [Gemfile(5)][Gemfile(5)] and runs bundle install. No cap, that’s the whole vibe. If you’re not in the mood to install right this second, bundle install can be avoided by using the flag --skip-install β€” very β€œI’ll deal with it later” of you πŸ™ˆβœ¨

✨ OPTIONS ✨

  • --version=VERSION, -v=VERSION β€” Specify the version requirement(s) for the gem you’re adding. Version gatekeeping, but make it cute.
  • --group=GROUP, -g=GROUP β€” Specify the group(s) for the added gem. Multiple groups should be separated by commas. Group chat rules, honestly 🫢
  • --source=SOURCE, -s=SOURCE β€” Specify the source for the added gem. Where it comes from matters, bestie.
  • --require=REQUIRE, -r=REQUIRE β€” Adds require path to gem. Provide false, or a path as a string. Yes, false is a valid move here, don’t panic 😭
  • --path=PATH β€” Specify the file system path for the added gem. Local files, local vibes.
  • --git=GIT β€” Specify the git source for the added gem. Git era activated 🧚
  • --github=GITHUB β€” Specify the github source for the added gem. GitHub girlies rise.
  • --branch=BRANCH β€” Specify the git branch for the added gem. Branch out, literally 🌿
  • --ref=REF β€” Specify the git ref for the added gem. Lock in that exact ref, periodt.
  • --glob=GLOB β€” Specify the location of a dependency’s .gemspec, expanded within Ruby (single quotes recommended). The single-quotes note is important, iykyk πŸŽ€
  • --quiet β€” Do not print progress information to the standard output. Silence is golden, and lowkey iconic.
  • --skip-install β€” Adds the gem to the Gemfile but does not install it. It’s giving β€œadd to cart, checkout later” πŸ›’
  • --optimistic β€” Adds optimistic declaration of version. Optimism, but for version declarations ✨
  • --strict β€” Adds strict declaration of version. Strict queen behavior πŸ‘‘
  • --cooldown=<number> β€” Only consider gem versions published at least number days ago when resolving. Pass 0 to disable cooldown for this run. See cooldown in bundle-config(1) for precedence rules. Do not skip the precedence rules part, fr fr.

πŸŽ€ EXAMPLES πŸŽ€

  1. You can add the rails gem to the Gemfile without any version restriction. The source of the gem will be the global source.
bundle add rails
  1. You can add the rails gem with version greater than 1.1 (not including 1.1) and less than 3.0.
bundle add rails --version "> 1.1, < 3.0"
  1. You can use the https://gems.example.com custom source and assign the gem to a group.
bundle add rails --version "~> 5.0.0" --source
"https://gems.example.com" --group "development"
  1. The following adds the gem entry to the Gemfile without installing the gem. You can install gems later via bundle install.
bundle add rails --skip-install
  1. You can assign the gem to more than one group.
bundle add rails --group "development, test"

🌈 SEE ALSO 🌈


This has been the April 2026 edition of BUNDLE-ADD(1) from the General Commands Manual β€” go add those gems, bestie, and catch you in the next manpage πŸ’–πŸ«Άβœ¨

πŸ“¦ 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