Docs
CLI

cluz deploy and rollback

Deploy, roll back, redeploy, restart, and read builds, build logs and deployments.

CommandWhat it does
cluz deployBuild the configured branch and deploy it.
cluz rollbackRedeploy the image of an earlier deployment.
cluz redeployInstall the latest version of a ready-made app and restart it.
cluz restartRestart every service of a ready-made app.
cluz logsShow a build's log, or follow a running build.
cluz builds listList the project's recent builds.
cluz builds infoShow a build.
cluz builds cancelCancel a queued or running build.
cluz deployments listList the project's recent deployments.
cluz deployments infoShow a deployment.

Deploy

cluz deploy
cluz deploy --wait
cluz deploy -f --team acme --project api

Without 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 --wait

With 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 --wait

redeploy 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 list

builds answers to build, and deployments to deployment and deploys. list answers to ls.