local-cli icon indicating copy to clipboard operation
local-cli copied to clipboard

Feature Request: Run commands against the Local environment from the host

Open ethanclevenger91 opened this issue 3 years ago • 8 comments

In an effort to automate as much of running client updates each month as I can, I currently have a script that will crawl through a configured list of directories and, in each one, essentially run wp plugin update --all (or other arbitrary shell commands). That can run for an hour or whatever and then I pop into each site, give it a once over, commit my changes and push. Great.

I've considered moving to Local for development, but would need some kind of feature out of local-cli that let's me execute commands against a site. Something like wp-cli itself provides for running commands over an SSH connection.

Would love to see a similar feature come to local-cli. Something like...

local-cli exec SITEID "wp --info"

ethanclevenger91 avatar Jul 01 '21 22:07 ethanclevenger91