Bundler
bundle outdated [--filter-major|--filter-minor|--filter-patch]
Example output for bundle outdated --filter-major
Other examples
A useful flag is --strict
as it will only list versions that are allowed by your Gemfile requirements (e.g. does not show rails update to 6 if your Gemfile has the line gem 'rails', '~>5.2'
).
I also experienced that doing upgrades per group (test, development) are easier to do. Thus --groups
might also be helpful.
$ bundle outdated --strict --groups
Outdated gems included in the bundle:
===== Without group =====
* actioncable (newest 5.2.6, installed 5.2.4.6)
* actionmailer (newest 5.2.6, installed 5.2.4.6)
...
===== Group "development" =====
* binding_of_caller (newest 1.0.0, installed 0.8.0)
* parallel_tests (newest 3.7.3, installed 2.32.0)
* query_diet (newest 0.7.0, installed 0.6.2)
* spring (newest 2.1.1, installed 2.1.0)
===== Groups "development, test" =====
* awesome_print (newest 1.9.2, installed 1.8.0)
* pry-byebug (newest 3.9.0, installed 3.7.0)
===== Group "test" =====
* capybara (newest 3.36.0, installed 3.35.3)
* capybara-lockstep (newest 1.1.0, installed 0.6.0)
* capybara-screenshot (newest 1.0.26, installed 1.0.22)
...
Yarn
yarn outdated
Example output
Posted by Michael Leimstädtner to makandra dev (2021-02-08 07:40)