Type to search.

Elastic CLI

Serverless Preview

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Preview

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Serverless interfaces and procedures might differ from classic Elastic Stack deployments.

Stack Preview

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Preview

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

The Elastic CLI (elastic) provides a single command-line interface for Elasticsearch, Kibana, and Elastic Cloud. Use it to interact directly with Elasticsearch and Kibana across deployment types, or to manage Elastic Cloud Hosted deployments and Elastic Cloud Serverless projects through the Elastic Cloud API.

The CLI groups its API commands into two main namespaces:

  • elastic stack: Connect directly to Elasticsearch and Kibana APIs across fully self-managed deployments, Elastic Cloud on Kubernetes, Elastic Cloud Enterprise, Elastic Cloud Hosted, and Elastic Cloud Serverless projects. You can use elastic es and elastic kb as shorter forms.
  • elastic cloud: Use Elastic Cloud APIs to manage Elastic Cloud Hosted deployments and Elastic Cloud Serverless 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.

The following resources help you start using the Elastic CLI: