Only the WP CLI command, wp –info, runs under my cPanel account

Question

Please review the following commands I have issued remotely to the Bash Shell on my dedicated cPanel/WHM server:

[rootHostGator ~]# wp cli update
Success: WP-CLI is at the latest version.

Then I switched to a cPanel account (with shell access) that hosts a WordPress site:

[rootHostGator ~]# su -l chaseland
Last login: Fri Oct 30 15:17:01 MDT 2020 on pts/0

…and the –info command does indeed work:

[chaselandHostGator ~]$ wp –info
OS: Linux 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64
Shell: /usr/local/cpanel/bin/jailshell
PHP binary: /opt/cpanel/ea-php74/root/usr/bin/php
PHP version: 7.4.11
php.ini used: /opt/cpanel/ea-php74/root/etc/php.ini
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /home/chaseland
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.4.0

However, any other command I try to execute produces an error:

[chaselandHostGator ~]$ wp plugin update –all
Error: This does not seem to be a WordPress installation.
Pass –path=path/to/wordpress or run wp core download.
[chaselandHostGator ~]$

This is my first installation of WP CLI and am having difficulty determining what to do next.

Thank you for any assistance,
Don

0
Don 3 months 0 Answers 8 views 0

Leave an answer