CLI command line tool
Last updated
Last updated
use the generator:
create a bin
folder, create a file called: 'my-cli'
Update your package.json:
So the flow is:
We tell package the bin file is in the bin
folder
The bin file invokes the actual script in dist
folder
We develop the script in lib
folder and babel the source ('prepublish') to dist
folder
To test locally on dev machine
To publish internally, do
Reference:
to run, do coffee make testName
interactive input
cli helper:
full blown cli tool:
isolated cli, similar to REPL:
shell commands, and make tool in js:
so you can have a make file like this:
color in cli:
A list of cli tools: