Scale an app or agent
scale_serviceSet how many processes of one type an app or agent runs, the size they run on, or both. For an app, give process_type, such as web, and a count from 0 up to the organization's cap. For an agent, count is 0 (paused) or 1 (running). size is economy-1x, which stops after 30 minutes without traffic and starts again on the next request, or standard-1x, the same machine, which never stops; changing size restarts the processes. Give count, size, or both; omitting one keeps it. Scaling down stops running processes, and scaling web to 0 takes an app's URL offline, so confirm with the user first. Setting what it already has changes nothing. Websites run no process and are refused. Changing an agent's model is not offered here. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | The kind you mean. Omit to scale whatever the name holds; give it to have a name holding another kind refused. | |
| name | Yes | Required. The app's or agent's name. | |
| size | No | The size the processes run on: economy-1x stops after 30 minutes without traffic, standard-1x never stops. Omit to keep the size. | |
| count | No | How many processes of the type to run. An agent takes 0 or 1. Omit to keep the count; give count, size, or both. | |
| org_name | No | The Valet organization it belongs to. Omit to use the organization the account joined first. | |
| process_type | No | Required for an app: the Procfile process type to scale, such as web. An agent has none; omit it. |