2018-11-02 19:07:56 -04:00
|
|
|
BUNDLE-ADD(1) BUNDLE-ADD(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
NAME
|
|
|
|
bundle-add - Add gem to the Gemfile and run bundle install
|
2018-11-02 19:07:56 -04:00
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
SYNOPSIS
|
|
|
|
bundle add GEM_NAME [--group=GROUP] [--version=VERSION]
|
2019-06-01 05:49:40 -04:00
|
|
|
[--source=SOURCE] [--git=GIT] [--branch=BRANCH] [--skip-install]
|
|
|
|
[--strict] [--optimistic]
|
2018-11-02 19:07:56 -04:00
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
DESCRIPTION
|
2019-06-01 05:49:40 -04:00
|
|
|
Adds the named gem to the Gemfile and run bundle install. bundle
|
2019-04-14 02:01:35 -04:00
|
|
|
install can be avoided by using the flag --skip-install.
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
bundle add rails
|
|
|
|
|
|
|
|
bundle add rails --version "< 3.0, > 1.1"
|
|
|
|
|
2019-06-01 05:49:40 -04:00
|
|
|
bundle add rails --version "~> 5.0.0" --source "https://gems.exam-
|
2018-11-02 19:07:56 -04:00
|
|
|
ple.com" --group "development"
|
|
|
|
|
|
|
|
bundle add rails --skip-install
|
|
|
|
|
|
|
|
bundle add rails --group "development, test"
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
OPTIONS
|
|
|
|
--version, -v
|
2018-11-02 19:07:56 -04:00
|
|
|
Specify version requirements(s) for the added gem.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
--group, -g
|
2019-06-01 05:49:40 -04:00
|
|
|
Specify the group(s) for the added gem. Multiple groups should
|
2018-11-02 19:07:56 -04:00
|
|
|
be separated by commas.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
--source, , -s
|
2018-11-02 19:07:56 -04:00
|
|
|
Specify the source for the added gem.
|
|
|
|
|
2019-06-01 05:49:40 -04:00
|
|
|
--git Specify the git source for the added gem.
|
|
|
|
|
|
|
|
--branch
|
|
|
|
Specify the git branch for the added gem.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
--skip-install
|
2018-11-02 19:07:56 -04:00
|
|
|
Adds the gem to the Gemfile but does not install it.
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
--optimistic
|
2018-11-02 19:07:56 -04:00
|
|
|
Adds optimistic declaration of version
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
--strict
|
2018-11-02 19:07:56 -04:00
|
|
|
Adds strict declaration of version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-10 11:26:55 -04:00
|
|
|
August 2019 BUNDLE-ADD(1)
|