With wp-cli installed on your webhosting  you can upgrade your WordPress plugins to specific versions of the plugin, all plugins, all but certain plugins and minor or patch releases. Also you can test the update with a dry run option just to make sure installs go without error.

Update Specific WordPress Plugin Version

Lets say you wanted to update WooCommerce to a particular version 4.2.2 in this instance, this would be possible with the following command…

wp plugin update woocommerce --version=4.2.2

The wp-cli command to update plugin update, the plugin woocommerce, then the version –version=4.2.2

If you wanted to check no errors would occur you can append a dry run option…

wp plugin update woocommerce --version=4.2.2 --dry-run

Update WordPress Plugin To Latest Version

If you just wanted to update the plugin to the latest version just drop the version parameter..

wp plugin update woocommerce

Update All WordPress Plugins

To update all available plugins

wp plugin update --all

Update All WordPress Plugins To Patch Releases

Like from 1.1.0 to 1.1.1

wp plugin update --all --patch

Update All WordPress Plugins To Minor Releases

Like from 1.1 to 1.2

wp plugin update --all --minor

Update All WordPress Plugins Except Particular Ones

For example update all plugins but not woocommerce

wp plugin update --all --exclude=woocommerce

Share:

Leave a Reply