Giter Club home page Giter Club logo

cli's Introduction

Pantheon CLI

Dependency Status

The Pantheon Command Line Interface is a successor to the "Terminus" project, which provides access to the Pantheon Platform via Drush. While Terminus has provided great value (and we're going to keep the name in the product), we felt that it was important to have a first-class standalone CLI toolkit:

  • That we could distribute as an independent executable.
  • Which could "wrap" other commands that run on the platform.

If you would like to contribute, pull requests are welcome!

Installation

Currently the quickest way to install the project is to grab the .phar file from github. We are currently in pre-release, and so instructions will change, but for now something like this should work:

curl https://github.com/pantheon-systems/cli/releases/download/0.0.4-alpha/terminus -L -o /usr/local/bin/terminus
chmod +x /usr/local/bin/terminus

Stay tuned for updated installation instructions as the project matures.

Usage

Currently the command-set exposed by the Pantheon CLI is limited:

  • Authentication to the platform.
  • List your sites.
  • Perform remote actions on sites using the drush or wp-cli utilities.

Example

As of now, the implementation is very limited. The only commands of use are:

  • terminus auth login
  • terminus sites show
  • terminus drush
  • terminus wp

A great deal more is still to come as we port over the rest of the dashboard feature-set, and add conveniences.

terminus auth login
Your email address?: [email protected]
Your dashboard password (input will not be shown):
Logging in as [email protected]
Success!
terminus sites show
+--------------------+-----------+---------------+--------------------------------------+
| Site               | Framework | Service Level | UUID                                 |
+--------------------+-----------+---------------+--------------------------------------+
| outlandish-josh    |           | personal      | 3ecd4d40-bdf2-4e52-a519-7e697ecdfe20 |
| multidev-sneakpeak |           | business      | 0706939a-fd1f-42fb-bd46-a5ce89ac5789 |
| sftp-mode-ftw      |           | free          | 100486f7-3488-eb11-10c4-9fbfab1996af |
| new-wp-spinup      | wordpress | free          | c33df3d3-deae-48ac-b4e1-97e36ea1ba34 |
+--------------------+-----------+---------------+--------------------------------------+

# Run a drush cc all
terminus drush cc all --site=outlandish-josh --environment=dev

# Install a freshly spun-up WordPress site.
# NOTE: Replace with your own site name, email, password!
terminus wp core install --site=new-wp-spinup --title=CliInstall --admin_user=admin --admin_password=XXXXXX [email protected] --url=dev-new-wp-spinup.gotpantheon.com

Credits

We have leaned heavily on the work of wp-cli in architecting this command line utility with an object-oriented structure. We've also (obviously) been greatly inspired by Drush.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.