stackblaze deployments
Alias: deployment.
stackblaze deployments list [-n <limit>]stackblaze deployments rollback [deploy-id] [--wait] [-y]| Subcommand | Description |
|---|---|
list |
Deploy history of the app: git builds, image deploys and configuration releases, with status, trigger and ref (commit or image tag) |
rollback [deploy-id] |
Roll back to an earlier deploy. Without an ID, the previous successful deploy. Asks for confirmation unless -y |
Options
Section titled “Options”| Flag | Applies to | Description |
|---|---|---|
-n, --limit <n> |
list |
Maximum entries (server default 100) |
--build <name> |
rollback |
Build name to roll back to (same as the positional ID) |
--wait |
rollback |
Wait up to 90 seconds until the app is running again; exits 1 if it does not become ready |
-y, --yes |
rollback |
Skip the confirmation |
Every subcommand accepts the scope and output flags: -p, --pipeline, --phase, -a, --app, --token, --api-url, -o, --output, --json.
Examples
Section titled “Examples”stackblaze deployments list -n 20stackblaze deployments rollback -y --waitstackblaze deployments rollback web-1a2b3c -ystackblaze deployments rollback <deploy-id> -y --wait --json | jq .wait.readyHow it works
Section titled “How it works”<deploy-id> is an ID from stackblaze deployments list: a history entry’s ID or a build name. What a rollback does depends on the entry:
- Image deploys and builds roll back to that entry’s image tag. This works for image apps as well as apps built from source.
- Configuration releases (variable and scale changes) roll back the configuration to that revision.
Without an ID, rollback picks the newest deploy that succeeded and is not the one running now. The confirmation names the target: image tag … or configuration revision ….
With --wait --json, stdout carries one JSON document: the rollback result (deploy, kind image or config, tag or revisionId) with the readiness check under wait. The exit code is 1 when the app does not come up.