terminus-plugin terminus-mass-run
Run Terminus commands on multiple Pantheon sites.
jnettik/terminus-mass-run
Run Terminus commands on multiple Pantheon sites.
- Tuesday, June 19, 2018
- by jnettik
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Terminus Mass Run
Terminus Mass Run takes a piped list of Pantheon sites runs a Terminus command on them in bulk. This takes the idea used in Terminus Mass Update and expands on it for various terminus commands. Currently supported commands are:, (*1)
terminus remote:drush
terminus backup:create
terminus env:deploy
terminus connection:set
terminus site:upstream:clear-cache
Terminus provides several ways of getting a list of sites, the simplest being terminus site:list --format=list
. The --format=list
flat gets a list of site IDs that can be passed into Terminus Mass Run commands. For example, say you need to rebuild the cache on all production sites you have access too. Run:, (*2)
$ terminus site:list --format=list | terminus remote:mass:drush -- cr
dev-master
9999999-dev
Run Terminus commands on multiple Pantheon sites.
Sources
Download