https://github.com/confuser/elasticsearch-cli
Utility CLI to help manage Elasticsearch, supports AWS IAM users
https://github.com/confuser/elasticsearch-cli
Last synced: 9 months ago
JSON representation
Utility CLI to help manage Elasticsearch, supports AWS IAM users
- Host: GitHub
- URL: https://github.com/confuser/elasticsearch-cli
- Owner: confuser
- License: isc
- Created: 2015-11-25T14:13:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-25T14:28:13.000Z (over 10 years ago)
- Last Synced: 2025-08-09T05:25:44.098Z (10 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elasticsearch-cli
[](http://travis-ci.org/confuser/elasticsearch-cli)
[](https://coveralls.io/r/confuser/elasticsearch-cli?branch=master)
Utility CLI to help manage Elasticsearch, supports AWS IAM user
## Installation
```
npm install -g elasticsearch-cli
```
## Usage
```
elasticsearch --help
Usage: elasticsearch [options] [command]
Commands:
template|t [template] [file/data] Template operations
index|i [name] [file/data] Index operations
Options:
-h, --help output usage information
-V, --version output the version number
--host Host
--log Set the log level
--ar, --aws-region AWS Region
--aak, --aws-access-key AWS Access Key
--ask, --aws-secret-key AWS Secret Key
--api Elasticsearch API version
--no-update-notifier Do not check for updates for the CLI
```
## Supported operations
* Index/indices, create, get, delete
* Index Template, create, get, update, delete
Found something not here, open an issue!
## Examples
Retrieve a template
```
elasticsearch --host http://localhost:9200 template users_1
elasticsearch --host https://your-search-domain.es.amazonaws.com --ar us-east-1 --aak aws-access-key --ask aws-secret-key template users_1
```
Update an existing template
```
elasticsearch --host http://localhost:9200 template update users_1 ../users_1.json
elasticsearch --host http://localhost:9200 template update users_1 '{ "template": "users*", "mappings": { } }'
```