1BUNDLE-ADD(1)                                                    BUNDLE-ADD(1)
2
3
4

NAME

6       bundle-add - Add gem to the Gemfile and run bundle install
7

SYNOPSIS

9       bundle     add     GEM_NAME     [--group=GROUP]     [--version=VERSION]
10       [--source=SOURCE]    [--path=PATH]    [--git=GIT]     [--github=GITHUB]
11       [--branch=BRANCH]   [--ref=REF]  [--skip-install]  [--strict]  [--opti‐
12       mistic]
13

DESCRIPTION

15       Adds the named gem to the Gemfile and run bundle  install.  bundle  in‐
16       stall can be avoided by using the flag --skip-install.
17
18       Example:
19
20       bundle add rails
21
22       bundle add rails --version "< 3.0, > 1.1"
23
24       bundle  add  rails  --version  "~>  5.0.0" --source "https://gems.exam
25       ple.com" --group "development"
26
27       bundle add rails --skip-install
28
29       bundle add rails --group "development, test"
30

OPTIONS

32       --version, -v
33              Specify version requirements(s) for the added gem.
34
35       --group, -g
36              Specify the group(s) for the added gem. Multiple  groups  should
37              be separated by commas.
38
39       --source, -s
40              Specify the source for the added gem.
41
42       --require, -r
43              Adds require path to gem. Provide false, or a path as a string.
44
45       --path Specify the file system path for the added gem.
46
47       --git  Specify the git source for the added gem.
48
49       --github
50              Specify the github source for the added gem.
51
52       --branch
53              Specify the git branch for the added gem.
54
55       --ref  Specify the git ref for the added gem.
56
57       --skip-install
58              Adds the gem to the Gemfile but does not install it.
59
60       --optimistic
61              Adds optimistic declaration of version.
62
63       --strict
64              Adds strict declaration of version.
65
66
67
68
69                                 February 2023                   BUNDLE-ADD(1)
Impressum