Skip to content

Instantly share code, notes, and snippets.

@mjones129
Last active April 16, 2024 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjones129/e478ec7c1c92ab30e5c45ca805425d84 to your computer and use it in GitHub Desktop.
Save mjones129/e478ec7c1c92ab30e5c45ca805425d84 to your computer and use it in GitHub Desktop.
Install Terminus
#!/bin/bash
#update all the things
sudo apt update &&
sudo apt upgrade -y &&
#install all the dependencies
sudo apt install -y curl php8.1 php-xml git composer &&
#install wp-cli
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar &&
#check if it works
php wp-cli.phar --info &&
#install binary
chmod +x wp-cli.phar &&
sudo mv wp-cli.phar /usr/local/bin/wp &&
#install the actual Terminus
mkdir -p ~/terminus &&
cd ~/terminus &&
curl -L https://github.com/pantheon-systems/terminus/releases/latest --output terminus &&
chmod +x terminus &&
sudo ln -s ~/terminus/terminus /usr/local/bin/terminus &&
echo "Terminus successfully installed! Now you can generate your machine token to log in: https://docs.pantheon.io/terminus/install#machine-token"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment