Use this to alias WP-CLI to 'wp' on a Bluehost VPS hosting account. Since WP-CLI is already on Bluehost's servers by default, this basically just creates the alias in your .bashrc file, sources it and makes it usable with running wp
, e.g. wp option get siteurl
or wp user list
. For more information about WP-CLI, you can check it out here: http://wp-cli.org/ and you can find a list of commands to use with it here: http://wp-cli.org/commands/. Also, because WP-CLI works differently VPS (opposed to shared), the alias is a little different. It is also worth noting that --allow-root
is required to run commands if you are logged in as root.
The idea is to put this somewhere you can call on it (such as on your main server) and run it via curl on the hosting account you need it on (see "Usage" below).
Ideal for developers and web masters.
Run the following from the directory on your server you would like to run this from:
git clone https://github.com/curtjen/wp-cli-bh-vps.git
Refer to "Usage" instructions below (under "Lazy Way (GitHub hosted)").
- Connect via SSH to the hosting account that you would like to run this on.
- Run the following command (note the dot "."):
. <(curl -sS PATH-TO-FILE)
- Start using
wp
for running WP-CLI commands.
- Connect via SSH to the hosting account that you would like to run this on.
- Run the following command (note the dot "."):
. <(curl -sS https://raw.githubusercontent.com/curtjen/wp-cli-bh-vps/master/wpcli)
- Start using
wp
for running WP-CLI commands.