# Export / import Kibana dashboard and visualizations with a script

**URL:** <https://discuss.elastic.co/t/export-import-kibana-dashboard-and-visualizations-with-a-script/125190>\
**Category:** Kibana\
**Created:** [March 22, 2018, 12:49pm UTC](https://discuss.elastic.co/t/export-import-kibana-dashboard-and-visualizations-with-a-script/125190 "2018-03-22T12:49:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonetthomas](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@simonetthomas](https://discuss.elastic.co/u/simonetthomas)\
**Post date:** [March 22, 2018, 12:49pm UTC](https://discuss.elastic.co/t/export-import-kibana-dashboard-and-visualizations-with-a-script/125190/1 "2018-03-22T12:49:40Z")

</div>

Hi, I'm searching how I can export Kibana dashboard and visualisations from my dev environment, so that I can import it later to another environment (in a VM). I want to do that in CLI or with a script.  
I found that I can access the kibana config in the .kibana index, but is there a way to get it and easily load it into another instance of kibana ?  
Also, can the indices be imported the same way so that the user in prod doesn't have to manually add them on Kibana before adding the dashboard?

Thanks!

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [March 22, 2018, 3:09pm UTC](https://discuss.elastic.co/t/export-import-kibana-dashboard-and-visualizations-with-a-script/125190/2 "2018-03-22T15:09:01Z")

</div>

There is an API for [exporting dashboards](https://github.com/elastic/kibana/blob/master/src/core_plugins/kibana/server/routes/api/export/index.js) along with associated saved objects. There is not official documentation yet because the API is subject to change.

Kibana's existing API for interacting with Kibana saved objects can be explored [here](https://github.com/elastic/kibana/tree/master/src/server/saved_objects/routes)

There are a few open issues for better export support [https://github.com/elastic/kibana/issues/4288](https://github.com/elastic/kibana/issues/4288) and [https://github.com/elastic/kibana/issues/16831](https://github.com/elastic/kibana/issues/16831)

If the existing APIs do not work out for you then I would recommend writing scripts that just directly make use of ElasticSearch REST APIs to interact with kibana index.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 19, 2018, 3:09pm UTC](https://discuss.elastic.co/t/export-import-kibana-dashboard-and-visualizations-with-a-script/125190/3 "2018-04-19T15:09:10Z")

</div>

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