>_Elastic CLI公式
@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 CLI のインストール方法
1. Install with npm and inspect available commands.
npm install -g @elastic/cli
elastic --helpログインと認証
- 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
elastic status elastic es info3. Check connection and cluster information before other operations.
できること
Inspect clusters
Search indices
Inspect command schemas
よく使うコマンド
- 1
elastic es search --index my-indexSearch an index you can access.
- 2
elastic cloud hosted deployments list-deploymentsList hosted deployments with the required Cloud configuration and permissions.
- 3
elastic cli-schemaInspect 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
Bun
$ bun
An all-in-one JavaScript runtime, package manager, bundler, and test runner.
GitHub CLI
$ gh
GitHub on the command line: repositories, pull requests, issues, Actions, releases, and API calls.
GitLab CLI
$ glab
GitLab’s official CLI for merge requests, issues, pipelines, releases, snippets, and self-managed instances.
HTTPie
$ http
A human-friendly HTTP client with JSON, sessions, auth, and formatted output.
Lazygit
$ lazygit
A keyboard-driven terminal UI for staging, rebasing, branching, and Git history.
Playwright
$ playwright
Cross-browser end-to-end testing and browser automation from the command line.
コメント