terminus icon indicating copy to clipboard operation
terminus copied to clipboard

WP CLI alias

Open killua99 opened this issue 5 years ago • 5 comments

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.

killua99 avatar Feb 08 '19 11:02 killua99

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

As a workaround, try:

terminus wp site.env cli info

greg-1-anderson avatar Feb 08 '19 14:02 greg-1-anderson

Hi, those alias are not the same.

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

killua99 avatar Feb 08 '19 15:02 killua99

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

greg-1-anderson avatar Feb 08 '19 16:02 greg-1-anderson

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 avatar Feb 11 '19 08:02 killua99

You might close this issue if you wish

killua99 avatar Nov 25 '22 15:11 killua99