Utilize WP-CLI from inside WordPress, not SSH

WP-CLI is not different from any other server side utilities in that you need to be able to have the permission to run them out of a webserver enviroment using exec, spawn or friends. For obvious reasons all those kinds of PHP APIs are going to be blocked on most servers and therefor it is unlikely that a server you do not manage (don’t have SSH access is an indication) will let you run WP-CLI out of wordpress.

Leave a Comment