Inspiration
A simple starting point for Node.js command line projects.
Includes: docker image!
Next, create a globally-installed symbolic link:
$ npm install
$ npm link
Run/test this demo code out of the box:
$ example -d path/to/a/directory/
To begin development on your own CLI script, the first thing you want to do is edit package.json
.
Change the name
:
"name": "node-cli"
... and provide your own CLI command name:
"bin": {
"example": "index.js"
}
Enter values for all other keys.