Repository navigation
No rollback command: rolling a Worker back needs a hand-built deployments create #761
workers-devprod
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Moved from #106. Originally opened by joeblew999 on 2026-09-30.
cf version: 1.0.0-beta.5, macOS
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 noworkers rollbackorversions deploy.What works today, by hand:
cf workers deployments list --worker <name> --per-page 100gives the history, newest first.cf workers deployments create --worker <name> --strategy percentage --versions '[{"version_id":"<old>","percentage":100}]'.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-runlike 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.Found while evaluating cf for a dev workflow: https://github.com/joeblew999/cf-cli-test (findings/lifecycle.md). Related: #68 (no
tail).gatezh commented on 2026-10-09:
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.All reactions