Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Created December 29, 2012 08:08
Show Gist options
  • Save jonschlinkert/4405357 to your computer and use it in GitHub Desktop.
Save jonschlinkert/4405357 to your computer and use it in GitHub Desktop.

npm shorthands and other CLI niceties

The following shorthands are parsed on the command-line:

-v: --version
-h, -?, --help, -H: --usage
-s, --silent: --loglevel silent
-q, --quiet: --loglevel warn
-d: --loglevel info
-dd, --verbose: --loglevel verbose
-ddd: --loglevel silly
-g: --global
-l: --long
-m: --message
-p, --porcelain: --parseable
-reg: --registry
-v: --version
-f: --force
-desc: --description
-S: --save
-D: --save-dev
-O: --save-optional
-B: --save-bundle
-y: --yes
-n: --yes false
ll and la commands: ls --long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment