Skip to content
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

Add usage of environment variables in aliases #165

Open
1 task done
Amund opened this issue May 17, 2022 · 2 comments
Open
1 task done

Add usage of environment variables in aliases #165

Amund opened this issue May 17, 2022 · 2 comments

Comments

@Amund
Copy link

Amund commented May 17, 2022

Since Drush 9, we can use environment variables in aliases definitions, which is a great feature to centralize datas in .env file.

In short, ${env.PROJECT_SSH_USER} is replaced by PROJECT_SSH_USER environment value, as described in https://www.drush.org/latest/site-aliases/#environment-variables

There are other related features (eg. env-vars), but I think this interpolation could be a nice addition to wp-cli aliases in a first place.

@danielbachhuber
Copy link
Member

Sounds great! Would love to see a pull request for this. We can follow Drush's implementation.

@danielbachhuber
Copy link
Member

Related wp-cli/wp-cli#5566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants