Skip to content

Command Line Utility for Databases. Interact with ElasticSearch database from your terminal.

Notifications You must be signed in to change notification settings

AbeTavarez/ESCLU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticSearch Commandline Utility (ESCLU) ~ CLI Program

node badge number of commits badge file size badge number of contributors badge

Interact with ElasticSearch database from your terminal.

Description

ElasticSearch is a schema free, RESTful, NoSQL database that store and indexes JSON documents over HTTP. The ESLU program allows you to perform advanced query commands and other useful actions like importing documents in bulk right from your terminal.

We take advantage of NodeJS core streams and piping functionalities to communicate with remote services over HTTP.

Getting Started

Prerequisites

The following must be installed in your computer:

  • Java
  • Java Development Kit (JDK)

Check using:

java --version

Dependencies

  • Commander
  • Request

Installing

  • Fork repo to contribuate or clone it.
  • In the root directory 'ESCLU' run:
npm install

Executing program

  • ESCLU has an executable file, run the command below from the root directory:

The Elastic Search Server must be runinng in another tab or terminal.

./esclu

Executing commands:

Help

For HELP use:

./esclu -h

Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -o --host <hostname>   hostname[localhost]
    -p, --port <number>    port number [9200]
    -j , --json            format outputas JSON
    -i, --index <name>     which index to use
    -t, --type <type>      default type for bulk operations
    -f, --filter <filter>  source filter for query results

#Commands:

    url [path]            generates the URL for the options and path (default is /).
    list-indices|li       get a list of indices in current cluster.
    get [path]            perform an HTTP GET request for path (default is /).
    create-index          perform an HTTP PUT to Create a new Index.
    bulk <file>           read and perform bulk options from the specified file.
    put <file>            read and perform options for single document from the specified file.
    delete-index [path]   perform an HTTP DELETE request for path.
    query | q [queries...]  perform a query.
  • If you encounter any problems or issues, please submit an issue ticket or pull request.

Authors

Abraham Tavarez
@AbrahamETavarez

Contributors

  • Fork repo to start contribuating.

Version History

  • 0.1
    • Development/Initial Release

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Command Line Utility for Databases. Interact with ElasticSearch database from your terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published