admin管理员组

文章数量:1317915

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

[root@host ~]# 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:

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

…and the --info command does indeed work:

[chaseland@host ~]$ 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:

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

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

Thank you for any assistance, Don

本文标签: wp cliOnly the WP CLI commandwp inforuns under my cPanel account