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.
# 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 jsonEverything, from one binary
Built for humans at the keyboard and coding agents alike.
Search & documents
Run Query DSL, SQL, count, multi-search, and field-capability requests. Get, index, delete, bulk, and multi-get documents.
Secure connections
Basic auth, Elasticsearch API keys, bearer tokens, named profiles, custom CA certificates, and TLS verification controls.
Agent-friendly
-o json|yaml for structured reads, --read-only safety mode, --no-input automation, idempotent flags, and quiet operation.
Pipelines & lifecycle
Create, inspect, simulate, and delete ingest pipelines, then manage and explain Index Lifecycle Management policies.
Fast & scriptable
A single cross-platform binary with file and stdin input, multiple profiles, shell completion, and self-update support.
Cluster operations
Monitor health, stats, settings, pending tasks, allocation decisions, nodes, hot threads, indices, and shards.