# DAML archive name (daml build)

**URL:** <https://forum.canton.network/t/daml-archive-name-daml-build/748>\
**Category:** App Development\
**Tags:** daml, react\
**Created:** [June 29, 2020, 2:05pm UTC](https://forum.canton.network/t/daml-archive-name-daml-build/748 "2020-06-29T14:05:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex\_m](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/alex_m/32/550_2.png) [@alex\_m](https://forum.canton.network/u/alex_m)\
**Post date:** [June 29, 2020, 2:05pm UTC](https://forum.canton.network/t/daml-archive-name-daml-build/748/1 "2020-06-29T14:05:44Z")

</div>

Hello all,

Probably a noob question; how do I specify the name of the generated .dar file from `daml build`. When creating a project with `daml new <name>`, the name of the .dar is `<name>-<version>.dar`. However, when creating the project with `daml new <name> create-daml-app` the .dar is named `create-daml-app-<version>.dar`. In short, I would like to use `create-daml-app` to get me going with a React/DAML app, but want the .dar to be named after my project name.

Thanks

---

<div class="post-metadata">

**Author:** ![alex\_m](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/alex_m/32/550_2.png) [@alex\_m](https://forum.canton.network/u/alex_m)\
**Post date:** [June 29, 2020, 2:08pm UTC](https://forum.canton.network/t/daml-archive-name-daml-build/748/2 "2020-06-29T14:08:51Z")

</div>

…never mind, think it is specified in daml.yaml!

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [June 29, 2020, 2:26pm UTC](https://forum.canton.network/t/daml-archive-name-daml-build/748/3 "2020-06-29T14:26:44Z")

</div>

There are two ways to change it:

1. Change the `name` option in your `daml.yaml`. That will put the DAR in `.daml/dist/<yourprojectname>-version.dar`. It will also control the package name used in the DALF.
2. Pass the path explicitly via `-o path/to/your.dar` Here you can choose the path freely.

I would recommend to always do 1 and then if you need a specific location specify `-o` in addition to that.  
For some templates `daml new` will also automatically set the name to the directory you created but that is not the case for the `create-daml-app` template. Note that there might be some other references, e.g., in the typescript code to the name `create-daml-app` that you will also need to update.

---

<div class="post-metadata">

**Author:** ![SamirTalwar](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/samirtalwar/32/374_2.png) [@SamirTalwar](https://forum.canton.network/u/SamirTalwar)\
**Post date:** [June 29, 2020, 2:32pm UTC](https://forum.canton.network/t/daml-archive-name-daml-build/748/4 "2020-06-29T14:32:33Z")

</div>

Can we update create-daml-app to take the directory name into account, or is there a good reason why we don’t do that?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [June 29, 2020, 2:33pm UTC](https://forum.canton.network/t/daml-archive-name-daml-build/748/5 "2020-06-29T14:33:07Z")

</div>

The main reason is that there are other references to it, e.g., in the `package.json` which are more tricky to update given our current scheme.

---

<div class="post-metadata">

**Author:** ![alex\_m](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/alex_m/32/550_2.png) [@alex\_m](https://forum.canton.network/u/alex_m)\
**Post date:** [June 29, 2020, 7:31pm UTC](https://forum.canton.network/t/daml-archive-name-daml-build/748/6 "2020-06-29T19:31:40Z")

</div>

Thank you for the replies! Yes I later realised the reason for this was as @cocreature described; that are a few things in UI source etc that use the name `create-daml-app`

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [July 10, 2020, 11:44am UTC](https://forum.canton.network/t/daml-archive-name-daml-build/748/7 "2020-07-10T11:44:50Z")

</div>

No promise on timeline, but if you want a notification when this is fixed, you can track [this issue](https://github.com/digital-asset/daml/issues/6681).
