Note: some plugins, like Woocommerce, include database changes that you may need to do separately.
Operations affecting plugins use the command wp plugin.
Plugin Status
You can get the status of one or more plugins with:
wp plugin status
You can also use the “list” command to find out which plugins need updating, but it’s not as easy to read as “status”:
wp plugin list
Plugin Updates
You can update more than one plugin by separating the names by a space:
wp plugin update <plugin name(s)...>
To update all plugins that have updates:
wp plugin update --all
Woocommerce
Note: If you update Woocommerce, you also need to check for Woocommerce database updates:
wp wc update
Roll Back a Plugin
To roll back a plugin to an earlier version, identify the version you want to roll back to; e.g., roll back the plugin “someplugin” to version 1.2.0, and execute the following command to test the roll-back:
wp plugin update someplugin --version=1.2.0 --dry-run
To perform the roll-back, run the command without the –dry-run option:
wp plugin update someplugin --version=1.2.0