"wp-cli.setup.sh" is a shell script to install WP-CLI into common hosting servers.
- Related website
WP-CLI Advent Calendar 2014
A hosting server that SSH access is allowed.
- Connect to hosting server via SSH
- Run
wget --no-check-certificate https://raw.githubusercontent.com/tecking/wp-cli.setup.sh/master/wp-cli.setup.sh
(you can download the script) - Run
chmod +x wp-cli.setup.sh
- Run
./wp-cli.setup.sh
- Following the message, run
source ~/.cshrc
orsource ~/.bash_profile
- Please use At Your Own Risk
- Tested environment (hosting servers)
- SAKURA Rental Server (Japan)
- Heteml (Japan)
- Lolipop (Japan)
- X SERVER (Japan)
- ConoHa WING (Japan)
- WP-CLI (wp-cli.phar) is downloaded in ~/usr/local/bin directory
- Tab completions file for bash (wp-completion.bash) is downloaded in ~/ directory
- Once WP-CLI is installed, you can delete the script
- The script is usable under the following environment, maybe
- "sh" is available (you can check with
which sh
command) - "wget" is available (the script checks wget is usable or not)
- Login shell is "bash" or "csh"
- "sh" is available (you can check with
- 0.3.0 (2014-12-05)
- Check existence for wget command
- 0.2 (2014-11-30)
- Opening to the public