csph deployments 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, build and start commands, port and health check as a rolling update: the running spherelet keeps serving until the earlier version passes its health check. Variables and secrets, the spherelet size and count, autoscaling and domains stay as they are.
For a service built from git, a rollback pauses auto-deploy, so the next push
doesn't replace the version you rolled back to. Turn it back on with
csph deployments autodeploy resume <deployment-id>.
Usage
csph deployments rollback [flags]
Options
Command Specific
Inherited
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
- csph deployments — manage deployments
- csph deployments get — get deployment
- csph deployments logs — view deployment logs (runtime, build, or deploy)
- csph deployments list — list deployments
- csph deployments update — update deployments
- csph deployments delete — delete deployments
- csph deployments start — start a deployment
- csph deployments stop — stop a deployment
- csph deployments restart — restart a deployment
- csph deployments redeploy — redeploy a deployment
- csph deployments promote — deploy an image built for another environment, without rebuilding
- csph deployments scale — scale a deployment to a target spherelet count
- csph deployments port — update the port of a deployment
- csph deployments domains — manage a deployment's custom domains
- csph deployments env — list the setting names a deployment gets
- csph deployments autodeploy — resume or pause auto-deploy: a push to the service's branch builds and deploys it
- csph deployments builds — manage a deployment's builds
- csph deployments runs — start and manage runs
- csph deployments default-url — turn the deployment's default URL off or on