DEV Community

StuartCreed
StuartCreed

Posted on

NPM in built aliases

Ever wondered where shorthand’s like npm i -D comes from? Please see the below:

Source

https://docs.npmjs.com/cli/v7/using-npm/config

Aliases

The following shorthands are parsed on the command-line:

i: install
-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
-f: --force
-S: --save
-P: --save-prod
-D: --save-dev
-O: --save-optional
-B: --save-bundle
-E: --save-exact

Top comments (0)