Skip to Content
CLI & APICommand reference

stackblaze wait

Poll until an app (and its addons) are running, including a build or rollout still in progress

Usage: stackblaze wait [options]

Poll until an app (and its addons) are running, including a build or rollout
still in progress

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --timeout <seconds>    Max wait time (default: 600)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Wait for a rollout to finish (here, after apps update changed the image tag). The command exits when the app is ready, or with an error after --timeout.

stackblaze wait -p github-demo-cw8z -e dev -a hello-web
Waiting for github-demo-cw8z/dev/hello-web-qw6y to be ready (up to 10m00s)…
  github-demo-cw8z/dev/hello-web-qw6y: deploying — Rolling out new version; rolling out (Updated image nginxinc/nginx-unprivileged:1.27-alpine → nginxinc/nginx-unprivileged:1.27.3-alpine, health check): waiting for the new pod (2s elapsed)
…
  github-demo-cw8z/dev/hello-web-qw6y: deploying — Rolling out hello-web-qw6y-web (1m07s elapsed)
OK github-demo-cw8z/dev/hello-web-qw6y is ready
url: https://hello-web-qw6y.cloud-dev-central-1.stackblaze.app

On this page