A few little tools to help simplify site maintainance on pantheon.io
terminus-create-site
: Quickly spin up a Quickstart 2 site in Pantheonterminus-update-dev
: Uses terminus + drush to apply Arizona Quickstart 2 upstream & Config Distro updatesterminus-update-test
: Uses terminus to pull updates fromdev
, apply Config Distro updates, and clone database and files fromlive
terminus-update-live
: Uses terminus to pull updates fromtest
and apply Config Distro updates
bash
,zsh
, or other shell environment- A working installation of terminus
# Update a dev site
$ SITE_NAME=azgrad-mysite terminus-update-dev
# Update a test site
$ SITE_NAME=azgrad-mysite terminus-update-test
# Update a live site
$ SITE_NAME=azgrad-mysite terminus-update-live
Execute any one of these scripts against all sites from the command-line:
# Update all dev sites
$ terminus site:list --field=name | sort | xargs -I % sh -c 'SITE_NAME=% terminus-update-dev'
# Update all test sites
$ terminus site:list --field=name | sort | xargs -I % sh -c 'SITE_NAME=% terminus-update-test'
# Update all live sites
$ terminus site:list --field=name | sort | xargs -I % sh -c 'SITE_NAME=% terminus-update-live'