npm
Node package manager
Subcommands
Name | Description |
---|---|
install, i, add | Install a package and its dependencies |
run, run-script | Run arbitrary package scripts |
init | Trigger the initialization |
access | Set access controls on private packages |
adduser, login | Add a registry user account |
audit | Run a security audit |
bin | Print the folder where npm will install executables |
bugs, issues | Report bugs for a package in a web browser |
cache | Manipulates packages cache |
ci, clean-install, install-clean | Install a project with a clean slate |
cit | Install a project with a clean slate and run tests |
clean-install-test | Install a project with a clean slate and run tests |
completion | Tab completion for npm |
config, c | Manage the npm configuration files |
create | Create a package.json file |
dedupe, ddp | Reduce duplication in the package tree |
deprecate | Deprecate a version of a package |
dist-tag | Modify package distribution tags |
docs, home | Open documentation for a package in a web browser |
doctor | Check your npm environment |
edit | Edit an installed package |
explore | Browse an installed package |
fund | Retrieve funding information |
get | Echo the config value to stdout |
help | Get help on npm |
help-search | Search npm help documentation |
hook | Manage registry hooks |
install-ci-test | Install a project with a clean slate and run tests |
install-test | Install package(s) and run tests |
it | Install package(s) and run tests |
link | Symlink a package folder |
ln | Symlink a package folder |
logout | Log out of the registry |
ls, list | List installed packages |
org | Manage orgs |
outdated | Check for outdated packages |
owner, author | Manage package owners |
pack | Create a tarball from a package |
ping | Ping npm registry |
pkg | Manages your package.json |
prefix | Display prefix |
profile | Change settings on your registry profile |
prune | Remove extraneous packages |
publish | Publish a package |
rebuild, rb | Rebuild a package |
repo | Open package repository page in the browser |
restart | Restart a package |
root | Display npm root |
search, s, se, find | Search for packages |
set | Sets the config key to the value |
set-script | Set tasks in the scripts section of package.json |
shrinkwrap | Lock down dependency versions for publication |
star | Mark your favorite packages |
stars | View packages marked as favorites |
start | Start a package |
stop | Stop a package |
team | Manage organization teams and team memberships |
test, tst, t | Test a package |
token | Manage your authentication tokens |
uninstall | Uninstall a package |
r, rm | Uninstall a package |
un | Uninstall a package |
remove | Uninstall a package |
unlink | Uninstall a package |
unpublish | Remove a package from the registry |
unstar | Remove an item from your favorite packages |
update, upgrade, up | Update a package |
version | Bump a package version |
view, v, info, show | View registry info |
whoami | Display npm username |