# Multiple domain file

**URL:** <https://forum.rasa.com/t/multiple-domain-file/47323>\
**Category:** Rasa Open Source\
**Created:** [August 31, 2021, 6:14am UTC](https://forum.rasa.com/t/multiple-domain-file/47323 "2021-08-31T06:14:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![parth1618](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/parth1618/32/16749_2.png) [@parth1618](https://forum.rasa.com/u/parth1618)\
**Post date:** [August 31, 2021, 6:14am UTC](https://forum.rasa.com/t/multiple-domain-file/47323/1 "2021-08-31T06:14:41Z")

</div>

Hi have following structure: project\_dir

> actions (directory) data (directory) models domains (directory) - intents.yml - actions.yml - responses.yml - slots.yml - entities.yml - forms.yml - general.yml

- config.yml
- credentials.yml
- endpoints.yml

I am running following command to execute multiple domain file rasa train --domain /domains (I have also tried rasa train --domain .\domains)

But it is not working. What is right way to execute this command to work with multiple domains file?

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [August 31, 2021, 4:16pm UTC](https://forum.rasa.com/t/multiple-domain-file/47323/2 "2021-08-31T16:16:59Z")

</div>

Hello

Yes, splitting the domain is a bit harder than the rest.

@jonathanpwheat built this script to merge multiple domain files into one: [Rasa domain Assembler · GitHub](https://gist.github.com/jwheat/9a2611b738127f45d32254117fe3b959)

You can change your virtual environment activation file to create a command that executes this script before training the bot.

---

<div class="post-metadata">

**Author:** ![wheat](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@wheat](https://forum.rasa.com/u/wheat)\
**Post date:** [September 1, 2021, 7:39pm UTC](https://forum.rasa.com/t/multiple-domain-file/47323/3 "2021-09-01T19:39:26Z")

</div>

Try simply -

`rasa train --domain domains`

There’s no need for the `/` or `./`

Actually it’s hard to tell what your structure is. Can you try to list it again with some indenting? Treat it like a code block if you need to or indent the lines with periods.

I only say this because you may need to have `--domain data/domains` if your domains is a subdirectory of data.

The script that Chris mentioned is for Rasa 1.x .

Rasa 2.x allows for the breaking up of domain, nlu and story data.

You can read about how to do this in more detail here - [Organize your Rasa 2.0 training data like a boss - DEV Community](https://dev.to/jonathanpwheat/organize-your-rasa-2-0-training-data-like-a-boss-4e37)

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [September 1, 2021, 7:48pm UTC](https://forum.rasa.com/t/multiple-domain-file/47323/4 "2021-09-01T19:48:57Z")

</div>

I want to add that even though `rasa train --domain domains` works well, Rasa X has been having trouble dealing with multiple domain files and not detecting them (tried locally and on a server).

I don’t know if this is a common issue or if it only happens with me for some reason. This is why I’d personally rather use the script.

---

<div class="post-metadata">

**Author:** ![wheat](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@wheat](https://forum.rasa.com/u/wheat)\
**Post date:** [September 1, 2021, 8:06pm UTC](https://forum.rasa.com/t/multiple-domain-file/47323/5 "2021-09-01T20:06:38Z")

</div>

Oh yea, there is that.  
We don’t use RasaX so I always forget that, thanks.
