# Command line to generate URL to embed kibana's dashboard

**URL:** <https://discuss.elastic.co/t/command-line-to-generate-url-to-embed-kibanas-dashboard/44070>\
**Category:** Kibana\
**Created:** [March 10, 2016, 7:20pm UTC](https://discuss.elastic.co/t/command-line-to-generate-url-to-embed-kibanas-dashboard/44070 "2016-03-10T19:20:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rheng](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@rheng](https://discuss.elastic.co/u/rheng)\
**Post date:** [March 10, 2016, 7:20pm UTC](https://discuss.elastic.co/t/command-line-to-generate-url-to-embed-kibanas-dashboard/44070/1 "2016-03-10T19:20:45Z")

</div>

Is there a way to generate the URL to embed the dashboard to a website without having to go to Kibana's UI and clicking on the "generate short URL" button?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [March 11, 2016, 6:45pm UTC](https://discuss.elastic.co/t/command-line-to-generate-url-to-embed-kibanas-dashboard/44070/2 "2016-03-11T18:45:58Z")

</div>

At the moment the only way you might be able to do this is by querying elasticsearch directly. This could be a cool API for us to add to Kibana though, I'd encourage you to submit a ticket for it on our Github repo: [https://github.com/elastic/kibana](https://github.com/elastic/kibana)

---

<div class="post-metadata">

**Author:** ![rheng](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@rheng](https://discuss.elastic.co/u/rheng)\
**Post date:** [March 17, 2016, 4:51am UTC](https://discuss.elastic.co/t/command-line-to-generate-url-to-embed-kibanas-dashboard/44070/3 "2016-03-17T04:51:58Z")

</div>

Any idea of the syntax to do the query?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [March 18, 2016, 12:48am UTC](https://discuss.elastic.co/t/command-line-to-generate-url-to-embed-kibanas-dashboard/44070/4 "2016-03-18T00:48:51Z")

</div>

Ah I think I misread your question initially, I didn't see you were looking for a short url. There's no way to generate those without going through the UI at the moment.

---

<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:58pm UTC](https://discuss.elastic.co/t/command-line-to-generate-url-to-embed-kibanas-dashboard/44070/5 "2017-07-06T13:58:41Z")

</div>


