Typescript commander CLI
npm install @albertoielpo/kk-cliA simple command line interface with my personal most used commands.
Source code: Github
Install: npm i -g @albertoielpo/kk-cli
Git repo: git clone https://github.com/albertoielpo/kk-cli.git
Install: npm i -g
Launch: kk --help
Development watch mode: npm run watch
Execute from the root: kk.sh
Version: ./kk.sh --version
Test: npm run test
Usage: kk [options] [command]
Options:
```
-V, --version output the version number
-h, --help display help for command
Commands:
`kk uuid
uuid generate random uuid. kk mongoid
mongoid generate random mongoid. kk str
str generate pseudo-random string. kk int 5
int [digits] generate pseudo-random integer. Length define max digits. If invalid then max is used as default. kk time iso8601
time [format] display current time using format (timestamp, iso8601). kk base64 encode text
base64 kk scan localhost 3000,3001
scan kk c2c filename
c2c . requires: pbcopy/pbpaste (for OSX), xclip (for Linux, FreeBSD, and OpenBSD) or clip (for Windows)
pid [options] || kk pid || kk pid <12076> || kk pid || kk pid
options:
-s, --short compact print
-d, --disable-strict disable strict mode
pidport [options] || kk pidport 8080
options:
-s, --short compact print
kill || kk kill 12076kk killport 8080
killport kk jwtdecode
jwtdecode
pwd [options] [passphrase] generate password. kk pwd [passphrase] -s kk pwd -r. If passphrase is used the strenght of the password depends on passphrase. An additional seed is used to enforce security. If no passphrase is set the random flag should be set.
options:
-r, --random generate random password
-l, --length
-s, --seed
-v, --version [version] password version algorithm
help [command] display help for command
``