bundle-add - 将 gem 添加到 Gemfile 并运行 bundle install
bundle add GEM_NAME [--group=GROUP] [--version=VERSION] [--source=SOURCE] [--path=PATH] [--git=GIT] [--github=GITHUB] [--branch=BRANCH] [--ref=REF] [--skip-install] [--strict] [--optimistic]
将指定的 gem 添加到 Gemfile 并运行 bundle install。可以使用 --skip-install 标志来避免运行 bundle install。
示例
bundle add rails
bundle add rails --version "< 3.0, > 1.1"
bundle add rails --version "~> 5.0.0" --source "https://gems.example.com" --group "development"
bundle add rails --skip-install
bundle add rails --group "development, test"
--version, -v
--group, -g
--source, -s
--require, -r
--path--git--github--branch--ref--skip-install--optimistic--strict