Bundler Commands
Ruby gem dependency manager.All Bundler pages
- bundle add gemname: add a gem to the Gemfile and install itbundle add gemname writes the gem to the Gemfile with a ~> constraint, locks and installs it. Versions, groups, git and path gems, --skip-install and pitfalls.
- bundle exec: run a command with the Gemfile's gem versionsbundle exec CMD runs a command with exactly the gem versions in Gemfile.lock, avoiding conflicts with other installed versions. When you need it, and binstubs.
- bundle outdated: list Ruby gems with newer versionsbundle outdated lists gems with newer versions: Current, Latest, Requested and Groups. Filter to Gemfile gems or patch updates, exit codes and how to update.
- bundle update gemname --conservative: update one gem without the othersbundle update gemname updates one gem and rewrites Gemfile.lock; --conservative keeps shared dependencies. Patch and minor limits, groups and common pitfalls.