npx wrangler rollback
npx wrangler rollback [<version-id>] [--message <text>]
Risk: Careful
What it does
Sends all traffic back to an older version. Code only: data and bindings stay as they are.
When to use it
When a smoke test or the error graph says the new version is bad.
Example
$ npx wrangler rollback --message "Smoke test failed"Go back to the version before the latest, with a note why.
$ npx wrangler rollback --env stagingRoll back the staging copy only.
Learn it in: Smoke tests and auto rollback · Official docs