The scale cmd doesn't work as doc says

I’m trying to set Scaling Modes following the doc.
But neither flyctl scale balanced nor flyctl scale set min=1 max=3 works. Following is what I see:

Scale application resources

Usage:
  flyctl scale [command]

Available Commands:
  count       Change an App's VM count to the given value
  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:
  -a, --app string      App name to operate on
  -c, --config string   Path to an app config file or directory containing one (default "./fly.toml")
  -h, --help            help for scale

Global Flags:
  -t, --access-token string   Fly API Access Token
  -j, --json                  json output
  -v, --verbose               verbose output

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

The autoscaling configuration has been moved to flyctl autoscale, sorry about that.

If you run flyctl autoscale balanced and flyctl autoscale set min=1 max=3 it’ll do what you want.

We’ve made flyctl scale work for manual scaling, we just didn’t do a good job updating the docs when we did that. :slight_smile:

Got it. Thanks for the prompt reply.

1 Like