Skip to content

Add usage of environment variables in aliases #6130

@Amund

Description

@Amund

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions