Launch new app `init`

Hi

As per the docs I want to launch an app:

    flyctl init --verbose \
        --access-token $ACCESS_TOKEN \
        --name $APP_NAME \
        --org $ORG \
        --nowrite ;

I then got the error that init was an invalid command. After searching the forum it was suggested init was no longer a command? I tried using launch but then even with --now the command requires interaction to confirm with Y/n because of an existing fly.toml file.

    flyctl launch --verbose \
        --access-token $ACCESS_TOKEN \
        --name $APP_NAME \
        --org $ORG \
        --now;

The app is launched from a CI job, so there is no interaction? How should we best proceed? Should/can we install a previous version of flyctl that has the init command? Thank you!

We deprecated init because it was overlapping too much with fly apps create and fly launch.

Use apps create to create a new app record on Fly with $APP_NAME, without deployment or config generation.

Use fly launch to generate a config and optionally deploy, all in one shot. If that’s your goal, you could remove fly.toml before running the command.

If you can describe your goal here, I can help!