# Kibana Dev Tools: How to execute multiple statements in one shot?

**URL:** <https://discuss.elastic.co/t/kibana-dev-tools-how-to-execute-multiple-statements-in-one-shot/245682>\
**Category:** Kibana\
**Created:** [August 19, 2020, 9:43pm UTC](https://discuss.elastic.co/t/kibana-dev-tools-how-to-execute-multiple-statements-in-one-shot/245682 "2020-08-19T21:43:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)\
**Post date:** [August 19, 2020, 9:43pm UTC](https://discuss.elastic.co/t/kibana-dev-tools-how-to-execute-multiple-statements-in-one-shot/245682/1 "2020-08-19T21:43:43Z")

</div>

hi  
We don't have access to ssh/backend/elastic-port directly. So the only interaction we have is with Kibana's DEV console to update and retrieve data

So i've around 60 commands (mainly deleting and creating watchers) and these changes often. Is there any way I can

- Call a loop of these commands in DEV console?
- Any option to paste all of them and run in a serial manner without user clicking on each of them one by one?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 20, 2020, 1:29am UTC](https://discuss.elastic.co/t/kibana-dev-tools-how-to-execute-multiple-statements-in-one-shot/245682/2 "2020-08-20T01:29:20Z")

</div>

Hi @kelk  
Depending on how big all those commands are you actually just need to highlight them all and then click run on the first 1 and they will all execute in order

 ![Screen Shot 2020-08-19 at 6.27.13 PM](https://us1.discourse-cdn.com/elastic/original/3X/8/0/80d924f3a925144da3c1140331eba4e56c7e1714.png)

Not sure if that is what you are asking.

---

<div class="post-metadata">

**Author:** ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)\
**Post date:** [August 20, 2020, 4:12am UTC](https://discuss.elastic.co/t/kibana-dev-tools-how-to-execute-multiple-statements-in-one-shot/245682/3 "2020-08-20T04:12:49Z")

</div>

ah.ok. Didn't know that, as I always was running one by one and good to know.  
it was as simple as that 🙂

(but would be great if dev tools could trigger from a file too)

---

<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:** [September 17, 2020, 4:12am UTC](https://discuss.elastic.co/t/kibana-dev-tools-how-to-execute-multiple-statements-in-one-shot/245682/4 "2020-09-17T04:12:54Z")

</div>

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