1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/bundle.md
Hermann Mayer dd955ca693
auracle: add page, gem,bundle: update (#4572)
gem: add SemVer spec install example
bundle: fix update example, add patch-update, group-update, and outdated examples
2020-10-14 23:22:59 +01:00

32 lines
837 B
Markdown

# bundle
> Dependency manager for the Ruby programming language.
> More information: <https://bundler.io/man/bundle.1.html>.
- Install all gems defined in the `Gemfile` expected in the working directory:
`bundle install`
- Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:
`bundle update`
- Update one or more specific gem(s) defined in the `Gemfile`:
`bundle update {{gemname}} {{gemname}}`
- Update one or more specific gems(s) defined in the `Gemfile` but only to the next patch version:
`bundle update --patch {{gemname}} {{gemname}}`
- Update update all gems within the given group in the `Gemfile`:
`bundle update --group {{development}}`
- List installed gems in the `Gemfile` with newer versions available:
`bundle outdated`
- Create a new gem skeleton:
`bundle gem {{gemname}}`