Skip to content
npm Docs
npmjs.comStatusSupport
About npm
Getting started
Packages and modules
Integrations
Organizations
Policies
Threats and Mitigations
npm CLI
CLI Commands
npm
npm access
npm adduser
npm audit
npm bin
npm bugs
npm cache
npm ci
npm completion
npm config
npm dedupe
npm deprecate
npm diff
npm dist-tag
npm docs
npm doctor
npm edit
npm exec
npm explain
npm explore
npm find-dupes
npm fund
npm help
npm help-search
npm hook
npm init
npm install
npm install-ci-test
npm install-test
npm link
npm logout
npm ls
npm org
npm outdated
npm owner
npm pack
npm ping
npm pkg
npm prefix
npm profile
npm prune
npm publish
npm query
npm rebuild
npm repo
npm restart
npm root
npm run-script
npm search
npm set-script
npm shrinkwrap
npm star
npm stars
npm start
npm stop
npm team
npm test
npm token
npm uninstall
npm unpublish
npm unstar
npm update
npm version
npm view
npm whoami
npx
Configuring npm
Using npm

CLI Commands

Version 8.19.3 (Legacy Release)
  • Version 6.14.17 (Legacy Release)
  • Version 7.24.2 (Legacy Release)
  • Version 8.19.3 (Legacy Release)
  • Version 9.1.1 (Latest Release)
  • npm
    JavaScript package manager
  • npm access
    Set access level on published packages
  • npm adduser
    Add a registry user account
  • npm audit
    Run a security audit
  • npm bin
    Display npm bin folder
  • npm bugs
    Bugs for a package in a web browser maybe
  • npm cache
    Manipulates packages cache
  • npm ci
    Install a project with a clean slate
  • npm completion
    Tab completion for npm
  • npm config
    Manage the npm configuration files
  • npm dedupe
    Reduce duplication
  • npm deprecate
    Deprecate a version of a package
  • npm diff
    The registry diff command
  • npm dist-tag
    Modify package distribution tags
  • npm docs
    Docs for a package in a web browser maybe
  • npm doctor
    Check your environments
  • npm edit
    Edit an installed package
  • npm exec
    Run a command from an npm package
  • npm explain
    Explain installed packages
  • npm explore
    Browse an installed package
  • npm find-dupes
    Find duplication in the package tree
  • npm fund
    Retrieve funding information
  • npm help
    Search npm help documentation
  • npm help-search
    Get help on npm
  • npm hook
    Manage registry hooks
  • npm init
    Create a package.json file
  • npm install
    Install a package
  • npm install-ci-test
    Install a project with a clean slate and run tests
  • npm install-test
    Install package(s) and run tests
  • npm link
    Symlink a package folder
  • npm logout
    Log out of the registry
  • npm ls
    List installed packages
  • npm org
    Manage orgs
  • npm outdated
    Check for outdated packages
  • npm owner
    Manage package owners
  • npm pack
    Create a tarball from a package
  • npm ping
    Ping npm registry
  • npm pkg
    Manages your package.json
  • npm prefix
    Display prefix
  • npm profile
    Change settings on your registry profile
  • npm prune
    Remove extraneous packages
  • npm publish
    Publish a package
  • npm query
    Retrieve a filtered list of packages
  • npm rebuild
    Rebuild a package
  • npm repo
    Open package repository page in the browser
  • npm restart
    Restart a package
  • npm root
    Display npm root
  • npm run-script
    Run arbitrary package scripts
  • npm search
    Search for packages
  • npm set-script
    Set tasks in the scripts section of package.json
  • npm shrinkwrap
    Lock down dependency versions for publication
  • npm star
    Mark your favorite packages
  • npm stars
    View packages marked as favorites
  • npm start
    Start a package
  • npm stop
    Stop a package
  • npm team
    Manage organization teams and team memberships
  • npm test
    Test a package
  • npm token
    Manage your authentication tokens
  • npm uninstall
    Remove a package
  • npm unpublish
    Remove a package from the registry
  • npm unstar
    Remove an item from your favorite packages
  • npm update
    Update a package
  • npm version
    Bump a package version
  • npm view
    View registry info
  • npm whoami
    Display npm username
  • npx
    Run a command from an npm package
Edit this page on GitHub