MCP.so
ログイン
>_

Elastic CLI公式

@elastic

詳細

カテゴリー

開発者ツール

コマンド

elastic

メンテナー

elastic

種類

開発者ツール

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#開発者ツール#公式#エージェント対応

Elastic CLI のインストール方法

1. Install with npm and inspect available commands.

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

ログインと認証

  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.

できること

Inspect clusters

Search indices

Inspect command schemas

よく使うコマンド

  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.

注意点

  • 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.

参考資料

2026-11-24 に公式ドキュメントと照合しました。

コメント

その他の開発者ツール CLI