pantheon-systems / terminus

The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform
https://pantheon.io
Other
313 stars 190 forks source link

WP CLI alias #1950

Open killua99 opened 5 years ago

killua99 commented 5 years ago

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.

greg-1-anderson commented 5 years ago

Pantheon provides aliases for Drush; it could also generate wp-cli aliases.

As a workaround, try:

terminus wp site.env cli info
killua99 commented 5 years ago

Hi, those alias are not the same.

I'm talking this kind of alias https://developer.wordpress.org/cli/commands/cli/alias/

greg-1-anderson commented 5 years ago

The aliases are the same insofar as they serve the same purpose. Granted, the wp-cli aliases are more capable.

killua99 commented 5 years ago

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 ?

killua99 commented 1 year ago

You might close this issue if you wish