Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 2.13 KB

index.md

File metadata and controls

37 lines (26 loc) · 2.13 KB
description Use the Elastic CLI to interact with the Elastic Stack and Elastic Cloud from the command line.
applies_to
stack serverless
preview
preview
type overview

Elastic CLI

The Elastic CLI (elastic) provides a single command-line interface for {{es}}, {{kib}}, and {{ecloud}}. Use it to interact directly with {{es}} and {{kib}} across deployment types, or to manage {{ech}} deployments and {{serverless-full}} projects through the {{ecloud}} API.

The CLI groups its API commands into two main namespaces:

  • elastic stack: Connect directly to {{es}} and {{kib}} APIs across fully self-managed deployments, {{eck}}, {{ece}}, {{ech}}, and {{serverless-full}} projects. You can use elastic es and elastic kb as shorter forms.
  • elastic cloud: Use {{ecloud}} APIs to manage {{ech}} deployments and {{serverless-full}} projects.

Use named contexts to save and switch between service connections. Commands support structured output for scripts, agents, and other tools.

:::{note} The Elastic CLI is a technical preview and is under active development. Not all Elastic APIs are available as CLI commands. Refer to the Elastic CLI command reference for the available commands. :::

Get started

The following resources help you start using the Elastic CLI:

Learn more