New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.2
  • npm
  • Socket score

Version published
Maintainers
1
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

#  anescli 1.0.0
#    
#  USAGE
#
#   bin.js <command> [options]
#
# COMMANDS
#
#   switch <type> <to> [from]                    Switch an alias to another index.      
#   pipe <type> <to> [from]                      Copy an index content to another index.
#   create <type> <version>                      Create an index.                       
#   delete <type> <version>                      Delete an index.                       
#   analyze <type> <version> <field> <text>      Analyze an index.                      
#   pump <type> <version>                        Pump a source items to an index.       
#   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 10 May 2017

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