BUNDLE-ADD(1)
π 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. Providefalse, or a path as a string. Yes,falseis 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 theGemfilebut 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. Pass0to disable cooldown for this run. Seecooldowninbundle-config(1)for precedence rules. Do not skip the precedence rules part, fr fr.
π EXAMPLES π
- You can add the
railsgem to theGemfilewithout any version restriction. The source of the gem will be the global source.
bundle add rails
- You can add the
railsgem with version greater than1.1(not including1.1) and less than3.0.
bundle add rails --version "> 1.1, < 3.0"
- You can use the
https://gems.example.comcustom source and assign the gem to a group.
bundle add rails --version "~> 5.0.0" --source
"https://gems.example.com" --group "development"
- The following adds the gem entry to the
Gemfilewithout installing the gem. You can install gems later viabundle install.
bundle add rails --skip-install
- You can assign the gem to more than one group.
bundle add rails --group "development, test"
π SEE ALSO π
Gemfile(5)βhttps://bundler.io/man/gemfile.5.htmlbundle-remove(1)βbundle-remove.1.html
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