forge rollback
Rollback a deployment.
Command
forge rollback <deployment-id> [--yes]
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
| string | yes | Deployment ID |
Flags
| Flag | Type | Default | Notes |
|---|---|---|---|
| bool | | Skip confirmation dialog |
Examples
forge rollback deploy_xxxxx
Skip confirmation:
forge rollback deploy_xxxxx --yes
Errors
| Exit code | Meaning |
|---|---|
| 0 | Rollback triggered successfully |
| 1 | Failed to rollback |
Pitfalls
- Confirmation — you are prompted to confirm unless
is passed.--yes - Previous deployment — rolls back to the previous successful deployment.
See also
{auto-injected}
Tested against
{auto-injected}