You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No rollback command: rolling a Worker back needs a hand-built deployments create #106
What's missing: a way to roll a Worker back. cf cli search "roll back a worker to a previous version" returns nothing relevant (the matches are containers rollouts and radar), and there's no workers rollback or versions deploy.
What works today, by hand:
cf workers deployments list --worker <name> --per-page 100 gives the history, newest first.
Traffic converged to the old version in about 15 s. It works, but it needs JSON juggling, and it's the command you reach for under pressure.
Proposal:cf workers rollback [--worker <name>] [--version <id>] [--message <text>], defaulting to the Worker in the project config and the previous deployment's main version. It should support --dry-run like the generated commands (the deployments POST, shown before it's sent). AGENTS.md says new commands belong in Forge as overlays, so this may be a Forge overlay over the deployments API.
Another use case: rollback from CI. We roll back through a workflow_dispatch job that runs wrangler rollback, and that is the only reason the project would still need wrangler.jsonc next to cloudflare.config.ts after migrating. The hand-built deployments create works, but a CI step needs a few things it doesn't give:
Non-interactive by default:--yes handling like wrangler rollback, including Wrangler's "secrets changed since that version" confirmation.
The Worker name for a mode from the config (cf workers rollback --mode production), so the job doesn't hard-code <name>-production.
A default target: the previous version that served 100% of traffic, which is what wrangler rollback does with no version ID.
--message recorded on the deployment, so the reason shows up in the deployments list.
--dry-run that prints the target version before anything changes, as proposed above.
Thanks for the suggestion, and for writing up the CI use case too. A Worker rollback command isn't part of cf yet: for now that's done with cf workers deployments create, as you describe. We track feature requests in Discussions, so we've moved this to #761. Please follow and upvote it there.
Activity
gatezh commentedon Oct 9, 2026
Another use case: rollback from CI. We roll back through a
workflow_dispatchjob that runswrangler rollback, and that is the only reason the project would still needwrangler.jsoncnext tocloudflare.config.tsafter migrating. The hand-builtdeployments createworks, but a CI step needs a few things it doesn't give:--yeshandling likewrangler rollback, including Wrangler's "secrets changed since that version" confirmation.cf workers rollback --mode production), so the job doesn't hard-code<name>-production.wrangler rollbackdoes with no version ID.--messagerecorded on the deployment, so the reason shows up in the deployments list.--dry-runthat prints the target version before anything changes, as proposed above.workers-devprod commentedon Nov 24, 2026
Thanks for the suggestion, and for writing up the CI use case too. A Worker rollback command isn't part of cf yet: for now that's done with
cf workers deployments create, as you describe. We track feature requests in Discussions, so we've moved this to #761. Please follow and upvote it there.