# Moving kong configuration from dev to prod cluster

**URL:** <https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802>\
**Category:** Questions\
**Created:** [June 23, 2019, 3:03am UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802 "2019-06-23T03:03:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sid](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sid](https://discuss.konghq.com/u/sid)\
**Post date:** [June 23, 2019, 3:03am UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/1 "2019-06-23T03:03:43Z")

</div>

If I create my apis in one environment how do we take those configurations from one environment to the other environments such as production. we are creating apis in development and want to move it via scripts to the other environments

please let me know how to do it

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [June 25, 2019, 9:52pm UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/2 "2019-06-25T21:52:03Z")

</div>

You can use `kong config db_import` CLI command to setup your DB.  
If you are using Kong in [db-less mode](https://docs.konghq.com/1.2.x/db-less-and-declarative-config/#setting-up-kong-in-db-less-mode), you can simply manage this using a simple config file for Kong.

You can also use external tooling like [decK](http://github.com/hbagdi/deck) to accomplish this.

---

<div class="post-metadata">

**Author:** ![sid](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sid](https://discuss.konghq.com/u/sid)\
**Post date:** [June 26, 2019, 1:05am UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/3 "2019-06-26T01:05:02Z")

</div>

Thanks for your response appreciate it. Is deck tool matured enough to do the job in production? Also, does deck tool captures all objects from one environment to another. Does deck takes into account workspace as well?

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [June 28, 2019, 4:37pm UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/4 "2019-06-28T16:37:43Z")

</div>

> [@sid](#):
>
> Is deck tool matured enough to do the job in production?

I know that some of the community members do you use it heavily.  
If it is any assurance, Kong’s Ingress Controller also uses decK for configuration management in Kong.

There are no known bugs in decK that I’m aware of (that doesn’t mean that there are no bugs in it).

> [@sid](#):
>
> Also, does deck tool captures all objects from one environment to another.

It captures all the entities except credentials like basic-auth, key-auth in Kong.

> [@sid](#):
>
> Does deck takes into account workspace as well?

decK will work with one workspace at a time. You can easily script it to backup and restore each workspace inside Kong Enterprise. decK is a community first tool but is compatible and extensible enough to work with Kong Enterprise as well.

---

<div class="post-metadata">

**Author:** ![sid](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sid](https://discuss.konghq.com/u/sid)\
**Post date:** [June 29, 2019, 2:04am UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/5 "2019-06-29T02:04:53Z")

</div>

thank you for your reply

---

<div class="post-metadata">

**Author:** ![sid](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sid](https://discuss.konghq.com/u/sid)\
**Post date:** [July 23, 2019, 4:24pm UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/6 "2019-07-23T16:24:27Z")

</div>

Hello sir, you mentioned about using kong config db\_import command in the post. can we use this command to move configuration from dev to uat? I am trying to compare this approach vs the deck approach. I find deck tool much nicer and user friendly

---

<div class="post-metadata">

**Author:** ![sid](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sid](https://discuss.konghq.com/u/sid)\
**Post date:** [July 23, 2019, 4:29pm UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/7 "2019-07-23T16:29:15Z")

</div>

how will we generate the import file in the first place. In order to run db\_import we need to create import file with all the configurations. Is there a way how to create the config file in the first place?

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [July 24, 2019, 4:17pm UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/8 "2019-07-24T16:17:12Z")

</div>

> [@sid](#):
>
> Is there a way how to create the config file in the first place?

You can `kong config init` to generate a sample config file and then populate it with your configuration.

---

<div class="post-metadata">

**Author:** ![sid](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sid](https://discuss.konghq.com/u/sid)\
**Post date:** [July 24, 2019, 9:17pm UTC](https://discuss.konghq.com/t/moving-kong-configuration-from-dev-to-prod-cluster/3802/9 "2019-07-24T21:17:45Z")

</div>

thanks, can we put multiple services inside that one config file. I am assuming we can
