{"schemaVersion":"opencli.cli.v1","slug":"elastic","name":"Elastic CLI","shortName":"elastic","binaryName":"elastic","maker":{"slug":"elastic","name":"Elastic","type":"org","url":"https://elastic.co","officialPlatformMaker":true,"featuredBuilder":false},"category":"Observability","description":"The official CLI from Elastic. Elastic Agent, observability, and security data from the terminal.","tagline":"Elastic Agent, observability, and security data from the terminal.","install":{"packageManager":"curl","command":"curl -fsSL https://elastic.co/downloads/elastic-agent | sh","packageName":null,"npmPackage":null,"brewFormula":null,"brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"elastic --help","signal":"elastic responds locally; authenticate before real work."},"quickStart":"elastic-agent version","exampleWorkflow":["elastic-agent version"],"agent":{"readiness":{"label":"Usable with guardrails","score":50,"reasons":["Supports non-interactive/scripted use.","Works well in CI or repeatable automation."],"guardrails":["Prefer small commands and ask the agent to summarize plain text output.","Verify identity/account before running task commands.","Network access is required; avoid leaking secrets in logs.","Require confirmation before apply, delete, deploy, transfer, merge, or write actions."]},"packUrl":"https://opencli.co/cli/elastic/agent.md","packMarkdown":"# OpenCLI Agent Pack: Elastic CLI\n\nUse this when an AI agent needs to work with `elastic`.\n\n## What this CLI is for\nThe official CLI from Elastic. Elastic Agent, observability, and security data from the terminal.\n\nBest for: elastic agent, observability, and security data from the terminal.\n\n## Agent readiness\nUsable with guardrails (50/100)\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n\n## Install\n```sh\ncurl -fsSL https://elastic.co/downloads/elastic-agent | sh\n```\n\n## Verify before real work\n```sh\nelastic --help\n```\nExpected signal: elastic responds locally; authenticate before real work.\n\n## Safe starting commands\n```sh\nelastic --help\n```\n\n```sh\nelastic-agent version\n```\n\n## Guardrails for agents\n- Prefer small commands and ask the agent to summarize plain text output.\n- Verify identity/account before running task commands.\n- Network access is required; avoid leaking secrets in logs.\n- Require confirmation before apply, delete, deploy, transfer, merge, or write actions.\n\n## Suggested agent instruction\nYou may use Elastic CLI (`elastic`) for elastic agent, observability, and security data from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"elastic agent, observability, and security data from the terminal.","useThisIf":"You need observability in both local dev and CI.","skipIf":"You're not comfortable with a tool that can write to production.","whatHappensNext":"Run `elastic-agent version` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":false,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":true,"requiresNetwork":true,"ciFriendly":true,"localFirst":false,"destructivePotential":"high"},"taxonomy":{"useCases":["Elastic Agent","Observability","Security data"],"aliases":[],"keywords":["elastic","observability","search"],"tags":[]},"links":{"website":"https://www.elastic.co/guide/en/fleet/current/elastic-agent-cmd-options.html","github":"https://github.com/elastic/elastic-agent","docs":"https://www.elastic.co/guide/en/fleet/current/elastic-agent-cmd-options.html","opencli":"https://opencli.co/cli/elastic","markdown":"https://opencli.co/cli/elastic/agent.md","json":"https://opencli.co/cli/elastic.json"},"metrics":{"githubStars":266,"latestRelease":"2026-06-08T05:55:33Z","license":"NOASSERTION","metricLabel":null,"metricValue":null,"metricSource":null,"metricAsOf":"2026-06-08T11:01:12.195Z"}}