It would be awesome if we could rename apps from their auto generated names
Your request is noted. It’s something that we can’t do at the moment.
That said you could do this at your own risk
Make an empty directory
flyctl init in there
enter your desired name
Set the builder to
Make sure you select the same organization
This will write out a
In there should be
app="your desired name"
make a note…
Go back to the original app
make a note of the original generated app name
replace that name with your desired name in the
and then run
And the app will go live - your old app is still running
What won’t be copied across - 1: your secrets, 2: your certs. You’ll have to recreate them. And your app will have new IP addresses.
But you’ll have your desired application name.
Oh and once everything on the new name is working, don’t forget to
flyctl destroy originalappname
Thanks for that detailed solution.
Just an idea, could there be a higher level abstraction like a nickname that can be used in the GUI and toml?
@dan.wetherald that’s a good suggestion that we’ll look into
- I was renaming the app in the fly.toml and re-running
flyctl deploybut Fly.io already registered the name (noted the app as inactive). So the command returns
Error not possible to validate configuration: server returned Could not resolve App
- I tried re-running
flyctl launchthinking it would register a new app with the manually specified name but the fly.toml file gets overwritten (even after ticking the option to reuse the information in the file)
One more vote for this issue! It would be great if we could rename an app !