How to find Installed Path of WP-CLI

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

Try this command

wp --info

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
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

root@C20210814185128:~# cd /root
root@C20210814185128:~# ls
1                cyberpanel                      openlitespeed-1.6.21.src.tgz  thirdparty
2        modsec-shared-collections 
-a               go             modsec-shared-collections-lock  rpm_check.txt                 wp-config.php   openlitespeed-1.6.21            snap

check here /usr/bin/wp

This is usr/bin, it would not show the where phar file of WP-CLI is.