アイキャッチはMicrosoft Designerで作りましたがAIあやしいw
Local by WP Engine Version 9.0.5+6706のwp-cliのバージョンはWP-CLI version: 2.10.0でした
Localのアップデートを待てばwp-cliもアップデートされますが試してみたいということで
% wp --info
OS: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
Shell: /bin/zsh
PHP binary: /Users/atsushi/Library/Application Support/Local/lightning-services/php-8.0.30+0/bin/darwin-arm64/bin/php
PHP version: 8.0.30
php.ini used: /Users/atsushi/Library/Application Support/Local/run/kKg0k_eHA/conf/php/php.ini
MySQL binary: /Users/atsushi/Library/Application Support/Local/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysql
MySQL version: mysql Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)
SQL modes: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,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: /Users/atsushi/Local Sites/juno-pilatesjp/app/public
WP-CLI packages dir:
WP-CLI cache dir: /Users/atsushi/.wp-cli/cache
WP-CLI global config: /Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli/config.yaml
WP-CLI project config:
WP-CLI version: 2.10.0
Xでwp-cliの新バージョンが出たということでしたのでアップデートしてみようと思い
% wp cli update
You have version 2.10.0. Would you like to update to 2.11.0? [y/n] y
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v2.11.0/wp-cli-2.11.0.phar...
md5 hash verified: beaae9eba59e9331f4a432208bc5ddfa
sh: /Users/atsushi/Library/Application: is a directory
Error: The downloaded PHAR is broken, try running wp cli update again.
/Application ディレクトリの中なのでエラーになってしまいました。
Localでのwpコマンドの場所は
% which wp
/Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli/posix/wp
% ls -l /Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli/posix
total 0
lrwxr-xr-x 1 atsushi staff 14 Jul 11 14:10 wp -> ../wp-cli.phar
wpでエイリアスが設定されているようで実態は
/Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli/wp-cli.phar
にあるようでしたので
% cd /Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli
% curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
% wp --info
OS: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
Shell: /bin/zsh
PHP binary: /Users/atsushi/Library/Application Support/Local/lightning-services/php-8.0.30+0/bin/darwin-arm64/bin/php
PHP version: 8.0.30
php.ini used: /Users/atsushi/Library/Application Support/Local/run/kKg0k_eHA/conf/php/php.ini
MySQL binary: /Users/atsushi/Library/Application Support/Local/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysql
MySQL version: mysql Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)
SQL modes: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,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: /Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli
WP-CLI packages dir:
WP-CLI cache dir: /Users/atsushi/.wp-cli/cache
WP-CLI global config: /Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli/config.yaml
WP-CLI project config:
WP-CLI version: 2.11.0
無事最新版のVersion2.11.0にアップデートできました。