21
Terminus The Pantheon Command-Line Interface SANDcamp 2014.01.25 - https://github.com/pantheon-systems/terminus

Terminus, the Pantheon command-line interface

Embed Size (px)

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

Page 1: Terminus, the Pantheon command-line interface

TerminusThe Pantheon Command-Line Interface

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

Page 2: Terminus, the Pantheon command-line interface

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

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

Page 4: Terminus, the Pantheon command-line interface

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

Page 5: Terminus, the Pantheon command-line interface

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

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

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

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

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

Page 10: Terminus, the Pantheon command-line interface

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

password=”1234”

Page 11: Terminus, the Pantheon command-line interface

drush paliases● Update Pantheon drush aliases, clear cache

Page 12: Terminus, the Pantheon command-line interface

drush psitesList sites associated with your account

Page 13: Terminus, the Pantheon command-line interface

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

drush psite-cmode● Change connection mode

○ SFTP○ Git

● Use in conjunction with psite-commit

Page 15: Terminus, the Pantheon command-line interface

drush psite-deploy● Deploy code changes to an environment

Page 16: Terminus, the Pantheon command-line interface

● 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

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

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

Page 19: Terminus, the Pantheon command-line interface

● 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

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

Page 21: Terminus, the Pantheon command-line interface

@getpantheonirc.freenode.net #pantheon

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

Thank you! Questions?