Download presentation
Presentation is loading. Please wait.
1
Pantheon Terminus Bill Juda
2
Who am I? Bill Juda Drupal Developer for CIT Custom Development. Started working with Drupal in 2013.
3
Agenda What is Pantheon? What is Terminus? Get Terminus. Using Terminus. Common commands that I use. Scripts I have written. Demo! Documentation links. Questions?
4
What is Pantheon? “Drupal and WordPress hosting plus agile workflows, website operations tools, and dependable security features.” - Pantheon Drupal and WordPress cloud hosting.
5
What is Terminus? “Our command line interface, Terminus, provides advanced interaction with Pantheon. Terminus enables you to do almost everything in a terminal that you can do in the Dashboard, and much more.” - Pantheon Command line tool that can do some awesome stuff!!
6
Get Terminus See Pantheon and their documentation: Installation instructions: You will need an SSH key:
7
Commands - DRUSH!!! terminus drush SITE_NAME.ENV uli
Get one time login link terminus drush SITE_NAME.ENV updb Run database updates terminus drush SITE_NAME.ENV entup Run enty updates terminus drush SITE_NAME.ENV cr Clear cache Drupal 7 terminus drush SITE_NAME.ENV cc Clear Cache Drupal 8 terminus drush SITE_NAME.ENV -- ws --tail Look at watchdog logs in real time
8
Commands - backup related
terminus backup:create SITE_NAME.ENV Create a backup for the desired environment terminus backup:get SITE_NAME.ENV --element=database --to=your_file.sql.gz -vv Get a backup or the database and download it terminus backup:get SITE_NAME.ENV --element=files --to=your_file.tar.gz -vv Get a backup of all the files and download it terminus env:clone-content SITE_NAME.ENV TARGET_ENV Clone one environment to another
9
Command - development environment related
terminus multidev:create SITE_NAME.ENV MULTIDEV_NAME Create a multidev environment terminus connection:set SITE_NAME.ENV MODE Set your environment to Git or SMTP
10
Scripting - get backups
The following script is my pantheon-get-backups.sh This script is run through the terminal running: sh pantheon-get-backup.sh Replace PATH_TO_TERMINUS with your machines path to terminus. echo Site: read SITE echo Env: read ENV PATH_TO_TERMINUS/terminus backup:get SITE_NAME.ENV --element=database --to=SITE_NAME.sql.gz -vv PATH_TO_TERMINUS/terminus backup:get SITE_NAME.ENV --element=files --to=SITE_NAME.tar.gz -vv
11
Scripting - setting up/migrating a composer based site in Pantheon
The following script is my pantheon-composer-site.sh This script is run through the terminal running: sh pantheon-composer-site.sh Replace PATH_TO_TERMINUS with your machines path to terminus. echo Site Name: read SITE_HUMAN_NAME echo "Site Macince Name (dash separated words):" read SITE export PANTHEON_SITE_NAME=SITE_NAME PATH_TO_TERMINUS/terminus site:create --org PANTHEON_ORG_ID $PANTHEON_SITE_NAME "SITE_NAME_HUMAN_NAME" empty export PANTHEON_SITE_GIT_URL="$(PATH_TO_TERMINUS/terminus connection:info $PANTHEON_SITE_NAME.dev --field=git_url)" git remote add origin $PANTHEON_SITE_GIT_URL PATH_TO_TERMINUS/terminus connection:set $PANTHEON_SITE_NAME.dev git
12
Scripting - rsync files to Pantheon
(note this is not terminus but terminus inspired) The following script is my pantheon-rsync-to-pantheon.sh This script is run through the terminal running: sh pantheon-rsync-to-pantheon.sh echo Site: read SITE echo Env: read ENV rsync -rLvz --size-only --ipv4 --ignore-existing --progress -e 'ssh -p 2222' files/. --temp-dir=~/tmp/
13
Scripting - rsync files from Pantheon
(note this is not terminus but terminus inspired) The following script is my pantheon-rsync-from-pantheon.sh This script is run through the terminal running: sh pantheon-rsync-from-pantheon.sh echo Site: read SITE echo Env: read ENV rsync -rLvz --size-only --ipv4 --ignore-existing --progress -e 'ssh -p 2222' files/.
14
Demo!
15
Helpful Links Terminus Docs: Generating SSH keys: Installation instructions: Command documentation: Scripts on Github:
16
Questions? wfj24@cornell.edu
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.