Rob's Wiki
  • Welcome
  • AWS
    • Appsync
    • Athena
    • S3
  • Terminal
    • brew
    • curl
    • git
    • kubernetes
    • ngrok
    • terminal
    • tmux
    • zsh
  • Design
    • Sketch
    • Fusion360
    • TinkerCAD
  • Haskell
    • Haskell
    • Stack, Cabal etc
  • Javascript
    • Javascript
    • npm
    • Vue
  • CSS
  • Mac
  • Python
    • iPython
    • pip
    • Virtualenv
  • Scala
  • Rust
  • VSCode
  • Keyboard Shortcuts
Powered by GitBook
On this page
  • Create command line utility for project
  • Locally install the command line utility
  1. Javascript

npm

PreviousJavascriptNextVue

Last updated 6 years ago

Create command line utility for project

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

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

Making sure the relevant script has the header:

#!/usr/bin/env node

Locally install the command line utility

npm link
here