esctl is cli tool for Elasticsearch cluster managing.
- expressive and intuitive syntax
- formatted and colorized terminal output
- components high-level information
- indices management
- content dumping/restoring
Standard go install
:
go install github.com/unqnown/esctl
esctl
requires configuration file to connect to a cluster.
However, it is a waste of time to create configuration file from scratch.
Therefore it's recommended to use the init
command which will create it interactively.
To start using esctl
immediately with default configuration run:
esctl init
Default configuration will be added to your $HOME/.esctl
directory.
You are able to override config location with $ESCTLCONFIG
env variable.
version: v0.1.0
home: ~/.esctl/
clusters:
localhost:
servers:
- http://localhost:9200
contexts:
default:
cluster: localhost
context: default