Forked from mortennajbjerg/Install WP CLI on Hetzner Managed Server
Created
July 23, 2021 14:41
-
-
Save derweili/485f12162e6c12a51f4cae963d5368cd to your computer and use it in GitHub Desktop.
Install WP CLI on Hetzner Managed Server
This file contains hidden or 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
mkdir ~/bin | |
mkdir ~/bin/wp-cli | |
cd ~/bin/wp-cli | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
chmod +x wp-cli.phar | |
echo "export COLUMNS" >> ~/.bashrc | |
echo "alias wp='php ~/bin/wp-cli/wp-cli.phar'" >> ~/.bashrc | |
echo "alias php='/usr/bin/php'" >> ~/.bashrc | |
source ~/.bashrc | |
echo "PATH=$HOME/bin:$PATH" >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment