fly init: unknown command

I can’t seem to run fly init, even though fly deploy suggests I do. Following instructions from Run a Global Image Service .

> fly apps create

? App Name (leave blank to use an auto-generated name) <app name>

Automatically selected personal organization: <my name>

New app created: <app name>
> fly deploy

Error No app specified. Specify an app or create an app with 'flyctl init'
> fly init
Error: unknown command "init" for "flyctl"

Did you mean this?
        info

Run 'flyctl --help' for usage.

Error unknown command "init" for "flyctl"

Did you mean this?
        info

FYI:

>  fly version
flyctl v0.0.241 linux/amd64 Commit: a79a76a BuildDate: 2021-09-22T16:09:15Z

Sorry about that! We removed fly init as we had no less than 3 ways to create a new app :slight_smile:

You can use fly launch --name yourappname now. It will generate an application and associated configuration.

We’ll fix that error message. Thanks for the heads up!

1 Like