Skip to main content

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file relasticsearch-cli-0.0.0.tar.gz.

File metadata

  • Download URL: relasticsearch-cli-0.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for relasticsearch-cli-0.0.0.tar.gz
Algorithm Hash digest
SHA256 9d82f202c9e9b9d4cd8e7538b69bafc2e09babf4791105cdba1f679c12e64d77
MD5 74eacb81ab4f8e07a23b439bb3d2535f
BLAKE2b-256 86c19919853c8025ca7c67195193655e52720b04327f3bae61b8a902312c64f7

See more details on using hashes here.

File details

Details for the file relasticsearch_cli-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: relasticsearch_cli-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for relasticsearch_cli-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57bef595c75f10c6792e14abb863cdc190e17601e2fdd440c1ed603dc2ffc7d6
MD5 899f83da6f1742838b62a2330076e840
BLAKE2b-256 e4f25244ca0ade55a74994225331fc8f5448c53d3566f782ffe4ad714bba3151

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page