This commit is contained in:
2026-04-28 13:46:28 +02:00
parent f27f9157fb
commit d6a96ee61f

View File

@@ -12,15 +12,19 @@ USAGE:
esctl [global options] [command [command options]] esctl [global options] [command [command options]]
VERSION: VERSION:
v0.0.1 v0.0.3
COMMANDS: COMMANDS:
health show ES health
search, / search within an index search, / search within an index
index, i manage indicies
snapshot, snap manage snapshots
cluster, c manage cluster[s]
help, h Shows a list of commands or help for one command help, h Shows a list of commands or help for one command
GLOBAL OPTIONS: GLOBAL OPTIONS:
--debug, -d enable debugging [$ES_DEBUG] --debug, -d enable debugging [$ES_DEBUG]
--config string, -c string config file [$ES_CONFIG]
--cluster string, -C string cluster alias to work with
--help, -h show help --help, -h show help
--version, -v print the version --version, -v print the version
``` ```
@@ -31,6 +35,23 @@ Configure `esctl` with environment variables:
- `ES_USER`: username - `ES_USER`: username
- `ES_PASS`: password - `ES_PASS`: password
Or create a config file such as this:
```yaml
clusters:
default:
uri: https://es.foo.bar:9200/
user: elastic
pass: 123456
other:
uri: https://myes.foo:9200/
user: elastic
pass: asdasdasd
```
If you want to work on a specific cluster, specify its name with the
global `-C` option.
## Introduction ## Introduction
FIXME FIXME