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