Change an app’s VM count to the given value.The count applies to each selected region. For example:
fly scale count 4 —region ord,sjc
sets four machines in ord and four in sjc, creating or destroying machines as needed.
Without —region, the count applies to each region where the group has machines.
Groups without machines use the primary region.
Relative counts adjust each selected region, for example: fly scale count +1 or fly scale count — -1.
Targets above —max-per-region are rejected.For pricing, see https://docs.fly.io/about/pricing
Usage
fly scale count [count] [flags]
Options
-a, --app string Application name -c, --config string Path to application configuration file -e, --env stringArray Set of environment variables in the form of NAME=VALUE pairs. Can be specified multiple times. --from-snapshot string New volumes are restored from snapshot, use 'last' for most recent snapshot. The default is an empty volume -h, --help help for count --host-dedication-id string The dedication id of the reserved hosts for your organization (if any) --max-per-region int Max number of VMs per region (default -1) -g, --process-group string The process group to scale -r, --region string Comma separated list of regions to act on. Defaults to all regions where the group has machines --vm-cpu-kind string The kind of CPU to use ('shared' or 'performance') (also --vm-cpukind) --vm-cpus int Number of CPUs (also --cpus) --vm-memory string Memory (in megabytes) to attribute to the VM (also --memory) --vm-size string The VM size to set machines to. See "fly platform vm-sizes" for valid values --with-new-volumes New machines each get a new volumes even if there are unattached volumes available -y, --yes Accept all confirmations (also --auto-confirm)
Global Options
-t, --access-token string Fly API Access Token --debug Print additional logs and traces --verbose Verbose output