-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP CLI not installed in container (/bin/sh: 1: wp: not found wp: not found) #15
Comments
@clacdesdoigts try running |
I think this may be related to https://github.com/lando/wordpress/blob/main/recipes/wordpress/builder.js only installing the CLI if the PHP version is 7.4. |
Yep, just confirmed: switching my lando yml to use 7.4 installs the cli but 8.0 does not |
As a stop-gap for anyone else experiencing this whilst this bug still happens, add this to your lando config:
and down at the bottom:
This makes |
WP CLI is not being installed in the default "appserver" service
Thus, typing
lando wp
returns/bin/sh: 1: wp: not found
Might be related to #3395
My lando.yml :
Commands are launched in WSL2 (core version : 5.10.16) on Windows 11, in a Debian 11 (bullseye) distribution.
Lando version : 3.6.5
The text was updated successfully, but these errors were encountered: