# Deployment scripts support in elasticsearch

**URL:** <https://discuss.elastic.co/t/deployment-scripts-support-in-elasticsearch/42304>\
**Category:** Elasticsearch\
**Created:** [February 20, 2016, 11:21am UTC](https://discuss.elastic.co/t/deployment-scripts-support-in-elasticsearch/42304 "2016-02-20T11:21:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chalapathi](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@chalapathi](https://discuss.elastic.co/u/chalapathi)\
**Post date:** [February 20, 2016, 11:21am UTC](https://discuss.elastic.co/t/deployment-scripts-support-in-elasticsearch/42304/1 "2016-02-20T11:21:40Z")

</div>

Hi,

I have to create deployment scripts for create index, mapping and other basic operations so that client admin can run this in single shot, does ES supports running batch files

I checked with script file wit groovy extension, but it's not supporting index creation, an example of groovy script file with index creation will be very helpful

Thanks,  
Chala.

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [February 20, 2016, 4:51pm UTC](https://discuss.elastic.co/t/deployment-scripts-support-in-elasticsearch/42304/2 "2016-02-20T16:51:06Z")

</div>

You can use [index templates](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html). You could write an Elasticsearch plugin to create a new API that runs some sequence of commends but that is almost certainly overkill.

---

<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 5, 2017, 11:14pm UTC](https://discuss.elastic.co/t/deployment-scripts-support-in-elasticsearch/42304/3 "2017-07-05T23:14:42Z")

</div>


