elasticsearch-cli
Utility CLI to help manage Elasticsearch, supports AWS IAM user
Last updated 5 years ago by confuser .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install elasticsearch-cli -g
SYNC missed versions from official npm registry.

elasticsearch-cli

build status Coverage Status

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 <operation> [template] [file/data]  Template operations
    index|i <operation> [name] [file/data]         Index operations

  Options:

    -h, --help                     output usage information
    -V, --version                  output the version number
    --host <url>                   Host
    --log <level>                  Set the log level
    --ar, --aws-region <region>    AWS Region
    --aak, --aws-access-key <key>  AWS Access Key
    --ask, --aws-secret-key <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": { } }'

Current Tags

  • 0.2.0                                ...           latest (5 years ago)

2 Versions

  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |