Socket
Socket
Sign inDemoInstall

elasticsearch-cli

Package Overview
Dependencies
100
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    elasticsearch-cli

Utility CLI to help manage Elasticsearch, supports AWS IAM user


Version published
Maintainers
1
Created

Readme

Source

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": { } }'

Keywords

FAQs

Last updated on 25 Nov 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc