I found that CyberPanel had install WP-CLI.
The Command is work: wp cli update
root@C20210814185128:~# wp cli update
Success: WP-CLI is at the latest version.
You See it is not useful to by find command
find …/ wp-cli
find …/ WP-CLI
May I know the Installed Path of WP-Cli
The VPS is Ubantu 20, Installed the latest CyberPanel
Shell: /bin/bash
PHP binary: /usr/local/lsws/lsphp74/bin/php
PHP version: 7.4.29
php.ini used: /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini
MySQL binary: /usr/bin/mysql
MySQL version: mysql Ver 15.1 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
SQL modes: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
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: /root
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.6.0
Under /root , we can not find any wp-cli.phar
must be hidden then or non accessible
Got to root folder using the below command
cd /root
Then use below command to list all files and folders
ls
root@C20210814185128:~# cd /root
root@C20210814185128:~# ls
1 cyberpanel install.sh openlitespeed-1.6.21.src.tgz thirdparty
2 cyberpanel.sh modsec-shared-collections quartz_uninstall.sh uninstall.sh
-a go modsec-shared-collections-lock rpm_check.txt wp-config.php
bt-uninstall.sh installer.sh openlitespeed-1.6.21 snap
This is usr/bin, it would not show the where phar file of WP-CLI is.