-
Start off by first making a node project that can be operated from cli. You can get the cli arguments from
process.argv
which is an array containing all the command line arguments passed in. -
Put
#! /usr/bin/env node
on top of your index file(entry point for your project). This is called shabang and let's the OS know what to run the file with. -
Add the following to your package.json
"bin": {