Synopsis
Shell
$ phrony rollback AGENT [flags]Description
Appends a deployment record that activates a previous published version. By default, rolls back to the second-most-recent distinct active version. Use --to to pin a specific semver that was previously active.
The target version must be published, not retired or deprecated, and the agent must not be archived.
Records deployed_by from PHRONY_ACTOR (or the OS user when unset).
AGENT is namespace/name.
Flags
| Flag | Description |
|---|---|
--to | Target version to activate (default: previous active version) |
Examples
Rollback to the previous active version:
Shell
$ phrony rollback demo/echo-agentRollback to a specific version:
Shell
$ phrony rollback demo/echo-agent --to 1.1.0On success:
Text
rolled back demo/echo-agent to 1.1.0 (was: 1.2.0)Up next