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]
11
13 Adds the named gem to the Gemfile and run bundle install.
14
15 Example:
16
17 bundle add rails
18
19 bundle add rails --version "< 3.0, > 1.1"
20
21 bundle add rails --version "~> 5.0.0" --source "https://gems.exam‐
22 ple.com" --group "development"
23
24 bundle add rails --group "development, test"
25
27 --version, -v
28 Specify version requirements(s) for the added gem.
29
30 --group, -g
31 Specify the group(s) for the added gem. Multiple groups should
32 be separated by commas.
33
34 --source, , -s
35 Specify the source for the added gem.
36
37
38
39
40 June 2017 BUNDLE-ADD(1)