Skip to main content

rollback

roll a deployment back to a previous version

⏪ Roll a deployment back to a previous version.

By default the deployment is rolled back to the version immediately before the current one. Pass --to <version-id> to target a specific earlier version.

Rolling back restores the earlier version's image, variables and health check as a rolling update: the running spherelet keeps serving until the earlier version passes its health check. The spherelet count, autoscaling and domains stay as they are.

Usage​

csph deployments rollback [flags]

Options​

Command Specific​

--account <string>
account ID
--no-wait
return immediately instead of waiting for the deployment to be running
--to <string>
version id to roll back to (defaults to the previous version)

--wait-timeout <duration> (default "5m0s")

how long to wait for the deployment to reach Running

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# roll a deployment back to its previous version interactively
> csph deployments rollback

# roll a deployment back to its previous version
> csph deployments rollback <deployment-id>

# roll a deployment back to a specific version
> csph deployments rollback <deployment-id> --to <version-id>

# roll back without waiting for the deployment to come up
> csph deployments rollback <deployment-id> --no-wait

See also​