CLI & APICommand reference
stackblaze scale
Scale web/worker instances or autoscaling for the linked app (one release)
Usage: stackblaze scale [options] [assignments...]
Scale web/worker instances or autoscaling for the linked app (one release)
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)
--skip-deploy Stage the change on the server instead of
deploying it (apply later with `pending
apply`) (default: false)
-m, --message <text> Release message shown in the deployments
timeline
-r, --replicas <n> Instance count for --process (0–50, legacy
form)
--process <name> Process for -r: web or worker (default: "web")
--autoscale <process=min:max> Enable autoscaling (repeatable), e.g. web=2:5
--autoscale-off <process> Disable autoscaling for a process (repeatable)
-o, --output <format> Output format: text or json (choices: "text",
"json")
-h, --help Print help
Examples:
$ stackblaze scale web=3 run 3 web instances
$ stackblaze scale web=2 worker=1 both processes, one release
$ stackblaze scale --autoscale web=2:5 autoscale between 2 and 5 web instances
$ stackblaze scale --autoscale-off web back to a fixed instance count
$ stackblaze scale -r 0 --process worker legacy single-process form
Instance counts are checked against your plan's per-service limit. Use
--skip-deploy to stage the change and ship it later with other staged changes.Example
Run two web instances, with a release message for the deployments timeline.
stackblaze scale web=2 -p github-demo-cw8z -e dev -a hello-web -m "More capacity for launch"OK Scaled github-demo-cw8z/dev/hello-web web → 2 instance(s) (was 1)