Loading

Elastic CLI

The Elastic CLI includes a docs sub-command for interacting with Elastic documentation from the terminal.

elastic docs search "<query>" --accept-experimental
		

Search across all published Elastic documentation by keyword or phrase.

elastic docs ask "<question>" --accept-experimental
		

Ask a natural language question about Elastic documentation and receive an AI-generated answer. This is an experimental feature.

elastic docs read <path>
		

Read the content of a specific documentation page by its path.

Note

The search and ask commands are experimental and require the --accept-experimental flag.

See the Elastic CLI repository for installation instructions and additional documentation.