tldr/pages/common/bundle.md

37 lines
935 B
Markdown
Raw Normal View History

2015-10-22 08:31:52 +01:00
# 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`
2020-11-30 11:54:18 +00:00
- Execute a command in the context of the current bundle:
`bundle exec {{command}} {{arguments}}`
- 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`:
2021-04-14 15:12:42 +01:00
`bundle update {{gem_name}} {{gem_name}}`
- Update one or more specific gems(s) defined in the `Gemfile` but only to the next patch version:
2021-04-14 15:12:42 +01:00
`bundle update --patch {{gem_name}} {{gem_name}}`
2021-04-14 15:12:42 +01:00
- 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:
2021-04-14 15:12:42 +01:00
`bundle gem {{gem_name}}`