If you possess root-level access to your server, it is recommended that you follow this guide to install WP CLI on your WHM/cPanel server: https://blog.cpanel.com/wp-cli-install-and-manage-wordpress-on-the-command-line/.
However, if you lack access to the root account or aren’t able to run sudo, but still have user-level access to the terminal (such as from the cPanel terminal), you can still install and use wp-cli.
cd /home/USERNAME/public_html/
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
/home/USERNAME/public_html/wp-cli.phar config list
Of course, replace USERNAME to yours.
Deixe um comentário