Skip to content

Instantly share code, notes, and snippets.

@yousan
Last active March 11, 2020 06:56
Show Gist options
  • Save yousan/721bed85c7040d22cfa73cef47bbf8ed to your computer and use it in GitHub Desktop.
Save yousan/721bed85c7040d22cfa73cef47bbf8ed to your computer and use it in GitHub Desktop.
WP-CLI Install script for XServer
#!/usr/bin/env bash
mkdir ~/bin
curl -o bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x bin/wp
echo 'alias wp="php7.4 ~/bin/wp"' >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment