Terminus, the Pantheon command-line interface

Preview:

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-cli

Citation preview

TerminusThe Pantheon Command-Line Interface

SANDcamp 2014.01.25 - https://github.com/pantheon-systems/terminus

What is Terminus?● https://github.com/pantheon-systems/terminus● CLI for Pantheon Dashboard operations● Uses Drush● Open-source

What does Terminus do?● Makes API calls to Pantheon● Does NOT interact with your Drupal site

What can I do with Terminus?● Update drush aliases● Site operations● Workflow operations● Team operations

Why should I be using Terminus?● Fast

○ No browser overhead○ Makes direct API calls

● Scriptable○ Common operations○ CI workflows

Terminus dependencies● cURL - http://curl.haxx.se/● Composer - https://getcomposer.org/● git - http://git-scm.com/● drush - http://www.drush.org/● PHP 5.3

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

Updating Terminus# Update Terminus.

cd $HOME/.drush/terminus

git pull

# Update Terminus dependencies.

composer update --no-dev

# Clear Drush's cache.

drush cc drush

What commands are available?drush help --filter=terminus

drush pauth● Authenticate, required● drush pauth email --

password=”1234”

drush paliases● Update Pantheon drush aliases, clear cache

drush psitesList sites associated with your account

drush psite-create● Create a new site on

Pantheon○ Label, machine name○ Organization (if any)○ Start state

● Polls● Can be completely

scripted

drush psite-cmode● Change connection mode

○ SFTP○ Git

● Use in conjunction with psite-commit

drush psite-deploy● Deploy code changes to an environment

● psite-backups○ List backups

● psite-backup○ Create backup

● psite-get-backup○ Get links to download backup

backups

Multidev support● psite-elist

○ List multidev environments● psite-ecreate

○ Create multidev environment○ Clone from target environment

● psite-edelete○ Delete multidev environment

drush psite-import● Import drush site archive from remote URL● Great for trainings

● 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

Ways to use Terminus● Day-to-day operations● Automating site migrations● Continuous Integration

@getpantheonirc.freenode.net #pantheon

getpantheon.comhttps://github.com/pantheon-systems/terminus

Thank you! Questions?