Created
October 23, 2019 14:29
-
-
Save eksiscloud/7b072b9c8474a1b1c079232021c23906 to your computer and use it in GitHub Desktop.
WP CLI without root/sudo
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
#!/usr/bin/env bash | |
# | |
# install WP CLI at your home-dir. Change if you want something else | |
# make executable: chmod u+x wpcli.sh | |
# use ./wpcli.sh | |
# | |
mkdir ~/wp-cli | |
wget -q https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O ~/wp-cli/wp | |
chmod 755 ~/wp-cli/wp | |
export PATH="$PATH:~/wp-cli" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment