MCP.so
Sign In
>_

Elastic CLIOfficial

@elastic

Details

Category

Developer tools

Command

elastic

Maintainer

elastic

Type

Developer tool

About Elastic CLI

Elastic CLI provides a terminal interface to Elastic Stack and Elastic Cloud. It suits developers and operators who want to inspect clusters or call supported APIs without switching to a browser.

It also exposes machine-readable command help for agents. Unlike an MCP server or a language-model skill, this package installs an executable; it is a technical preview and does not cover every API in every Elastic version.

#elastic#developer-tools#developer-tool#official#agent-ready

How to install Elastic CLI

1. Install with npm and inspect available commands.

npm install -g @elastic/cli
elastic --help

Log in and authenticate

  1. 1
    elastic config context add local --es-url http://localhost:9200 --es-api-key <api-key>

    2. Configure your own endpoint and a suitably scoped API key; this example assumes a local cluster. Never paste a real key into shared logs.

  2. 2
    elastic status
    elastic es info

    3. Check connection and cluster information before other operations.

What it does

Inspect clusters

Search indices

Inspect command schemas

Common commands

  1. 1
    elastic es search --index my-index

    Search an index you can access.

  2. 2
    elastic cloud hosted deployments list-deployments

    List hosted deployments with the required Cloud configuration and permissions.

  3. 3
    elastic cli-schema

    Inspect the command tree; per-command --help --json supplies structured help.

Notes and limits

  • Is it production-stable? The upstream labels it a technical preview; API and version coverage remain incomplete.
  • Do I need a global install? No. npx -y @elastic/cli --help runs a one-off command, downloading the package as needed.
  • Does installation include a cluster or free Cloud service? No. Supply your own reachable deployment and credentials; hosting charges and account permissions are separate.
  • Requirements: a working npm environment, network access for installation, a reachable Elastic endpoint and appropriate credentials. The CLI supports contexts; Elasticsearch and Cloud operations may need different credentials.
  • Use a user-owned npm prefix if global installation has permission errors. Review commands before executing writes; this guide only illustrates inspection and search.
  • Apache-2.0 source; official README checked 2026-11-24. No authenticated cluster operation was tested.

Sources

Checked against the official documentation on 2026-11-24.

Comments

More Developer tools CLIs