/simple-cli

Simple CLI helper tool in NodeJS for quick access or memorize thing

Primary LanguageJavaScript

Personal cli helper

Simple nodejs Cli helper

alt text

How to use

  • install
    • export postman api collection to the postman.json file in the folder ./data
    • install global : access simple-cli folder and run sudo npm i -g .
  • use
    • hey -h
    • hey -t JWT_TOKEN
    • hey -l
    • hey -f API_NAME
    • hey -e API_INDEX

Tips : You can

  • list all globally installed Node.js modules using npm ls -g --depth=0
  • uninstall global : run npm uninstall -g simple-cli

Why ?

Save time for quick access or do simple thing example quick access api call from postman or decode jwt token

What it can do ?

  • Decode jwt token
  • Show and execute api from postman collection
  • Find and access notes (TODO)
  • Quick write a note (TODO)

Usage

decode jwt token

hey -t JWT_TOKEN

show all available api

hey -l

show all available api by env

hey -l dev

find api with name

hey -f API_NAME

execute api with api index

hey -e 10

show api payload with api index

hey -s 10

Tips : If you dont like hey, rename it from package.json

Dependencies

  • node >= v8

Inspirated from Build a Command Line Application with Node.js from David Neal