Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including escl with all npm packages installed. Try it out:

var escl = require("escl")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

escl v1.0.1

A high-level command line wrapper around the [elasticsearch.js]( client.


A high-level command line wrapper around the elasticsearch.js client.



npm install -g escl


Make sure you have elasticsearch up and running.

Getting started

Setup your client and if everything is fine the following command in your terminal

$ escl _info

should output a response in a similar format as below:

  "name": "XXXXX",
  "cluster_name": "elasticsearch",
  "cluster_uuid": "aq2tteqwbddy_8s9dnd",
  "version": {
    "number": "6.3.0",
    "build_flavor": "default",
    "build_type": "zip",
    "build_hash": "424e937",
    "build_date": "2018-06-11T23:38:03.357887Z",
    "build_snapshot": false,
    "lucene_version": "7.3.1",
    "minimum_wire_compatibility_version": "5.6.0",
    "minimum_index_compatibility_version": "5.0.0"
  "tagline": "You Know, for Search"

Check the examples folder for more commands.



This is side project I've built in my spare time with the purpose of helping me out with repetitive tasks I use to perform in Elasticsearch. It's not encouraged and advised to be used in a production environment and/or where sensitive data is being handled.


Contributions and improvements in accord with the project philosophy are gladly accepted. Make sure to check the contributing guide for more info.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free