Request: Rename App

It would be awesome if we could rename apps from their auto generated names :slight_smile:

5 Likes

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
run flyctl init in there
enter your desired name
Set the builder to None
Make sure you select the same organization

This will write out a fly.toml file
In there should be app="your desired name"
make a note…

Go back to the original app
edit fly.toml
make a note of the original generated app name
replace that name with your desired name in the app="" line
save

and then run flyctl deploy

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?

1 Like

@dan.wetherald that’s a good suggestion that we’ll look into

2 Likes

Any updates?

2 Likes

+1 on this issue as well, currently trying out the service for the first time by following the guides hands-on as well as getting started with node and got confused at first due to this.

  • I was renaming the app in the fly.toml and re-running flyctl deploy but 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 launch thinking 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 !

1 Like