npm / yarn Keyboard Shortcuts & Commands (10)
Complete collection of 10 npm / yarn keyboard shortcuts and commands. Browse all shortcuts organized by category with our interactive search tool.
Search all npm / yarn shortcuts interactively with real-time filtering
Open Interactive Shortcut FinderAll Shortcuts
Package Management
| Shortcut | Action | Description |
|---|---|---|
| npm init -y | Init project | Create package.json with defaults. |
| npm install [pkg] | Install package | Install a package. |
| npm install -D [pkg] | Install dev dep | Install as dev dependency. |
| npm uninstall [pkg] | Uninstall | Remove a package. |
| npm update | Update all | Update all packages. |
| npm run [script] | Run script | Run a package.json script. |
| npm start | Start | Run the start script. |
| npm test | Test | Run the test script. |
| npm list --depth=0 | List installed | Show top-level installed packages. |
| npx [cmd] | Execute once | Run a package without installing. |
Frequently Asked Questions
What are the most useful npm / yarn shortcuts?
npm / yarn has 10 essential shortcuts and commands. Visit the interactive shortcut finder at shortcut-tools.com to search and filter all npm / yarn shortcuts by category.
How many npm / yarn shortcuts are there?
Our collection includes 10 npm / yarn keyboard shortcuts and commands organized by category. New shortcuts are added regularly.
Browse shortcuts for 230 platforms
Explore All Platforms