muster rollback

muster rollback

Roll a service back to its previous deploy.

Synopsis

Terminal
muster rollback [--yes] [--json] [service]

Description

Runs .muster/hooks/<service>/rollback.sh, with skill pre-rollback and post-rollback hooks around it, then the health check. Without a service name, muster shows a picker and asks before running anything.

For a blue-green or canary service, rollback aborts a rollout that is still in progress, or switches a completed blue-green deploy back to the previous colour. If the rollback hook fails in a terminal, you can retry, run the cleanup hook and retry, or abort.

Flags

FlagDescription
--yesApprove changed or unapproved hooks without review (CI; same as MUSTER_APPROVE_HOOKS=1).
--jsonStream NDJSON events (start, log, done, health, summary), like deploy --json. Needs a service name and MUSTER_TOKEN.

Examples

Terminal
muster rollback        # pick a service, confirm, roll back
muster rollback api
muster rollback api --yes --json

Exit codes and JSON

Exits 0 when the service rolled back (and isn't unhealthy), 1 when the rollback failed or was aborted, or hooks weren't approved. 130 when cancelled. JSON events: JSON API.