Last active
April 16, 2024 21:01
-
-
Save mjones129/e478ec7c1c92ab30e5c45ca805425d84 to your computer and use it in GitHub Desktop.
Install Terminus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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