![Forrest logo](/images/logo.png)
bundle:tldr:962e2
bundle: Update one or more specific gems(s) defined in the `Gemfile` but only to the next patch version.
$ bundle update --patch ${gem_name} ${gem_name}
try on your machine
This command is used to update specific gems in a Ruby on Rails application.
Here's the breakdown of the command:
bundle update
is a command to update gems in a Ruby project using Bundler. Bundler is a package manager for Ruby applications that manages gem dependencies.--patch
is an option for thebundle update
command. It tells Bundler to only update to the latest patch version of the specified gem. Patch versions typically include bug fixes and backward-compatible changes.${gem_name}
(repeated twice) is the placeholder for the name of the gem that you want to update. You need to replace${gem_name}
with the actual name of the gem you want to update. For example, if you want to update therails
gem, you would replace${gem_name}
withrails
. So the command becomes:bundle update --patch rails rails
This command will update the specified gems to the latest available patch version.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.