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]
|
2018-11-02 19:07:56 -04:00
|
|
|
[--source=SOURCE] [--skip-install] [--strict] [--optimistic]
|
|
|
|
|
2019-04-14 02:01:35 -04:00
|
|
|
DESCRIPTION
|
|
|
|
Adds the named gem to the Gemfile and run bundle install. bundle
|
|
|
|
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"
|
|
|
|
|
|
|
|
bundle add rails --version "~> 5.0.0" --source "https://gems.exam-
|
|
|
|
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
|
2018-11-02 19:07:56 -04:00
|
|
|
Specify the group(s) for the added gem. Multiple groups should
|
|
|
|
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-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-04-14 02:01:35 -04:00
|
|
|
March 2019 BUNDLE-ADD(1)
|