redeploy
redeploy a deployment
🚀 Redeploy a deployment.
Redeploying rolls out the current settings as a rolling update: the running spherelet keeps serving until the new one passes its health check, so there's no downtime.
By default the command waits for the rollout to finish: the new spherelets are ready and the old ones have stopped. It exits non-zero if the rollout fails or doesn't finish within --wait-timeout (the rollout carries on in the background either way). It waits in CI and when piped too, so the exit code reflects the outcome. Pass --no-wait to return as soon as the redeploy is accepted.
With --output json or yaml, the final status is printed as an object:
id, status, success, timed_out and, on failure, a message.
Usage​
csph deployments redeploy [flags]
Options​
Command Specific​
Formatting​
For more information about formatting options, see Formatting.
Inherited​
Examples​
# redeploy a deployment interactively
> csph deployments redeploy
# redeploy a deployment and wait for the rollout to finish
> csph deployments redeploy <deployment-id>
# give a slow rollout longer to finish
> csph deployments redeploy <deployment-id> --wait-timeout 10m
# start the redeploy and return immediately
> csph deployments redeploy <deployment-id> --no-wait
# report the final status as JSON (e.g. in CI)
> csph deployments redeploy <deployment-id> -o json
See also​
- csph deployments — manage deployments
- csph deployments get — get deployments
- 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 promote — deploy an image built for another environment, without rebuilding
- csph deployments rollback — roll a deployment back to a previous version
- 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 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