bundle
Dependency manager for the Ruby programming language. More information: https://bundler.io/man/bundle.1.html.
- Install all gems defined in the
Gemfileexpected in the working directory:
bundle install
- Execute a command in the context of the current bundle:
bundle exec
- Update all gems by the rules defined in the
Gemfileand regenerateGemfile.lock:
bundle update --all
- Update one or more specific gem(s) defined in the
Gemfile:
bundle update
- Update one or more specific gems(s) defined in the
Gemfilebut only to the next patch version:
bundle update --patch
- Update all gems within the given group in the
Gemfile:
bundle update --group
- List installed gems in the
Gemfilewith newer versions available:
bundle outdated
- Create a new gem skeleton:
bundle gem
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
