WordPress Commands

We design and build our servers to run WordPress like a dream and these custom command-line tools will take the experience to the next level. Check back here as we update and add new custom Bluehost CLI WordPress  commands! 

Note: These commands require our WordPress plugin to be installed.


Single Sign On

First available admin user:

wp bluehost sso

Specific email:

wp bluehost sso --email=user@mail.com

Specific user:

wp bluehost sso --username=john

Specific amount of time:

wp bluehost sso --min=5

Example output: 

Success: Single use login link valid for 3 minutes:
http://www.domain.com/wp-admin/admin-ajax.php?action=mmsso-check&salt=l3JGalFebXL2sY6gsIKzQKo8ttewfTV1&nonce=00376c754e

Cache

Add page caching:

wp bluehost cache add page

Remove page caching:

wp bluehost cache remove page

Example output:

Success: Page caching disabled.

Staging

Create Staging Site:

wp bluehost staging create

Clone Production to Staging:

wp bluehost staging clone

Destroy Staging Site:

wp bluehost staging destroy

Deploy Staging:

wp bluehost staging deploy files
wp bluehost staging deploy {db|database}
wp bluehost staging deploy {all|both}

Create Staging Restore Point:

wp bluehost staging save_state

Example Output:

Success: Staging website created successfully.