cluz deploy and rollback
Deploy, roll back, redeploy, restart, and read builds, build logs and deployments.
| Command | What it does |
|---|---|
cluz deploy | Build the configured branch and deploy it. |
cluz rollback | Redeploy the image of an earlier deployment. |
cluz redeploy | Install the latest version of a ready-made app and restart it. |
cluz restart | Restart every service of a ready-made app. |
cluz logs | Show a build's log, or follow a running build. |
cluz builds list | List the project's recent builds. |
cluz builds info | Show a build. |
cluz builds cancel | Cancel a queued or running build. |
cluz deployments list | List the project's recent deployments. |
cluz deployments info | Show a deployment. |
Deploy
cluz deploy
cluz deploy --wait
cluz deploy -f --team acme --project apiWithout flags cluz deploy starts the build and returns. --wait waits for the build and its deployment and exits non-zero with the reason if either fails. -f also streams the build log. --timeout bounds the wait, 30 minutes by default. Deploy explains what a deploy does.
Roll back
cluz rollback
cluz rollback 14 --waitWith no argument it returns to the deployment before the active one. The argument may be an ID, an ID prefix or a deploy number.
Redeploy and restart
cluz redeploy -p files --wait
cluz restart -p files --waitredeploy installs the latest published version of a ready-made app and restarts it. The app keeps running until the new version is healthy. restart restarts every service of the app, and it is briefly unavailable while it comes back. Both wait up to 15 minutes with --wait.
Logs, builds and deployments
cluz logs
cluz logs 12
cluz logs -f
cluz builds list
cluz builds info 12
cluz deployments listbuilds answers to build, and deployments to deployment and deploys. list answers to ls.