# May I change app id and name before build?

**URL:** <https://forum.ionicframework.com/t/may-i-change-app-id-and-name-before-build/97782>\
**Category:** ionic-v3\
**Created:** [July 11, 2017, 7:21pm UTC](https://forum.ionicframework.com/t/may-i-change-app-id-and-name-before-build/97782 "2017-07-11T19:21:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rnsweb](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rnsweb/32/111374_2.png) [@rnsweb](https://forum.ionicframework.com/u/rnsweb)\
**Post date:** [July 11, 2017, 7:21pm UTC](https://forum.ionicframework.com/t/may-i-change-app-id-and-name-before-build/97782/1 "2017-07-11T19:21:18Z")

</div>

Hi!  
Is it possible to change application name that is stored in config.xml?  
I need it, because when I build application for testing i want to name it like “APP DEBUG”.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [July 11, 2017, 10:34pm UTC](https://forum.ionicframework.com/t/may-i-change-app-id-and-name-before-build/97782/2 "2017-07-11T22:34:35Z")

</div>

Sure, just edit the file. Not that you might have to `ionic cordova prepare` or remove and re-add the platform for the changes to take effect - test that out, I don’t know exactly which one it is right now.

---

<div class="post-metadata">

**Author:** ![rnsweb](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rnsweb/32/111374_2.png) [@rnsweb](https://forum.ionicframework.com/u/rnsweb)\
**Post date:** [July 12, 2017, 2:25pm UTC](https://forum.ionicframework.com/t/may-i-change-app-id-and-name-before-build/97782/3 "2017-07-12T14:25:04Z")

</div>

It’s not exactly what I want.  
I want to run `ionic cordova build --release --prod` and change app name before build. Replace config.xml or something else…  
When I run `ionic cordova build` i need name "App Name DEBUG"  
When I run `ionic cordova build --release --prod` i need name “App Name”

---

<div class="post-metadata">

**Author:** ![mich356c](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mich356c/32/105794_2.png) [@mich356c](https://forum.ionicframework.com/u/mich356c)\
**Post date:** [July 12, 2017, 2:49pm UTC](https://forum.ionicframework.com/t/may-i-change-app-id-and-name-before-build/97782/4 "2017-07-12T14:49:59Z")

</div>

Could just use an npm script?

```auto
"scripts": {
    "build:debug": "node script/to/change/name/debug.js && ionic cordova build",
    "build:release": "node script/to/change/name/release.js && ionic cordova build --release --prod"
}

```

As long as you don’t change the app id, I believe you don’t have to re-add the platforms 🙂

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [July 12, 2017, 2:58pm UTC](https://forum.ionicframework.com/t/may-i-change-app-id-and-name-before-build/97782/5 "2017-07-12T14:58:06Z")

</div>

Yes, what @mich356c suggested would probably work for that - but be aware that this has big effects for the content of the `platforms` folder. Whole iOS project folder is named after the app etc - so this can cause a lot of problems.

---

<div class="post-metadata">

**Author:** ![rnsweb](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rnsweb/32/111374_2.png) [@rnsweb](https://forum.ionicframework.com/u/rnsweb)\
**Post date:** [July 12, 2017, 3:04pm UTC](https://forum.ionicframework.com/t/may-i-change-app-id-and-name-before-build/97782/6 "2017-07-12T15:04:15Z")

</div>

Ok! Thank you… i’ll think about it… =)
