I'm using wp-cli 1.5.1. My server is running php7.2.

I'm not running suhosin. (Some people seem to think that suhosin may cause the same symptom)

When I issue wpcli commands within a non-wordpress directory I get the expected outcome: and error message saying "This does not seem to be a WordPress install."

However, when I run wpcli commands within wordpress directories,the prompt returns quickly without output.

This seems to apply to most variations of 'wpcli plugin', 'wpcli theme', 'wpci search-replace' and 'wp theme'. These are the ones that I've tested.

'wp --version' and 'wp --help' return the expected output'.

What could be happening here?

Try the --skip-plugins flag with the problematic commands. Just as you experienced I’ve had wp-cli error out silently and do nothing, while frustratingly work for the simpler commands version/info commands.

My silent errors were due to a bad plugin. This plugin was using php short tags, which weren't enabled in php/x.x/cli/php.ini which wp-cli uses.

  • Hi Dave. Unfortunately this doesn't change my outcome. I'm now testing wpcli on an wordpress install that has no plugins and is using the twentysixteen theme. I'm still getting the same undesireable result. – bob May 23 at 3:30

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.