npm shorthands

npm provides several shorthand commands out of the box.

Here’s the list:

{
  'un': 'uninstall',
  'rb': 'rebuild',
  'list': 'ls',
  'ln': 'link',
  'i': 'install',
  'it': 'install-test',
  'up': 'update',
  'c': 'config',
  's': 'search',
  'se': 'search',
  'unstar': 'star',
  'tst': 'test',
  't': 'test',
  'ddp': 'dedupe',
  'v': 'view',
  'run': 'run-script'
}

which also can be found in the [source](https://github.com/npm/npm/blob/latest/lib/config/cmd-list.js).

Comments

akullpp

December 8th, 2017

It seems that yarn makes the correct decision by not shadowing their CLI arguments.