idempotency please : ```fly apps create``` fails is the app already exists, and I cant use "-p" for example to allow it to fail silently.
Please only report specific issues with flyctl behavior. Anything like a support request for your application should go to https://community.fly.io. More people watch that space and can help you faster!
Describe the bug Briefly, describe what broke and provide the following details:
fly apps create gedw99-rio-app
automatically selected personal organization: Gerard Webb
Error: Validation failed: Name has already been taken
There is no option to not error, if the app is already created.
fly apps create -h
Create a new application on the Fly platform. This command won't generate a fly.toml configuration file, but
you can fetch one with 'fly config save -a <app_name>'.
Usage:
fly apps create <app name> [flags]
Flags:
--generate-name Generate an app name
-h, --help help for create
-j, --json JSON output
--name string The app name to use
--network string Specify custom network id
-o, --org string The target Fly.io organization
Global Flags:
-t, --access-token string Fly API Access Token
--debug Print additional logs and traces
--verbose Verbose output
We have unix'smkdir -p for idempotency reasons.
It would be nice if fly apps create and other pertinent fly commands had this feature too.
It would mean that scripts using flyctl can be more automated.
I have been using fly for a fair while and it's getting harder to write scripts as fly gets more features too. I feel that adding some basic idempotency would be in helpful.
Happy to discuss..
- Operating system
fly version
fly version fly v0.2.124 darwin/arm64 Commit: 790bb3b2c4536d41c6f96b88bcd87a95486ff5ea BuildDate: 2024-08-29T17:17:41Z