Can I upgrade a plugin to a specific version?

I am testing plugin upgrades on a staging instance before applying them to production. But if there are any delays in this process, I may end up being prompted to upgrade to a newer, untested version on production.

If prompted to upgrade a plugin, how can I choose an intermediary update, rather than the latest?

3

Using WP-CLI you can specify this as described in the official documentation.

$ wp plugin update <plugin>

Using either of the following arguments

--minor

Only perform updates for minor releases (e.g. from 1.3 to 1.4 instead of 2.0)

--patch

Only perform updates for patch releases (e.g. from 1.3 to 1.3.3 instead of 1.4)

--version=<version>

If set, the plugin will be updated to the specified version.

Leave a Comment