Provides wp-cli access to your remote WP Engine installs
Run wp-cli commands on your WP Engine install from your local environment
$ wp wpe cli myinstall core version
4.7.3
Clear all of the caches on your WP Engine production install
$ wp wpe flush myinstall
Success: Cache flushed!
Trigger a backup checkpoint on your WP Engine install
$ wp wpe backup myinstall
Success: Backup triggered! This can take a while! You will be notified at ryan.hoover@wpengine.com when the checkpoint has completed.
Replace your local database with a fresh copy of a WP Engine install's database
$ wp wpe fetch-db myinstall
Success: Local database replaced with database from myinstall.
wp package install anhskohbo/wp-cli-themecheck
~/.wp-cli/packages/composer.json
ryanshoover/wpe-cli
repo as a requirement~/.wp-cli/packages/composer update
"require": {
"ryanshoover/wpe-cli": "dev-master",
},
"repositories": {
"ryanshoover/wpe-cli": {
"type": "vcs",
"url": "https://github.com/ryanshoover/wpe-cli"
}
},
git clone git@github.com:ryanshoover/wpe-cli.git ./wp-content/plugins/wpe-cli
https://my.wpengine.com/installs
X-CSRF-Token
__ar_v4
_session_id
# Settings for the wpe-cli integration
wpe-cli:
token: ABCDEFGHIJKLMNOP
ar_v4: QRSTUVWYZ1234567890
session_id: abcdefghijklmnop
You can shorten $ wp wpe ...
to just $ wpe ...
. Just add this line to your ~/.bash_profile
or ~/.bashrc
and restart your shell window.
alias wpe='wp wpe' # shortcut alias for wpe-cli tool