local-cli
local-cli copied to clipboard
Feature Request: Run commands against the Local environment from the host
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"