I understand to use WP-CLI with a WordPress site in Local you right-click the site and click “Open site shell”.
When I do this, this is the output I get:
❯ /Users/alec/Library/Application\ Support/Local/ssh-entry/u0K5N7gSI.sh; exit
-n -e
Setting Local environment variables...
----
WP-CLI: WP-CLI 2.6.0
Composer: 2.1.5 2021-07-23
PHP: 8.0.0
MySQL: mysql Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)
----
Launching shell: /opt/homebrew/bin/zsh ...
That’s fine, but the wp
command is not available:
❯ wp --version
zsh: command not found: wp
Why can’t I use WP-CLI? Does your integration not support Zsh or something?