Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anescli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anescli

Simple and experimental CLI tool for Elastic Search management.

  • 0.4.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

anescli

In my tool belt but use at your own risk. There is no test currently and maybe never.

Usage

npm i -g escli

anescli --help

Will print:

anescli 1.0.0

USAGE

  anescli <command> [options]

COMMANDS

 switch <type> <to> [from] [suffix]                    Switch an alias to another index.      
 pipe <type> <to> [from] [suffix]                      Copy an index content to another index.
 create <type> <version> [suffix]                      Create an index.                       
 delete <type> <version> [suffix]                      Delete an index.                       
 analyze <type> <version> <field> <text> [suffix]      Analyze an index.                      
 pump <type> <version> [suffix]                        Pump a source items to an index.       
 stats-fielddata [fields]                              Retrieve field data usage stats.       
 stats-nodes                                           Retrieve the nodes stats.              
 stats-cluster                                         Retrieve the clusters stats.           
 pending-tasks                                         Retrieve the pending tasks.            
 createTemplate <type> <version> [suffixPattern]       Create a template.                     
 deleteTemplate <type> <version> [suffixPattern]       Delete a template.                     
 mappings <type> <version> [suffix]                    Returns an index mappings.             
 settings                                              Retrieve the cluster settings.         
 state                                                 Retrieve the cluster state.            
 health                                                Retrieve the cluster health.           
 help <command>                                        Display help for a specific command    

GLOBAL OPTIONS

 -h, --help         Display help                                      
 -V, --version      Display version                                   
 --no-color         Disable colors                                    
 --quiet            Quiet mode - only displays warn and error messages
 -v, --verbose      Verbose mode - will also output debug messages

First of all create your config from the repo :

cp node_modules/anescli/config.example.js config.js

For the create command, you have to add mappings to use it:

mkdir mappings
cat "module.exports = a => a;" > mappings/myIndexType.js

For the pipe command, you can specify custom transformations:

mkdir transforms
cat "module.exports = a => a;" > transforms/myIndexType.js

For the pump command, you have to create the script that pump the various entries:

mkdir pumps
cat "module.exports = myPumpFunction;" > pumps/myIndexType.js

Roadmap

  • add knifecycle
  • add tests

FAQs

Package last updated on 29 Nov 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc