Terminus, the Pantheon command-line interface

1,742 views

Published on

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

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,742
On SlideShare
0
From Embeds
0
Number of Embeds
43
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Terminus, the Pantheon command-line interface

  1. 1. Terminus The Pantheon Command-Line Interface SANDcamp 2014.01.25 - https://github.com/pantheon-systems/terminus
  2. 2. What is Terminus? ● https://github.com/pantheon-systems/terminus ● CLI for Pantheon Dashboard operations ● Uses Drush ● Open-source
  3. 3. What does Terminus do? ● Makes API calls to Pantheon ● Does NOT interact with your Drupal site
  4. 4. What can I do with Terminus? ● ● ● ● Update drush aliases Site operations Workflow operations Team operations
  5. 5. Why should I be using Terminus? ● Fast ○ No browser overhead ○ Makes direct API calls ● Scriptable ○ Common operations ○ CI workflows
  6. 6. Terminus dependencies ● ● ● ● ● cURL - http://curl.haxx.se/ Composer - https://getcomposer.org/ git - http://git-scm.com/ drush - http://www.drush.org/ PHP 5.3
  7. 7. Terminus installation # Download git 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
  8. 8. Updating Terminus # Update Terminus. cd $HOME/.drush/terminus git pull # Update Terminus dependencies. composer update --no-dev # Clear Drush's cache. drush cc drush
  9. 9. What commands are available? drush help --filter=terminus
  10. 10. drush pauth ● Authenticate, required ● drush pauth email -password=”1234”
  11. 11. drush paliases ● Update Pantheon drush aliases, clear cache
  12. 12. drush psites List sites associated with your account
  13. 13. drush psite-create ● Create a new site on Pantheon ○ Label, machine name ○ Organization (if any) ○ Start state ● Polls ● Can be completely scripted
  14. 14. drush psite-cmode ● Change connection mode ○ SFTP ○ Git ● Use in conjunction with psite-commit
  15. 15. drush psite-deploy ● Deploy code changes to an environment
  16. 16. backups ● psite-backups ○ List backups ● psite-backup ○ Create backup ● psite-get-backup ○ Get links to download backup
  17. 17. Multidev support ● psite-elist ○ List multidev environments ● psite-ecreate ○ Create multidev environment ○ Clone from target environment ● psite-edelete ○ Delete multidev environment
  18. 18. drush psite-import ● Import drush site archive from remote URL ● Great for trainings
  19. 19. Other useful commands ● 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
  20. 20. Ways to use Terminus ● Day-to-day operations ● Automating site migrations ● Continuous Integration
  21. 21. Thank you! Questions? @getpantheon irc.freenode.net #pantheon getpantheon.com https://github.com/pantheon-systems/terminus

×