Pantheon

Installing Terminus on MacOS (Mojave)

This installation process needs to have Homebrew please do install it before doing the following steps. Homebrew installs the stuff you need that Apple did not.

Requirements:

  • Homebrew
  • PHP v7.3
    • php-cli
    • php-curl
    • php-mbstring
    • php-xml
  • Composer

Installation process

We need Homebrew to install the needed programs and libraries

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

After successfully installing Homebrew, it’s time to use ‘brew’ to install PHP

brew install [email protected]

Let’s try to download Composer, using the terminal.

curl -sS https://getcomposer.org/installer -o composer-setup.php
php composer-setup.php --filename=composer
sudo mv composer /usr/local/bin/composer

Then we can easily install Pantheon’s CLI tool, Terminus

composer require pantheon-systems/terminus
sudo ln -s /home/username/vendor/pantheon-systems/terminus/bin/terminus  /usr/local/bin/terminus

you need to replace /home/username with the actual username of the machine.

Then let’s try to authenticate.

terminus auth:login --machine-token=‹machine-token›

That’s it, happy coding.

Installing Terminus on Ubuntu 18.04.4

The Terminus command-line tool of Pantheon.io can easily be installed on Ubuntu 18.04.4 (Bionic Beaver).

Install the dependencies and requirements, since Terminus is written in PHP scripting language, the minimum version requirement 5.6 running it on PHP v7.3 is much faster.

The PHP extensions needed are:

  • curl
  • cli
  • mbstring
  • xml

PHP v7.3

sudo -A add-apt-repository ppa:ondrej/php -y;
sudo apt-get update

Dependencies and Requirements

sudo apt-get install curl php7.3 php7.3-curl php7.3-cli php7.3-mbstring php7.3-xml git unzip -y

Composer (skip if the machine in use has a prior composer installed.)

curl -sS https://getcomposer.org/installer -o composer-setup.php
php composer-setup.php --filename=composer
sudo mv composer /usr/local/bin/composer

Install Terminus via Composer

composer require pantheon-systems/terminus

Then in order that terminus can be executed on all folders, create a symlink that can be accessed.

sudo ln -s /home/vagrant/vendor/pantheon-systems/terminus/bin/terminus  /usr/local/bin/terminus

Test that it is properly installed

terminus -v

Authenticate

terminus auth:login --machine-token=‹machine-token›

Installing Terminus on Windows using VM (Virtual Machine)

Terminus on Windows 10

Terminus is a command-line interface that provides advanced interaction with Pantheon. Terminus enables you to do almost everything in a terminal that you can do in the Pantheon Dashboard, and much more.

Terminus is not yet supported on any version of Windows. Some Windows users have installed Terminus using Git BASH on Git for Windows, or the Windows Subsystem for Linux, but according to Pantheon documentation, it is not supported.

This solution is to use Linux on a virtual machine, also there’s an inclusion of a provisioned dependency of Terminus along with the three common plugins, namely:

  • The Build Tools Terminus Plugin
  • The Composer Terminus Plugin
  • The Site Clone Terminus Plugin

Requirements

  • PC / Laptop
    • At least 500MB of disk space
    • At least 8GB of RAM
    • CPU that supports Hyper-V or AMD Virtualization
  • Git
  • Virtual Box
  • Vagrant

Here’s the url repository

https://github.com/careydayrit/terminus-windows

Installation

  • clone repo
  • go to the repository folder after cloning
  • type vagrant up
  • type vagrant ssh
  • authenticate to pantheon using machine token

That’s it, simple steps there is no need to figure out how to install the dependency of PHP, Composer, CURL, or library dependency.

Happy Coding!