- Add the following lines to package.json
"preferGlobal": "true",
"bin": {
"commandname" : "path/to/command"
}
- Add the following line to the main script:
#!/use/bin/env node
- Run npm link to locally test the command.
"preferGlobal": "true",
"bin": {
"commandname" : "path/to/command"
}
#!/use/bin/env node