Skip to content

Use this to alias WP-CLI to 'wp' on a Bluehost VPS hosting account.

Notifications You must be signed in to change notification settings

curtjen/wp-cli-bh-vps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

wp-cli-bh-vps

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.

Installation

Self Hosted (you host the file)_

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

Lazy Way (GitHub hosted)

Refer to "Usage" instructions below (under "Lazy Way (GitHub hosted)").

Usage

Self Hosted (you host the file)

  1. Connect via SSH to the hosting account that you would like to run this on.
  2. Run the following command (note the dot "."): . <(curl -sS PATH-TO-FILE)
  3. Start using wp for running WP-CLI commands.

Lazy Way (GitHub hosted)

  1. Connect via SSH to the hosting account that you would like to run this on.
  2. Run the following command (note the dot "."):. <(curl -sS https://raw.githubusercontent.com/curtjen/wp-cli-bh-vps/master/wpcli)
  3. Start using wp for running WP-CLI commands.

About

Use this to alias WP-CLI to 'wp' on a Bluehost VPS hosting account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published