Type to search.

stack es indices cli namespace

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.

Shell
elastic stack es indices --help

Elasticsearch indices API commands

add-block

Add an index block.

analyze

Get tokens from text analysis.

cancel-migrate-reindex

Cancel a migration reindex operation.

clear-cache

Clear the cache.

clone

Clone an index.

close

Close an index.

create

Create an index.

create-data-stream

Create a data stream.

create-from

Create an index from a source index.

data-streams-stats

Get data stream stats.

delete

Delete indices.

delete-alias

Delete an alias.

delete-data-lifecycle

Delete data stream lifecycles.

delete-data-stream

Delete data streams.

delete-data-stream-options

Delete data stream options.

delete-index-template

Delete an index template.

delete-template

Delete a legacy index template.

disk-usage

Analyze the index disk usage.

downsample

Downsample an index.

exists

Check indices.

exists-alias

Check aliases.

exists-index-template

Check index templates.

exists-template

Check existence of index templates.

explain-data-lifecycle

Get the status for a data stream lifecycle.

field-usage-stats

Get field usage stats.

flush

Flush data streams or indices.

forcemerge

Force a merge.

get

Get index information.

get-alias

Get aliases.

get-data-lifecycle

Get data stream lifecycles.

get-data-lifecycle-stats

Get data stream lifecycle stats.

get-data-stream

Get data streams.

get-data-stream-mappings

Get data stream mappings.

get-data-stream-options

Get data stream options.

get-data-stream-settings

Get data stream settings.

get-field-mapping

Get mapping definitions.

get-index-template

Get index templates.

get-mapping

Get mapping definitions.

get-migrate-reindex-status

Get the migration reindexing status.

get-settings

Get index settings.

get-template

Get legacy index templates.

migrate-reindex

Reindex legacy backing indices.

migrate-to-data-stream

Convert an index alias to a data stream.

modify-data-stream

Update data streams.

open

Open a closed index.

promote-data-stream

Promote a data stream.

put-alias

Create or update an alias.

put-data-lifecycle

Update data stream lifecycles.

put-data-stream-mappings

Update data stream mappings.

put-data-stream-options

Update data stream options.

put-data-stream-settings

Update data stream settings.

put-index-template

Create or update an index template.

put-mapping

Update field mappings.

put-settings

Update index settings.

put-template

Create or update a legacy index template.

recovery

Get index recovery information.

refresh

Refresh an index.

reload-search-analyzers

Reload search analyzers.

remove-block

Remove an index block.

resolve-cluster

Resolve the cluster.

resolve-index

Resolve indices.

rollover

Roll over to a new index.

segments

Get index segments.

shard-stores

Get index shard stores.

shrink

Shrink an index.

simulate-index-template

Simulate an index.

simulate-template

Simulate an index template.

split

Split an index.

stats

Get index statistics.

update-aliases

Create or update an alias.

validate-query

Validate a query.