CLI reference
kusaw rollback
Roll back one update: swap kusaw.prev back, restore migrated databases and changed configs, and keep a copy of what was replaced.
kusaw rollback
Roll back one update: swap kusaw.prev back, restore migrated databases and changed configs, and keep a copy of what was replaced.
Usage
kusaw rollback [flags]Flags
| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for rollback |
--json | bool | false | Print JSON | |
--suspend-now | bool | false | Suspend running runs at the step boundary and continue the rollback | |
--wait | duration | 30m0s | How long running steps may finish before the rollback asks or stops | |
--yes | bool | false | Confirm the rollback without a prompt |
Exit codes
| Code | Name | Description |
|---|---|---|
| 0 | ok | Success. |
| 1 | error | Runtime error. |
| 2 | usage | Usage or validation error. |
| 3 | rejected | Control request rejected; the error string is printed verbatim. |
| 4 | not picked up | Control request not picked up within the wait time while serve runs. |
Example
kusaw rollback --yes