2015-10-22 08:31:52 +01:00
|
|
|
# bundle
|
2014-09-16 16:33:44 +01:00
|
|
|
|
|
|
|
> Dependency manager for the Ruby programming language.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://bundler.io/man/bundle.1.html>.
|
2014-09-16 16:33:44 +01:00
|
|
|
|
2019-04-11 21:18:15 +01:00
|
|
|
- Install all gems defined in the `Gemfile` expected in the working directory:
|
2014-09-16 16:33:44 +01:00
|
|
|
|
|
|
|
`bundle install`
|
|
|
|
|
2020-11-30 11:54:18 +00:00
|
|
|
- Execute a command in the context of the current bundle:
|
|
|
|
|
|
|
|
`bundle exec {{command}} {{arguments}}`
|
|
|
|
|
2019-04-11 21:18:15 +01:00
|
|
|
- Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:
|
2014-09-16 16:33:44 +01:00
|
|
|
|
|
|
|
`bundle update`
|
|
|
|
|
2020-10-14 23:22:59 +01:00
|
|
|
- Update one or more specific gem(s) defined in the `Gemfile`:
|
2014-09-16 16:33:44 +01:00
|
|
|
|
2020-10-14 23:22:59 +01:00
|
|
|
`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`
|
2014-09-16 16:33:44 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Create a new gem skeleton:
|
2014-09-16 16:33:44 +01:00
|
|
|
|
|
|
|
`bundle gem {{gemname}}`
|