fly scale command

It would be great if the scale command offered selecting the application name rather than just inferring it
Not sure if there is a space to post feature requests like this

fly scale -a
Usage:
  flyctl scale [command]

Available Commands:
  count       Change an app's VM count to the given value
  memory      Set VM memory
  show        Show current resources
  vm          Change an app's VM to a named size (eg. shared-cpu-1x, dedicated-cpu-1x, dedicated-cpu-2x...)

Flags:
  -h, --help   help for scale

Global Flags:
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output

Use "flyctl scale [command] --help" for more information about a command.

Error: unknown shorthand flag: 'a' in -a

It can! You just have to mention the specific subcommand being used:

fly scale count --help
Change an app's VM count to the given value.  For pricing, see
https://fly.io/docs/about/pricing/

Usage:
  flyctl scale count [count] [flags]

Flags:
  -a, --app string             Application name
  -c, --config string          Path to application configuration file
      --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
      --max-per-region int     Max number of VMs per region (default -1)
      --process-group string   The process group to scale
      --region string          Comma separated list of regions to act on. Defaults to
                               all regions where there is at least one machine running
                               for the app
      --vm-cpu-kind string     The kind of CPU to use ('shared' or 'performance')
      --vm-cpus int            Number of CPUs
      --vm-memory int          Memory (in megabytes) to attribute to the VM
      --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

Global Flags:
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output

Amazing thanks for the fast reply :smiley:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.