- Plesk Onyx for Linux
How to run WP CLI commands from subscription system user's shell?
In order to use WP-CLI utility under the system user, the absolute path to the wp command should be specified. For example, login to the server via ssh under system user and execute below command:
# bash-4.2$ /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/wp --path=/var/www/vhosts/example.com/httpdocs --wp-cli cli version