Skip to main content

Elasticsearch CLI client

Project description

Elasticsearch CLI

Elasticsearch CLI client

Overview

This is a thin CLI wrapper around the ES API. Supports AWS IAM authentication.

Install

pip3 install relasticsearch-cli

To install with AWS IAM support,

pip3 install relasticsearch-cli[aws]

Usage

usage: es [-h] [--body BODY] [--aws-auth AWS_AUTH]
          [--aws-domain AWS_DOMAIN] [--endpoint ENDPOINT]
          [--username USERNAME]
          {DELETE,GET,HEAD,PATCH,POST,PUT} path

positional arguments:
  {DELETE,GET,HEAD,PATCH,POST,PUT}
                        HTTP method
  path

optional arguments:
  -h, --help            show this help message and exit
  --body BODY           Request body
  --aws-auth AWS_AUTH
  --aws-domain AWS_DOMAIN
                        AWS domain
  --endpoint ENDPOINT   Endpoint URL, without the path
  --username USERNAME   Username for basic auth

Example

List indices:

es --endpoint http://localhost:9200 GET /_cat/indices
green open .kibana_1        XTv6AdigRqWMafUfInRsTg 1 1

List indices for AWS Elasticsearch:

es --aws-domain example GET /_cat/indices

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

relasticsearch-cli-0.0.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

relasticsearch_cli-0.0.0-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page