# Configuration Migration for Dev/Test Environments

**URL:** <https://community.auth0.com/t/configuration-migration-for-dev-test-environments/9363>\
**Category:** Get Help\
**Tags:** auth0-configuration, migration\
**Created:** [February 2, 2018, 1:42am UTC](https://community.auth0.com/t/configuration-migration-for-dev-test-environments/9363 "2018-02-02T01:42:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff.espenschied](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jeff.espenschied](https://community.auth0.com/u/jeff.espenschied)\
**Post date:** [February 2, 2018, 1:42am UTC](https://community.auth0.com/t/configuration-migration-for-dev-test-environments/9363/1 "2018-02-02T01:42:33Z")

</div>

I have read through the guide for [multiple environements](https://auth0.com/docs/dev-lifecycle/setting-up-env) but I am still unclear on how things should work. From that page, it says that the management API can be used automate the migration of settings from one environment to another. This seems reasonable, but if I look at the management API docs, I don’t see anything that really helps with this. Certainly, I could use the API to script out rules, clients, etc. but it seems like that is something that should be handled for me. If it’s not, that’s fine, but I just feel like I am missing something.

The other thing that keeps bugging me on this is that it looks like we need to have 3 subscriptions to have 3 environments (dev/test/prod). While dev/test would always be at the lowest cost level so the extra cost isn’t really a big deal, it feels weird to have to pay 3 bills to get a basic setup that allows for configuration/code promotion in a reasonable manner. Again, I feel like I must be missing something because I shouldn’t have to configure and pay for 3 things to really only support one production site.

---

<div class="post-metadata">

**Author:** ![cristofer.gonzales](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cristofer.gonzales/32/7075_2.png) [@cristofer.gonzales](https://community.auth0.com/u/cristofer.gonzales)\
**Post date:** [February 2, 2018, 8:07pm UTC](https://community.auth0.com/t/configuration-migration-for-dev-test-environments/9363/2 "2018-02-02T20:07:39Z")

</div>

There are a couple of tools you can use to deploy your configuration in multiple environments.

The first one is [auth0-dump-config](https://github.com/auth0-extensions/auth0-dump-config), this is node module will allow you to fetch different elements on your configuration and store them in local files. Please be aware that the module is very rough and there certain components that are not exported (resource servers, pages) and also you will need to clear some of the information that can’t be updated in the objects.

With the resulting files you can use one of the [deployment extensions](https://auth0.com/docs/extensions#deploy-hosted-pages-rules-and-database-connections-scripts-from-external-repositories) to automate the deployment from your code repo or you can use [auth0-deploy-cli](https://github.com/auth0/auth0-deploy-cli) to deploy from the command line. The Auth0 Deploy CLI has some additional capabilities that will let you specify the configuration for different environments when needed so that would probably be the best option

---

<div class="post-metadata">

**Author:** ![jeff.espenschied](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jeff.espenschied](https://community.auth0.com/u/jeff.espenschied)\
**Post date:** [February 2, 2018, 10:11pm UTC](https://community.auth0.com/t/configuration-migration-for-dev-test-environments/9363/3 "2018-02-02T22:11:58Z")

</div>

Seems reasonable. It would be nice if there were a more complete solution, but looking over those projects, I think I can make something work.

---

<div class="post-metadata">

**Author:** ![bugged87](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bugged87/32/7954_2.png) [@bugged87](https://community.auth0.com/u/bugged87)\
**Post date:** [March 9, 2018, 1:05am UTC](https://community.auth0.com/t/configuration-migration-for-dev-test-environments/9363/5 "2018-03-09T01:05:07Z")

</div>

I don’t think the accepted solution answers the entire question. What about having to pay for 3 subscriptions to support three environments (e.g. dev/test/prod)?

---

<div class="post-metadata">

**Author:** ![oosby](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oosby/32/8862_2.png) [@oosby](https://community.auth0.com/u/oosby)\
**Post date:** [September 17, 2018, 4:09pm UTC](https://community.auth0.com/t/configuration-migration-for-dev-test-environments/9363/6 "2018-09-17T16:09:36Z")

</div>

> [@cristofer.gonzales](#):
>
> Please be aware that the module is very rough and there certain components that are not exported (resource servers, pages)

Is there any reason resource servers aren’t exported?

---

<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 20, 2019, 10:16am UTC](https://community.auth0.com/t/configuration-migration-for-dev-test-environments/9363/7 "2019-08-20T10:16:31Z")

</div>


