CLI & APICommand reference
stackblaze diagnose
Diagnose app performance (config, metrics, logs, addons)
Usage: stackblaze diagnose [options]
Diagnose app performance (config, metrics, logs, addons)
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)
--scale <window> Metrics window (choices: "2h", "24h", "7d", default:
"2h")
--log-minutes <n> Log search window in minutes
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
Check an app for platform-level problems: its status and resources, error lines in the recent logs, and its add-ons.
stackblaze diagnose -p github-demo-gv35 -e dev -a nginxDiagnosing github-demo-gv35/dev/nginx-9agm…
OK github-demo-gv35/dev/nginx-9agm
host: nginx-9agm.cloud-dev-central-1.stackblaze.app
status: running
resources: 0m CPU, 6Mi mem
OK No obvious platform-level issues detected.
No obvious platform-level bottlenecks — check application code, external APIs, or widen --scale / --log-minutes.
No HTTP latency metrics — ingress may be disabled or metrics unavailable.