# Kong configuration from a file

**URL:** <https://discuss.konghq.com/t/kong-configuration-from-a-file/4288>\
**Category:** Questions\
**Tags:** plugins\
**Created:** [August 22, 2019, 10:47am UTC](https://discuss.konghq.com/t/kong-configuration-from-a-file/4288 "2019-08-22T10:47:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhi\_Desai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/abhi_desai/32/1104_2.png) [@Abhi\_Desai](https://discuss.konghq.com/u/Abhi_Desai)\
**Post date:** [August 22, 2019, 10:47am UTC](https://discuss.konghq.com/t/kong-configuration-from-a-file/4288/1 "2019-08-22T10:47:47Z")

</div>

I am aware of Kong Admin APIs where we can create new Service/Route etc.  
So the whole configuration is based on Admin APIs.  
Is there a way to load this configuration (create service, user, route etc…) from a file?

---

<div class="post-metadata">

**Author:** ![hutchic](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hutchic/32/122_2.png) [@hutchic](https://discuss.konghq.com/u/hutchic)\
**Post date:** [August 22, 2019, 1:57pm UTC](https://discuss.konghq.com/t/kong-configuration-from-a-file/4288/2 "2019-08-22T13:57:14Z")

</div>

Kong has the option to load declarative configuration

Manual: [https://docs.konghq.com/1.3.x/db-less-admin-api/#declarative-configuration](https://docs.konghq.com/1.3.x/db-less-admin-api/#declarative-configuration)  
Announcement: [https://konghq.com/blog/kong-1-1-released/](https://konghq.com/blog/kong-1-1-released/)

---

<div class="post-metadata">

**Author:** ![Abhi\_Desai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/abhi_desai/32/1104_2.png) [@Abhi\_Desai](https://discuss.konghq.com/u/Abhi_Desai)\
**Post date:** [August 22, 2019, 2:30pm UTC](https://discuss.konghq.com/t/kong-configuration-from-a-file/4288/3 "2019-08-22T14:30:42Z")

</div>

Thank you very much hutchic,  
It looks like the declarative configuration only works with DB-less mode.  
Is that correct? It is not very clear in the Manual/Announcement.

---

<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:** [August 22, 2019, 4:17pm UTC](https://discuss.konghq.com/t/kong-configuration-from-a-file/4288/4 "2019-08-22T16:17:03Z")

</div>

> [@Abhi\_Desai](#):
>
> Is that correct? It is not very clear in the Manual/Announcement.

You can create initialize Kong’s database using the declarative configuration as well using the `kong config db_import` command.
