All Projects → ryanshoover → wpe-cli

ryanshoover / wpe-cli

Licence: other
WP-CLI extension to interact with WP Engine installs.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to wpe-cli

wordpress-project
Generic project structure for WordPress website industrialisation.
Stars: ✭ 28 (+0%)
Mutual labels:  wp-cli
i18n-command
Provides internationalization tools for WordPress projects.
Stars: ✭ 76 (+171.43%)
Mutual labels:  wp-cli
db-command
Performs basic database operations using credentials stored in wp-config.php.
Stars: ✭ 65 (+132.14%)
Mutual labels:  wp-cli
checksum-command
Verifies file integrity by comparing to published checksums.
Stars: ✭ 29 (+3.57%)
Mutual labels:  wp-cli
wp-cli-dev
🛠 WP-CLI development environment that allows for easy development across all packages
Stars: ✭ 29 (+3.57%)
Mutual labels:  wp-cli
export-command
Exports WordPress content to a WXR file.
Stars: ✭ 12 (-57.14%)
Mutual labels:  wp-cli
wp-cli-seed-command
WP CLI Seed Command is extension for WP-CLI to seed database with sample data
Stars: ✭ 20 (-28.57%)
Mutual labels:  wp-cli
core-command
Downloads, installs, updates, and manages a WordPress installation.
Stars: ✭ 41 (+46.43%)
Mutual labels:  wp-cli
trellis-sync
Trellis Database and Uploads Folder Synchronisation scripts and example WP CLI Aliases
Stars: ✭ 27 (-3.57%)
Mutual labels:  wp-cli
config-command
Generates and reads the wp-config.php file.
Stars: ✭ 32 (+14.29%)
Mutual labels:  wp-cli
wp-cli-build
Fetch specific versions of plugins/themes from wordpress.org using a build file
Stars: ✭ 45 (+60.71%)
Mutual labels:  wp-cli
import-command
Imports content from a given WXR file.
Stars: ✭ 19 (-32.14%)
Mutual labels:  wp-cli
revision-strike
Periodically purge old post revisions via WP Cron.
Stars: ✭ 19 (-32.14%)
Mutual labels:  wp-cli
bedrock-wordpress-docker
Dockerized Wordpress using Bedrock
Stars: ✭ 36 (+28.57%)
Mutual labels:  wp-cli
wp-cli-themecheck
Run Themecheck in WP_CLI
Stars: ✭ 39 (+39.29%)
Mutual labels:  wp-cli
WordPress-Distribution
This repository helps you to get a local new and fresh WordPress for everything you want (e.g. Developing, Testing, etc.).
Stars: ✭ 16 (-42.86%)
Mutual labels:  wp-cli
jw-wpcli-random-posts
A robust random post generator for WP CLI which supports multisite, post types, post counts, taxonomies, terms, term counts and featured images. Complete with a cleanup command to undo it all!
Stars: ✭ 58 (+107.14%)
Mutual labels:  wp-cli
dudestack
A toolkit for creating a new professional WordPress project with deployments. Originally based on Roots/bedrock.
Stars: ✭ 82 (+192.86%)
Mutual labels:  wp-cli
package-command
Lists, installs, and removes WP-CLI packages.
Stars: ✭ 16 (-42.86%)
Mutual labels:  wp-cli
builds
Phar, Debian, and RPM builds of WP-CLI
Stars: ✭ 37 (+32.14%)
Mutual labels:  wp-cli

WPE CLI

Provides wp-cli access to your remote WP Engine installs

Usage

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 [email protected] 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.

Installation

Option 1: Install this as a wp-cli package

  1. Install any wp-cli package (if you haven't already done so) Ex: wp package install anhskohbo/wp-cli-themecheck
  2. Edit ~/.wp-cli/packages/composer.json
  3. Add the ryanshoover/wpe-cli repo as a requirement
  4. Run ~/.wp-cli/packages/composer update
  5. Use the CLI commands from any WordPress install on your local machine
	"require": {
        "ryanshoover/wpe-cli": "dev-master",
    },
	"repositories": {
        "ryanshoover/wpe-cli": {
            "type": "vcs",
            "url": "https://github.com/ryanshoover/wpe-cli"
        }
    },

Option 2: Install this as a plugin

  1. Clone the repo into your plugins folder git clone [email protected]:ryanshoover/wpe-cli.git ./wp-content/plugins/wpe-cli
  2. Enable the plugin
  3. Use the CLI commands from just this WordPress install.

Configure the authentication settings

  1. Open up the "advanced" tab in WP Engine Portal
  2. Open the Network Inspector
  3. Run a command in the wp-cli window
  4. Look at the request that went out to https://my.wpengine.com/installs
  5. From the request, get
    • The value for the Header X-CSRF-Token
  • The value for the Cookie __ar_v4
    • The value for the Cookie _session_id
  1. Add these values to your config file in the format below
  2. Done!
# Settings for the wpe-cli integration
wpe-cli:
  token: ABCDEFGHIJKLMNOP
  ar_v4: QRSTUVWYZ1234567890
  session_id: abcdefghijklmnop

Pro tip

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].