Issue with flyctl cli scaling

Docs at Scaling and Autoscaling · Fly state
"flyctl scale count 3 tells us to run 3 instances of your application."

When trying to run it, I get:
Error 3 is not a valid process=count option

Not sure if this has to do with me being on Windows or not. I tried messing around with it a bit, but couldn’t get it to work right. I wanted to test a custom --max-per-region, but can’t since the command refuses to work.

Thanks for your time.

This is a new, confusing, error message since we rolled out multiple processes.

In most cases you’ll just want to use flyctl scale count app=3. If you use multiple processes you’d replace “app” by the name of your process.

1 Like

Thanks! Works fine doing that.

Had the same issue. Looks like the fly scale count --help text doesn’t reflect this change, so the “fix” isn’t really “discoverable”:

  flyctl scale count <count> [flags]

Should now be:

  flyctl scale count <proc>=<count> [flags]

  flyctl scale count app=3
1 Like

This should be fixed in the next flyctl release. It will scale your only process if you only have 1 (most apps do), else it’ll provide a more useful error message.

1 Like