How do you duplicate a phoenix app?

I simply want to copy a local phoenix app at the command line using BASH.


You should use cp with -a to make the copy, Go in the parent directory of your application root and

$ cp -a your_app_name/ new_app_name

Thanks, I know my way around BASH to copy a directory etc, but how do you copy a phoenix app and change the app name in mix.exs?

Is there a way to do that with a mix command or ?

Or does the new app have to be manually changed from grep-ing the app name throughout dirs/files?

Sorry, I thought it was an easy BASH question :slight_smile:

You can see this thread for your specific question How to change a Phoenix Project name smoothly?

There is also this link

1 Like