# Kibana : Is there a way to get dashboards from command line?

**URL:** <https://discuss.elastic.co/t/kibana-is-there-a-way-to-get-dashboards-from-command-line/48744>\
**Category:** Kibana\
**Created:** [April 28, 2016, 10:02pm UTC](https://discuss.elastic.co/t/kibana-is-there-a-way-to-get-dashboards-from-command-line/48744 "2016-04-28T22:02:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apt275](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@apt275](https://discuss.elastic.co/u/apt275)\
**Post date:** [April 28, 2016, 10:02pm UTC](https://discuss.elastic.co/t/kibana-is-there-a-way-to-get-dashboards-from-command-line/48744/1 "2016-04-28T22:02:28Z")

</div>

In Kibana Settings/Objects menu, i can see all of my dashboards, charts and searches.

I can choose to export one or more of them and then i get a JSON object representing that item.

Is there a way to do this from command line? Where are the dashboards stored in elasticsearch? Is there a

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [April 28, 2016, 10:47pm UTC](https://discuss.elastic.co/t/kibana-is-there-a-way-to-get-dashboards-from-command-line/48744/2 "2016-04-28T22:47:26Z")

</div>

You can query your .kibana index in your Elasticsearch with something like this;

```
$ curl -s http://localhost:9200/.kibana/dashboard/_search?pretty
{
  "took" : 1,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "hits" : {
    "total" : 1,
    "max_score" : 1.0,
    "hits" : [ {
      "_index" : ".kibana",
      "_type" : "dashboard",
      "_id" : "New-Dashboard",
      "_score" : 1.0,
      "_source" : {
        "title" : "New Dashboard",
        "hits" : 0,
        "description" : "",
        "panelsJSON" : "[{\"id\":\"Visualization-VerticalBarChart\",\"type\":\"visualization\",\"panelIndex\":1,\"size_x\":3,\"size_y\":2,\"col\":1,\"row\":1}]",
        "optionsJSON" : "{\"darkTheme\":false}",
        "uiStateJSON" : "{}",
        "version" : 1,
        "timeRestore" : false,
        "kibanaSavedObjectMeta" : {
          "searchSourceJSON" : "{\"filter\":[{\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}}}]}"
        }
      }
    } ]
  }
}

```

Or if you want individual ones you can include the title or the id;

`curl -s 'http://localhost:9200/.kibana/dashboard/_search?pretty=1,q=_id=New-Dashboard'`

---

<div class="post-metadata">

**Author:** ![apt275](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@apt275](https://discuss.elastic.co/u/apt275)\
**Post date:** [May 5, 2016, 6:15pm UTC](https://discuss.elastic.co/t/kibana-is-there-a-way-to-get-dashboards-from-command-line/48744/3 "2016-05-05T18:15:01Z")

</div>

yup, thats it. thanks

---

<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:** [July 6, 2017, 1:54pm UTC](https://discuss.elastic.co/t/kibana-is-there-a-way-to-get-dashboards-from-command-line/48744/4 "2017-07-06T13:54:15Z")

</div>


