How can i rename server instance?


i was wondering if there is an easy way to rename a cf server.
In the past i created a cf instance named myApp_65 using myApp_65.json file with all the information for the instance like cfengine,serverHomeDirectory,webroot ecc.
Now i need to rename my server to my_App_70, and i would like to know if there is a cli command to do that or i have to create a new instance and export/import my cf administrator settings in the new one.


Not really. To avoid conflicts, all the information for your server is stored internally with an ID which is generated via an MD5 hash of the name and web root of the server. The easiest thing is simply to forget and restart the server with a new name.

If you are using the .cfconfig.json file by convention, this will happen automatically and won’t require any manual steps.