ES CLI is an independent, unofficial open-source CLI for Elasticsearch clusters. Inspect health, manage indices and documents, run searches, and operate pipelines and ILM policies from a fast, scriptable tool built for humans and coding agents alike.

An eight-line tour
# Configure a cluster profilees login# Inspect health and indices as JSONes cluster health -o jsones index list --pattern "logs-*" -o json# Search and inspect lifecycle statuses search query logs-2026.07 --size 20 --sort timestamp:desc -o jsones ilm explain logs-2026.07 -o json
Query DSLSQLBulk APIILMIngest pipelinesAPI keys

Everything, from one binary

Built for humans at the keyboard and coding agents alike.

01

Search & documents

Run Query DSL, SQL, count, multi-search, and field-capability requests. Get, index, delete, bulk, and multi-get documents.

02

Secure connections

Basic auth, Elasticsearch API keys, bearer tokens, named profiles, custom CA certificates, and TLS verification controls.

03

Agent-friendly

-o json|yaml for structured reads, --read-only safety mode, --no-input automation, idempotent flags, and quiet operation.

04

Pipelines & lifecycle

Create, inspect, simulate, and delete ingest pipelines, then manage and explain Index Lifecycle Management policies.

05

Fast & scriptable

A single cross-platform binary with file and stdin input, multiple profiles, shell completion, and self-update support.

06

Cluster operations

Monitor health, stats, settings, pending tasks, allocation decisions, nodes, hot threads, indices, and shards.

Ready in one command

Install the binary, authenticate, and start querying. No runtime, no dependencies.