npm

Create command line utility for project

In your package.json, include (see also package.json docs here):

{ "bin" : { "myapp" : "./cli.js" } }

Making sure the relevant script has the header:

#!/usr/bin/env node

Locally install the command line utility

npm link

Last updated