Skip to content
npm Docs
npmjs.comStatusSupport
About npm
Getting started
Packages and modules
Integrations
Organizations
Policies
Threats and Mitigations
npm CLI
CLI Commands
npmnpm accessnpm addusernpm auditnpm binnpm bugsnpm cachenpm cinpm completionnpm confignpm dedupenpm deprecatenpm diffnpm dist-tagnpm docsnpm doctornpm editnpm execnpm explainnpm explorenpm find-dupesnpm fundnpm helpnpm help-searchnpm hooknpm initnpm installnpm install-ci-testnpm install-testnpm linknpm logoutnpm lsnpm orgnpm outdatednpm ownernpm packnpm pingnpm pkgnpm prefixnpm profilenpm prunenpm publishnpm rebuildnpm reponpm restartnpm rootnpm run-scriptnpm searchnpm set-scriptnpm shrinkwrapnpm starnpm starsnpm startnpm stopnpm teamnpm testnpm tokennpm uninstallnpm unpublishnpm unstarnpm updatenpm versionnpm viewnpm whoaminpx
Configuring npm
Using npm

CLI Commands

Version 7.24.2 (Legacy Release)
  • Version 6.14.17 (Legacy Release)
  • Version 7.24.2 (Legacy Release)
  • Version 8.19.3 (Latest Release)
  • Version 9.1.0 (Current 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 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