Skip to content
Development
Command

/rollback

Restore the previous Cloudflare deployment and verify recovery. Fires when a deploy broke prod and you need the last-good version back.

BOOST
From plugin
heymegabyte-claude-skills
2234 skills28 agents34 commands
Install
> /plugin marketplace add heymegabyte/claude-skills

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/rollback

Context preview

What this command does when you run it.

Restore the previous Cloudflare deployment and verify recovery. Fires when a deploy broke prod and you need the last-good version back.

Command definition

rollback.md
description: Restore the previous Cloudflare deployment and verify recovery. Fires when a deploy broke prod and you need the last-good version back.
argument-hint: "[domain] (optional — defaults to cwd)"

Fast recovery. Worker rollback is instant + safe; **D1 schema rollback is approval-required** (see note).

Steps

1. **List** — `npx wrangler deployments list` → identify the current version + the prior known-good version id. 2. **Pick prior** — select the deployment immediately before the current one (or a specific id if the user names it). 3. **Rollback** — `npx wrangler rollback <version-id> --message "<why>"`. `--message` skips the interactive confirm (MANDATORY for unattended runs — a TTY prompt hangs the agent) and writes the audit trail into `deployments list`. Confirm the CLI reports the active version flipped. 4. **Re-verify** — `node .claude/control-plane/ccctl.mjs resolve` → `ccctl verify <verifyUrl> --status 200`, then load the homepage in a real browser and assert it renders with 0 console errors. Do NOT declare recovered until the live URL is healthy. 5. **Report** — restored version id, previous (broken) id, and the health verdict with evidence.

Note — D1 / data rollback (approval-required)

  • A worker rollback does NOT revert database schema/data. If the incident was a bad migration, recovering data uses `wrangler d1 time-travel restore --timestamp <iso>` (or `--bookmark`). This is destructive + approval-required — surface it as a blocker and get explicit sign-off before running.
Read more
Ships withheymegabyte-claude-skills

Agent Skills — agent-neutral autonomous product-building OS for 32+ AI coding tools. 23 skill categories · 28 agents · 149 reference docs · 37 platform variants. One-line prompts → deployed products on Cloudflare Workers.

Get the whole plugin

Other commands on heymegabyte-claude-skills.