wp-cli Install

Localにこのサイトの手順通りに進めた。

hbirds@hbirds-Lenovo-G580:~/Local Sites/hbirdsddnsnet/app/public$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
hbirds@hbirds-Lenovo-G580:~/Local Sites/hbirdsddnsnet/app/public$ sudo apt install php8.1-cli
hbirds@hbirds-Lenovo-G580:~/Local Sites/hbirdsddnsnet/app/public$ sudo chmod +x wp-cli.phar
hbirds@hbirds-Lenovo-G580:~/Local Sites/hbirdsddnsnet/app/public$ sudo mv wp-cli.phar /usr/local/bin/wp

確認

hbirds@hbirds-Lenovo-G580:/usr/local/bin$ wp --info
OS:	Linux 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64
Shell:	/bin/bash
PHP binary:	/usr/bin/php8.1
PHP version:	8.1.2-1ubuntu2.9
php.ini used:	/etc/php/8.1/cli/php.ini
MySQL binary:	
MySQL version:	
SQL modes:	
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:	/usr/local/bin
WP-CLI packages dir:	
WP-CLI cache dir:	/home/hbirds/.wp-cli/cache
WP-CLI global config:	
WP-CLI project config:	
WP-CLI version:	2.7.1
Copied title and URL