# Deciding yaml vs. Directory Structure

**URL:** <https://community.auth0.com/t/deciding-yaml-vs-directory-structure/67699>\
**Category:** Get Help\
**Tags:** export, tenant\
**Created:** [August 10, 2021, 4:08pm UTC](https://community.auth0.com/t/deciding-yaml-vs-directory-structure/67699 "2021-08-10T16:08:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff.Lembke](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff.lembke/32/12681_2.png) [@Jeff.Lembke](https://community.auth0.com/u/Jeff.Lembke)\
**Post date:** [August 10, 2021, 4:08pm UTC](https://community.auth0.com/t/deciding-yaml-vs-directory-structure/67699/1 "2021-08-10T16:08:10Z")

</div>

We are setting up CICD with our Auth0 tenants. I’m about to export the tenant config for our repository and I’m wondering _what the deciding factors are for going with yaml or Directory Structure_.

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [August 10, 2021, 4:31pm UTC](https://community.auth0.com/t/deciding-yaml-vs-directory-structure/67699/2 "2021-08-10T16:31:44Z")

</div>

Hi @Jeff.Lembke , welcome to the community!

I believe this is primarily a personal preference, there are no features constrained to one or the other, it mainly depends on what works best for your CICD flow.

The main differences are `YAML` puts the vast majority of the tenant configuration into a single file with only things like email templates, rules/actions, hooks or DB scripts separated into separate files. Whereas the `Directory` method uses separate files for each client, connection, API/resource servers etc. in addition to the script/template files.

Directory example: [auth0-deploy-cli/examples/directory at master · auth0/auth0-deploy-cli · GitHub](https://github.com/auth0/auth0-deploy-cli/tree/master/examples/directory)  
YAML Example: [auth0-deploy-cli/examples/yaml at master · auth0/auth0-deploy-cli · GitHub](https://github.com/auth0/auth0-deploy-cli/tree/master/examples/yaml)

---

<div class="post-metadata">

**Author:** ![Jeff.Lembke](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff.lembke/32/12681_2.png) [@Jeff.Lembke](https://community.auth0.com/u/Jeff.Lembke)\
**Post date:** [August 10, 2021, 4:40pm UTC](https://community.auth0.com/t/deciding-yaml-vs-directory-structure/67699/3 "2021-08-10T16:40:21Z")

</div>

Ok, great! That’s just what I needed. Thanks you Steve.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 11, 2021, 10:26am UTC](https://community.auth0.com/t/deciding-yaml-vs-directory-structure/67699/4 "2021-08-11T10:26:12Z")

</div>

We are here for you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 26, 2021, 9:13am UTC](https://community.auth0.com/t/deciding-yaml-vs-directory-structure/67699/5 "2021-08-26T09:13:53Z")

</div>


