2018-11-02 19:07:56 -04:00
|
|
|
.\" generated with Ronn/v0.7.3
|
|
|
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
|
|
.
|
2020-07-01 03:03:10 -04:00
|
|
|
.TH "BUNDLE\-ADD" "1" "July 2020" "" ""
|
2018-11-02 19:07:56 -04:00
|
|
|
.
|
|
|
|
.SH "NAME"
|
|
|
|
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
|
|
|
|
.
|
|
|
|
.SH "SYNOPSIS"
|
2019-06-01 05:49:40 -04:00
|
|
|
\fBbundle add\fR \fIGEM_NAME\fR [\-\-group=GROUP] [\-\-version=VERSION] [\-\-source=SOURCE] [\-\-git=GIT] [\-\-branch=BRANCH] [\-\-skip\-install] [\-\-strict] [\-\-optimistic]
|
2018-11-02 19:07:56 -04:00
|
|
|
.
|
|
|
|
.SH "DESCRIPTION"
|
|
|
|
Adds the named gem to the Gemfile and run \fBbundle install\fR\. \fBbundle install\fR can be avoided by using the flag \fB\-\-skip\-install\fR\.
|
|
|
|
.
|
|
|
|
.P
|
|
|
|
Example:
|
|
|
|
.
|
|
|
|
.P
|
|
|
|
bundle add rails
|
|
|
|
.
|
|
|
|
.P
|
|
|
|
bundle add rails \-\-version "< 3\.0, > 1\.1"
|
|
|
|
.
|
|
|
|
.P
|
|
|
|
bundle add rails \-\-version "~> 5\.0\.0" \-\-source "https://gems\.example\.com" \-\-group "development"
|
|
|
|
.
|
|
|
|
.P
|
|
|
|
bundle add rails \-\-skip\-install
|
|
|
|
.
|
|
|
|
.P
|
|
|
|
bundle add rails \-\-group "development, test"
|
|
|
|
.
|
|
|
|
.SH "OPTIONS"
|
|
|
|
.
|
|
|
|
.TP
|
|
|
|
\fB\-\-version\fR, \fB\-v\fR
|
|
|
|
Specify version requirements(s) for the added gem\.
|
|
|
|
.
|
|
|
|
.TP
|
|
|
|
\fB\-\-group\fR, \fB\-g\fR
|
|
|
|
Specify the group(s) for the added gem\. Multiple groups should be separated by commas\.
|
|
|
|
.
|
|
|
|
.TP
|
|
|
|
\fB\-\-source\fR, , \fB\-s\fR
|
|
|
|
Specify the source for the added gem\.
|
|
|
|
.
|
|
|
|
.TP
|
2019-06-01 05:49:40 -04:00
|
|
|
\fB\-\-git\fR
|
|
|
|
Specify the git source for the added gem\.
|
|
|
|
.
|
|
|
|
.TP
|
|
|
|
\fB\-\-branch\fR
|
|
|
|
Specify the git branch for the added gem\.
|
|
|
|
.
|
|
|
|
.TP
|
2018-11-02 19:07:56 -04:00
|
|
|
\fB\-\-skip\-install\fR
|
|
|
|
Adds the gem to the Gemfile but does not install it\.
|
|
|
|
.
|
|
|
|
.TP
|
|
|
|
\fB\-\-optimistic\fR
|
|
|
|
Adds optimistic declaration of version
|
|
|
|
.
|
|
|
|
.TP
|
|
|
|
\fB\-\-strict\fR
|
|
|
|
Adds strict declaration of version
|
|
|
|
|