name: nexus-push
description: Push a local site up to a WP Engine environment. DESTRUCTIVE — overwrites the live WPE environment. Requires explicit confirmation. Use only when intentionally deploying local changes to WPE.
argument-hint:
disable-model-invocation: true
allowed-tools: Bash(nexus *)
Push Local → WP Engine (DESTRUCTIVE)
⚠️ This overwrites the WP Engine environment with your local site content.
Arguments: $ARGUMENTS
- Local site:
$0 - WPE install:
$1
Target syntax — required format
| Target | Format | Example |
|---|---|---|
| Local site | <name>@local |
frostscape@local |
| WPE destination | wpe:<account>/<install>@<env> |
wpe:jpollock911/testblankjpp1@production |
@localsuffix is required on the local site- Account is the WPE account slug, not the UUID
- Environment:
production,staging, ordevelopment
Step 1: Pre-flight check
nexus sites list
Before pushing:
- Confirm
$0exists locally and is in the desired state - Confirm
$1is the correct WPE install (check environment — don't push to production by mistake) - Verify a recent backup exists on WPE or create one:
nexus wpe backup create $1 - Run site health check:
nexus wp health --site $0
Step 2: Confirm with the user
Show them:
- Source:
$0(local) - Destination:
$1(WPE install, environment) - What will be overwritten: files + optionally DB
Ask explicitly: "Confirm you want to push $0 to $1? This cannot be automatically undone."
Only proceed after explicit "yes".
Step 3: Push
nexus sync push <name>@local --to wpe:<account>/<install>@production
Add --db to also push the database. Do not include --db for files-only.
Push is async — monitor in Local's UI. Do not interrupt.