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›