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?


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

$ wp plugin update <plugin>

Using either of the following arguments


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


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


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


You can also download specific versions from the plugin's SVN.

Say you want a specific version of Yoast.



The tags folder lists all the versions.

  • Could you give a short code snippet on how to do that? I for example don't know the first thing about SVN, as I have always been using Git – kero Jan 22 '18 at 14:18
  • Visit the second URL above. They can grab it right from there. – Liam Stewart Jan 22 '18 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.