WP-CLI not recognizing commercial plugin updates

I’m running into an issue I haven’t encountered before where WP-CLI is not recognizing plugin updates for commercial plugins. The plugin updates appear in my WordPress dashboard, but running ../wp-cli.phar plugin update –all doesn’t update them. If I run ../wp-cli.phar plugin list it doesn’t show them as having updates. I’ve run updates through WP-CLI for … Read more

how to update serialized options programatically?

I want to automate updating plugin options. There are some things that I repeat a lot. With wp-cli I know I can update simple options like this: php wp-cli.phar option update blog_public 1 However, some plugin options save their options in a serialized string. Example of serialized option_value in wp_options: a:9:{s:4:”from”;s:21:”[email protected]”;s:8:”fromname”;s:51:”xxx”;s:4:”host”;s:13:”smtp.xx.com”;s:10:”smtpsecure”;s:3:”ssl”;s:4:”port”;s:3:”465″;s:8:”smtpauth”;s:3:”yes”;s:8:”username”;s:21:”[email protected]”;s:8:”password”;s:13:”xxx”;s:10:”deactivate”;s:0:””;} How to update those … Read more

WP CLI “Error establishing a database connection” in localhost (MAMP)

I get this error when I try to create something with WP CLI: Error establishing a database connection. This either means that the username and password information in your `wp-config.php` file is incorrect or we can’t contact the database server at `localhost`. This could mean your host’s database server is down. But I can open … Read more