Skip to content

Instantly share code, notes, and snippets.

@Greg-Boggs
Last active April 26, 2016 16:59
Show Gist options
  • Save Greg-Boggs/26a9545e5344d62f8a8e to your computer and use it in GitHub Desktop.
Save Greg-Boggs/26a9545e5344d62f8a8e to your computer and use it in GitHub Desktop.
Pantheon Terminus Examples: Install it here: https://github.com/pantheon-systems/terminus

You don't need a web browser to use Pantheon! Do it all command line to save time and reduce errors.

Info

Get the connection user names and passwords for your site:

terminus site connection-info

list all the backups your account has access to:

terminus site backups get

Get information about the site including PHP version:

terminus site info --site=mygtdd8

Backups

Grab a particular sites backup

terminus site backups get --site=mygtdd8

Migrate the database from live to dev or to a multidev:

terminus site clone-content --site=mygtdd8 --from-env=live --to-env=dev --db-only --yes

Deployment

Merge code from dev to test or live:

terminus site merge-from-dev [--site=<site>] [--env=<env>]

Deploy to live with database updates and a cache clear:

terminus site deploy --site=mygtdd8 --env=live --cc --updatedb

Cache

clear Redis and Varnish cache:

terminus site clear-cache --site=mygtdd8 --env=live

Drush or WP CLI

Use your local Drush on a site:

drush @pantheon.global-training-day.live uli --strict=0

Did that give you trouble? Try the Drush on the server:

terminus drush "uli" --site=global-training-day --env=dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment