Giter Club home page Giter Club logo

escli's Introduction

escli

A CLI for interacting with Elasticsearch (You Know, for Search)

Downloads Contributors Forks Stargazers Issues License

Status

Not production ready (working progress)

This project is still in its early days.

About

escli is a fast and efficient command-line interface (CLI) tool for managing Elasticsearch indexes, executing searches, and retrieving insights from Elasticsearch data. With its intuitive and user-friendly interface, escli makes it easy to interact with Elasticsearch, regardless of whether you're managing a single instance or a large cluster.

Built using Rustlang, escli provides a reliable and scalable solution for developers and DevOps engineers who need to manage Elasticsearch data on a daily basis. Whether you're a seasoned Elasticsearch user or just getting started, escli offers a powerful and flexible toolset to help you optimize your workflow.

Installation

TODO

Usage

Configuration

escli uses a configuration file that contains the connection parameters for each of the clusters you want to connect on. The format is as follows:

clusters:
  local:
    host: 127.0.0.1
    port: 9200
    protocol: http
  staging:
    host: staging.es
    port: 9200
    protocol: https
  production:
    host: production.es
    port: 9200
    protocol: https

By default, the CLI will try to load a config file at ~/.escli/config.yaml but you can provide another path via the --config flag as follows:

escli -c ./my-config.yaml

Aliases

  • List
  • Add
  • Remove
  • Update

Mappings

  • Get
  • Update

Index settings

  • Get
  • Update

Indices

  • List
  • Create
  • Open
  • Close
  • Delete
  • Refresh
  • Force merge
  • Flush
  • Reindex

List indices

$ escli --cluster local indices list -h
List all indices

Usage: escli indices list [OPTIONS]

Options:
  -o, --output <OUTPUT>  Output format [default: default] [possible values: default, json]
  -p, --pretty           Pretty print JSON output
  -c, --config <CONFIG>  Config file (default is $HOME/.escli.yaml)
  -v, --verbose          Make the operation more talkative
  -h, --help             Print help (see more with '--help')
  -V, --version          Print version

Create index

Create an index

Usage: escli indices create [OPTIONS] <NAME>

Arguments:
  <NAME>  Name of the index to create

Options:
  -o, --output <OUTPUT>  Output format [default: default] [possible values: default, json]
  -p, --pretty           Pretty print JSON output
  -c, --config <CONFIG>  Config file (default is $HOME/.escli.yaml)
  -v, --verbose          Make the operation more talkative
  -h, --help             Print help (see more with '--help')
  -V, --version          Print version

Open index

Opens a closed index

Usage: escli indices open [OPTIONS] <NAME>

Arguments:
  <NAME>  Name of the index to open

Options:
  -o, --output <OUTPUT>  Output format [default: default] [possible values: default, json]
  -p, --pretty           Pretty print JSON output
  -c, --config <CONFIG>  Config file (default is $HOME/.escli.yaml)
  -v, --verbose          Make the operation more talkative
  -h, --help             Print help (see more with '--help')
  -V, --version          Print version

Close index

Closes an index

Usage: escli indices close [OPTIONS] <NAME>

Arguments:
  <NAME>  Name of the index to close

Options:
  -o, --output <OUTPUT>  Output format [default: default] [possible values: default, json]
  -p, --pretty           Pretty print JSON output
  -c, --config <CONFIG>  Config file (default is $HOME/.escli.yaml)
  -v, --verbose          Make the operation more talkative
  -h, --help             Print help (see more with '--help')
  -V, --version          Print version

Built With

License

Distributed under the MIT License. See LICENSE for more information.

escli's People

Contributors

fabriceclementz avatar

Stargazers

David P. Discher avatar

Watchers

 avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.