WP-CLi Uable to Install / Update Plugins
WP-CLi Uable to Install / Update Plugins
WP-CLi Uable to Install / Update Plugins
Lets say I have a single multisite install on my server, and in that multisite/network admin I have 3 blogs: example.com ( root/primary/first site ) example.com/second othersite.net If I want to list posts on the main site example.com I can do this: wp post list But what if I want to list posts on the … Read more
wp-cli output ‘column display format’ / wrapping
Using roots Bedrock for a few years, I gladly recommend it. Core versions are all available and are synced by roots.io technical team. Using WordPress with composer would allow you to have dependencies (WP core, plugins, themes, and other PHP libs) all managed with composer versions. Bedrock will also ensure that no core file is … Read more
Please check if PHP is running in safe mode. excel_shell is disabled when PHP is running in safe mode. You can check this running the phpinfo() function. Tip: You could make a install script in bash and execute that from PHP. This way it’s easier to test on the command line first, and then wrap … Read more
I’m the author of Mobile Smart Pro. I’m in the midst of testing WP-CLI with Mobile Smart Pro, and on line 27 of /wp-content/mu-plugins/ you should add the following test: if (!$mobile_smart) return $pluginList; So the section would look like: `function disablePlugins($pluginList) { if (is_admin()) return $pluginList; // only deactivate on front end global $mobile_smart; … Read more
From quick search I cannot find calls of this function in neither WP core or WP CLI. From quick check of documentation for it it seems that support for it in CLI context is (relatively) recent — starting with PHP 5.5.7. You might want to check if your PHP up to date. Note that CLI … Read more
Can I use WP-CLI from a remote computer?
wp theme update command initiates WP’s update process for themes with an available update. Theme doesn’t have to be in WP repo, but theme must use WP’s automatic update process.
You can update posts using wp update But you probably want a to create custom package to do exactly what you want. Also see Commands Cookbook