MCPcopy Index your code
hub / github.com/avalarin/elasticsearch-cli

github.com/avalarin/elasticsearch-cli @v0.2.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.5 ↗ · + Follow
91 symbols 139 edges 19 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Elasticsearch CLI Build Status

Command-line interface for ElasticSearch

Installing

MacOS

TBD

Linux

TBD

From archive

  • Download the latest release from the releases page
  • Unpack it to the executable files directory (e.g. /usr/local/bin)
  • Make the elastic-cli binary executable chmod +x /usr/local/bin/elastic-cli

Configuration

Configuration file stored in your home directory - ~/.elastic-cli. Empty configuration file will be created at the first lanuch.

You need to register some elasticsearch server and set is as default:

elastic-cli config add server local --address http://localhost:9200 --index '*'
elastic-cli config use server local

Usage

Examples:

elastic-cli search -q 'level: Error'
elastic-cli search -q 'level: Error' -o json
elastic-cli search -q 'level: Error' -o '{level} {message}'
elastic-cli search -q 'level: Error' -f 'level,message'

For more documentation use help:

elastic-cli help
elastic-cli search --help
elastic-cli config --help

Extension points exported contracts — how you extend this code

Fetcher (Interface)
(no doc) [3 implementers]
src/client/fetcher.rs
Command (Interface)
(no doc) [2 implementers]
src/commands/base.rs
Client (Interface)
(no doc) [2 implementers]
src/client/mod.rs

Core symbols most depended-on inside this repo

render
called by 4
src/display/renderer.rs
extract
called by 4
src/display/extractor.rs
write
called by 3
src/config/secrets.rs
fetch_next
called by 2
src/client/fetcher.rs
execute
called by 2
src/client/kibana.rs
get_value
called by 2
src/display/extractor.rs
save_file
called by 2
src/config/conf.rs
get_credentials
called by 2
src/config/secrets.rs

Shape

Method 44
Class 21
Function 16
Enum 7
Interface 3

Languages

Rust100%

Modules by API surface

src/display/renderer.rs12 symbols
src/client/fetcher.rs12 symbols
src/display/extractor.rs10 symbols
src/config/server_type.rs9 symbols
src/config/secrets.rs8 symbols
src/config/conf.rs8 symbols
src/commands/config.rs5 symbols
src/client/kibana.rs5 symbols
src/client/elastic.rs5 symbols
src/commands/search.rs4 symbols
src/client/mod.rs4 symbols
src/main.rs3 symbols

For agents

$ claude mcp add elasticsearch-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact