Stage Diff
Typical situation: you’re about to promote staging to production and want to check they actually match. Also good for auditing what a long-running PR preview has that production doesn’t, or tracking down stale resources.
$ wd diff staging production Diff: staging vs production
Resources: = payments-db (d1) — same + cache-kv (kv) — only-in-a ~ token-kv (kv) — different
Workers: = workers/api — same + workers/experiment — only-in-a
Secrets: ~ workers/api/STRIPE_KEY: staging=set, production=setThe symbols: = same in both, + only in the first stage, - only in the second, ~ exists in both but different.
Machine-readable output
Section titled “Machine-readable output”$ wd diff staging production --format json{ "resources": [ { "name": "payments-db", "type": "d1", "status": "same" }, { "name": "cache-kv", "type": "kv", "status": "only-in-a" }, ... ], "workers": [...], "secrets": [...]}Pipe this into jq or your own tooling for automated promotion checks.