You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ability to set environment variables in wp-cli.yml #5566
I'd be open to this if someone wants to submit a pull request!
To clarify the implementation: we wouldn't want to have wp-cli.yml set environment variables. Rather, we'd want to update WP-CLI to check wp-cli.yml for a value if the corresponding environment variable wasn't set.
Sometimes environment variables are not available in the shell for wp-cli
For posterity, could you provide a bit more detail as to when this isn't the case?
Activity
danielbachhuber commentedon Jan 19, 2023
Thanks for the suggestion, @tomsommer
I'd be open to this if someone wants to submit a pull request!
To clarify the implementation: we wouldn't want to have
wp-cli.ymlset environment variables. Rather, we'd want to update WP-CLI to checkwp-cli.ymlfor a value if the corresponding environment variable wasn't set.For posterity, could you provide a bit more detail as to when this isn't the case?
danielbachhuber commentedon Jan 19, 2023
Related #6130
WP_CLI_PACKAGES_DIRin config file #5645 as a duplicate of this issueswissspidy commentedon Nov 15, 2025
Related: #5645