scale

slasha scale

Set the number of running containers for one or more process types on the most recent active deployment of an app. Process types correspond to entries in your Procfile(e.g. web, worker, release).

Pass each process type as a TYPE=COUNT pair. Multiple pairs are applied in sequence.

# scale the web process to 2 instances
slasha scale --app my-api web=2

# scale multiple process types at once
slasha scale --app my-api web=3 worker=2
  • --app <SLUG> — target app slug (optional if slasha.toml is present)
  • TYPE=COUNT — one or more process type and replica count pairs (required)

Scale targets the latest deployment. To scale a different deployment, use --app and ensure the desired deployment is the most recent one.

Important Scaling Rules:
  • The minimum replica count for any process type is 1. You cannot scale a process to 0.
  • Litestream Constraint: If Litestream Backups are enabled for an application, the web process type is strictly locked to a maximum scale of 1 to prevent database corruption.