You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @danielbachhuber,
I assume the check-update parameter is a huge advance for the wp-cli community.
The returncodes are helpful for the check-condition to check if there is an update befor a real update run.
But I think we can parse the wp-cli output and define if an update is found or not.
I think it would be very helpful if there is a possibility to check if updates exist.
Thes feature is already implemented for the wp core:
https://developer.wordpress.org/cli/commands/core/check-update/
But there is no such a feature for plugins, themes and languagepacks.
Plugin parameter overview:
https://developer.wordpress.org/cli/commands/plugin/
Theme parameter overview:
https://developer.wordpress.org/cli/commands/theme/
Langauge parameter overview:
https://developer.wordpress.org/cli/commands/language/core/
https://developer.wordpress.org/cli/commands/language/plugin/
https://developer.wordpress.org/cli/commands/language/theme/
It would be also nice, if the check-update parameter provide returncodes.
Example:
wp plugin check-update -> no updates -> returncode = 0
wp core check-update -> update available -> returncode = 1
wp theme check-update -> unknown error -> returncode = 2
Thanks and Cheers
The text was updated successfully, but these errors were encountered: