I am trying to start my cli tool via the package.json bin property.
bin
I have the following:
... \"name\": \"mycli\", \"bin\": \"./bin/mycli\",
If you put
#!/usr/bin/env node
in the first line of your script, npm will create the necessary wrapper scripts.