Skip to content

stackblaze wait

Polls the app’s status every 5 seconds until it and all its add-ons are running, the deploy fails, or the timeout passes.

stackblaze wait [--timeout <seconds>] [options]
Flag Description
--timeout <seconds> Maximum wait (default 90)

Also accepts the scope and output flags: -p, --pipeline, --phase, -a, --app, --token, --api-url, -o, --output, --json.

Exit code 0 when ready; 1 when the deploy failed or the timeout passed. The JSON result has ready, phaseStatus, url, and failed or timedOut when relevant.

Terminal window
stackblaze wait --timeout 300 && curl -fsS "$(stackblaze apps get -o json | jq -r .url)"