terminus
terminus copied to clipboard
WP CLI alias
WP CLI allow to define alias, this is quite handy when we are working with many sites and for multisites instance.
You could define stuff like wp @exampleb cli info
also do stuff like wp @all cache flush
to run from a list of site that command.
Would be nice to have the ability of use this feature.
Also to have the latest version of WP CLI on pantheon.
Pantheon provides aliases for Drush; it could also generate wp-cli aliases.
As a workaround, try:
terminus wp site.env cli info
Hi, those alias are not the same.
I'm talking this kind of alias https://developer.wordpress.org/cli/commands/cli/alias/
The aliases are the same insofar as they serve the same purpose. Granted, the wp-cli aliases are more capable.
Ok, I'm gonna give a try to create a drush alias for a wp cli command.
Altho, wouldn't be nice to support https://developer.wordpress.org/cli/commands/cli/alias/
Is something I could open a PR or is more internal Pantheon thing ?
You might close this issue if you wish