terminus, the pantheon command-line interface
DESCRIPTION
Terminus is a command-line tool for performing Pantheon dashboard operations. Free, open-source & MIT-licensed, Terminus is a great daily-use tool for both developers and DevOps engineers. From updating your Drush aliases to automating site creation and deployment, Terminus has features for everyone. Join the maintainers, Jon Peck and Josh Koenig of Pantheon for an in-depth demonstration, training and discussion of how Terminus can supercharge your site management and development! For more information on Terminus, see https://www.getpantheon.com/blog/terminus-pantheon-cliTRANSCRIPT
![Page 1: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/1.jpg)
TerminusThe Pantheon Command-Line Interface
SANDcamp 2014.01.25 - https://github.com/pantheon-systems/terminus
![Page 2: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/2.jpg)
What is Terminus?● https://github.com/pantheon-systems/terminus● CLI for Pantheon Dashboard operations● Uses Drush● Open-source
![Page 3: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/3.jpg)
What does Terminus do?● Makes API calls to Pantheon● Does NOT interact with your Drupal site
![Page 4: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/4.jpg)
What can I do with Terminus?● Update drush aliases● Site operations● Workflow operations● Team operations
![Page 5: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/5.jpg)
Why should I be using Terminus?● Fast
○ No browser overhead○ Makes direct API calls
● Scriptable○ Common operations○ CI workflows
![Page 6: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/6.jpg)
Terminus dependencies● cURL - http://curl.haxx.se/● Composer - https://getcomposer.org/● git - http://git-scm.com/● drush - http://www.drush.org/● PHP 5.3
![Page 7: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/7.jpg)
Terminus installation# Downloadgit clone https://github.com/pantheon-systems/terminus.git $HOME/.drush/terminus
cd $HOME/.drush/terminus
# Get dependencies
composer update --no-dev
# Clear Drush cache
drush cc drush
![Page 8: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/8.jpg)
Updating Terminus# Update Terminus.
cd $HOME/.drush/terminus
git pull
# Update Terminus dependencies.
composer update --no-dev
# Clear Drush's cache.
drush cc drush
![Page 9: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/9.jpg)
What commands are available?drush help --filter=terminus
![Page 10: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/10.jpg)
drush pauth● Authenticate, required● drush pauth email --
password=”1234”
![Page 11: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/11.jpg)
drush paliases● Update Pantheon drush aliases, clear cache
![Page 12: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/12.jpg)
drush psitesList sites associated with your account
![Page 13: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/13.jpg)
drush psite-create● Create a new site on
Pantheon○ Label, machine name○ Organization (if any)○ Start state
● Polls● Can be completely
scripted
![Page 14: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/14.jpg)
drush psite-cmode● Change connection mode
○ SFTP○ Git
● Use in conjunction with psite-commit
![Page 15: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/15.jpg)
drush psite-deploy● Deploy code changes to an environment
![Page 16: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/16.jpg)
● psite-backups○ List backups
● psite-backup○ Create backup
● psite-get-backup○ Get links to download backup
backups
![Page 17: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/17.jpg)
Multidev support● psite-elist
○ List multidev environments● psite-ecreate
○ Create multidev environment○ Clone from target environment
● psite-edelete○ Delete multidev environment
![Page 18: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/18.jpg)
drush psite-import● Import drush site archive from remote URL● Great for trainings
![Page 19: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/19.jpg)
● Locking (basic auth)○ psite-eli, psite-elo, psite-eul
● Team○ psite-team, psite-team-add, psite-team-remove
● Redis clear○ psite-erc
● SSH Tunnel○ psite-tunnel, psite-tunnel-close, psite-tunnels
Other useful commands
![Page 20: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/20.jpg)
Ways to use Terminus● Day-to-day operations● Automating site migrations● Continuous Integration
![Page 21: Terminus, the Pantheon command-line interface](https://reader033.vdocuments.mx/reader033/viewer/2022052507/558de46e1a28abef428b4613/html5/thumbnails/21.jpg)
@getpantheonirc.freenode.net #pantheon
getpantheon.comhttps://github.com/pantheon-systems/terminus
Thank you! Questions?