Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Created October 23, 2019 14:29
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 eksiscloud/7b072b9c8474a1b1c079232021c23906 to your computer and use it in GitHub Desktop.
Save eksiscloud/7b072b9c8474a1b1c079232021c23906 to your computer and use it in GitHub Desktop.
WP CLI without root/sudo
#!/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