# How to create a automoation script for setting up auth0 with several organizations in one tenant(development)?

**URL:** <https://community.auth0.com/t/how-to-create-a-automoation-script-for-setting-up-auth0-with-several-organizations-in-one-tenant-development/119206>\
**Category:** Get Help\
**Tags:** organizations-management-api, management-api\
**Created:** [October 23, 2023, 8:10pm UTC](https://community.auth0.com/t/how-to-create-a-automoation-script-for-setting-up-auth0-with-several-organizations-in-one-tenant-development/119206 "2023-10-23T20:10:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boss0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/boss0/32/48842_2.png) [@Boss0](https://community.auth0.com/u/Boss0)\
**Post date:** [October 23, 2023, 8:10pm UTC](https://community.auth0.com/t/how-to-create-a-automoation-script-for-setting-up-auth0-with-several-organizations-in-one-tenant-development/119206/1 "2023-10-23T20:10:10Z")

</div>

I created some tenants for every org and every org has its tenant per env(dev, stg).  
But I want to integrate this by automation script to set up auth0.  
the idea here is that I would have a single tenant that supports lots of orgs.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 27, 2023, 6:38pm UTC](https://community.auth0.com/t/how-to-create-a-automoation-script-for-setting-up-auth0-with-several-organizations-in-one-tenant-development/119206/3 "2023-10-27T18:38:00Z")

</div>

Hi @Boss0,

Welcome to the Auth0 Community!

You can use the [Deploy CLI Tool](https://auth0.com/docs/deploy-monitor/deploy-cli-tool) to automate tenant deployment.

You can also use the [Auth0 CLI](https://github.com/auth0/auth0-cli).

I would recommend looking at [Multiple Organization Architecture](https://auth0.com/docs/get-started/architecture-scenarios/multiple-organization-architecture) for your use case.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 10, 2023, 6:38pm UTC](https://community.auth0.com/t/how-to-create-a-automoation-script-for-setting-up-auth0-with-several-organizations-in-one-tenant-development/119206/4 "2023-11-10T18:38:48Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
