2015-10-22 15:31:52 +08:00
|
|
|
# bundle
|
2014-09-16 17:33:44 +02:00
|
|
|
|
|
|
|
> Dependency manager for the Ruby programming language.
|
2019-06-03 02:06:36 +02:00
|
|
|
> More information: <https://bundler.io/man/bundle.1.html>.
|
2014-09-16 17:33:44 +02:00
|
|
|
|
2019-04-11 17:18:15 -03:00
|
|
|
- Install all gems defined in the `Gemfile` expected in the working directory:
|
2014-09-16 17:33:44 +02:00
|
|
|
|
|
|
|
`bundle install`
|
|
|
|
|
2020-11-30 18:54:18 +07:00
|
|
|
- Execute a command in the context of the current bundle:
|
|
|
|
|
|
|
|
`bundle exec {{command}} {{arguments}}`
|
|
|
|
|
2019-04-11 17:18:15 -03:00
|
|
|
- Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:
|
2014-09-16 17:33:44 +02:00
|
|
|
|
|
|
|
`bundle update`
|
|
|
|
|
2020-10-15 00:22:59 +02:00
|
|
|
- Update one or more specific gem(s) defined in the `Gemfile`:
|
2014-09-16 17:33:44 +02:00
|
|
|
|
2023-12-03 12:29:14 +01:00
|
|
|
`bundle update {{gem_name1}} {{gem_name2}}`
|
2020-10-15 00:22:59 +02:00
|
|
|
|
|
|
|
- Update one or more specific gems(s) defined in the `Gemfile` but only to the next patch version:
|
|
|
|
|
2023-12-03 12:29:14 +01:00
|
|
|
`bundle update --patch {{gem_name1}} {{gem_name2}}`
|
2020-10-15 00:22:59 +02:00
|
|
|
|
2021-04-14 10:12:42 -04:00
|
|
|
- Update all gems within the given group in the `Gemfile`:
|
2020-10-15 00:22:59 +02:00
|
|
|
|
|
|
|
`bundle update --group {{development}}`
|
|
|
|
|
|
|
|
- List installed gems in the `Gemfile` with newer versions available:
|
|
|
|
|
|
|
|
`bundle outdated`
|
2014-09-16 17:33:44 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Create a new gem skeleton:
|
2014-09-16 17:33:44 +02:00
|
|
|
|
2021-04-14 10:12:42 -04:00
|
|
|
`bundle gem {{gem_name}}`
|