Skip to content

Instantly share code, notes, and snippets.

@morganestes
Last active November 2, 2023 18:51
Show Gist options
  • Save morganestes/4fcbb4d52aa26deb54a862f1cc68fdf7 to your computer and use it in GitHub Desktop.
Save morganestes/4fcbb4d52aa26deb54a862f1cc68fdf7 to your computer and use it in GitHub Desktop.
WP Engine wp-cli config mods
# Assuming you have SSH keys set up with WP Engine,
# and your ~/.ssh/config includes settings for using your key with *.ssh.wpengine.net,
# you can alias your environments and run commands from your local install.
# Replace the values in {} with the install name from WPE.
@production:
ssh: {prodinstall}@{prodinstall}.ssh.wpengine.net
@staging:
ssh: {stginstall}@{stginstall}.ssh.wpengine.net
@development:
ssh: {devinstall}@{devinstall}.ssh.wpengine.net
@wpe:
@production
@staging
@development
# Add special rules for WP Engine.
#
# @see https://make.wordpress.org/cli/handbook/config/
#
# Copy these to your ~/.wp-cli/config.yml file under the existing settings.
# You can also put these into a wp-cli.local.yml file in your site's _wpengineprivate folder
# and link to it with this rule in the main config.yml file:
# _:
# inherit: /sites/{your site slug goes here}/_wpeprivate/wp-cli.wpe.yml (or whatever filename you choose)
# Ensure proper placement of definitions in wp-config.php
config set:
anchor: '# WP Engine Settings'
placement: after
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment