1BUNDLE-ADD(1) BUNDLE-ADD(1)
2
3
4
6 bundle-add - Add gem to the Gemfile and run bundle install
7
9 bundle add GEM_NAME [--group=GROUP] [--version=VERSION]
10 [--source=SOURCE] [--skip-install] [--strict] [--optimistic]
11
13 Adds the named gem to the Gemfile and run bundle install. bundle
14 install can be avoided by using the flag --skip-install.
15
16 Example:
17
18 bundle add rails
19
20 bundle add rails --version "< 3.0, > 1.1"
21
22 bundle add rails --version "~> 5.0.0" --source "https://gems.exam‐
23 ple.com" --group "development"
24
25 bundle add rails --skip-install
26
27 bundle add rails --group "development, test"
28
30 --version, -v
31 Specify version requirements(s) for the added gem.
32
33 --group, -g
34 Specify the group(s) for the added gem. Multiple groups should
35 be separated by commas.
36
37 --source, , -s
38 Specify the source for the added gem.
39
40 --skip-install
41 Adds the gem to the Gemfile but does not install it.
42
43 --optimistic
44 Adds optimistic declaration of version
45
46 --strict
47 Adds strict declaration of version
48
49
50
51
52 November 2018 BUNDLE-ADD(1)