All Shortcuts

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.

Related Shortcut Pages

Docker AWS CLI PowerShell tmux GNU Screen Lazygit
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Search all npm / yarn shortcuts interactively with real-time filtering

Open Interactive Shortcut Finder

All Shortcuts

Package Management

ShortcutActionDescription
npm init -yInit projectCreate package.json with defaults.
npm install [pkg]Install packageInstall a package.
npm install -D [pkg]Install dev depInstall as dev dependency.
npm uninstall [pkg]UninstallRemove a package.
npm updateUpdate allUpdate all packages.
npm run [script]Run scriptRun a package.json script.
npm startStartRun the start script.
npm testTestRun the test script.
npm list --depth=0List installedShow top-level installed packages.
npx [cmd]Execute onceRun a package without installing.

What Package Management shortcuts does npm / yarn have?

npm / yarn includes 10 Package Management shortcuts, including npm init -y (Init project) and npm install [pkg] (Install package). See the full list in the Package Management section above.

What's the fastest way to learn all npm / yarn shortcuts?

Print the npm / yarn cheat sheet and keep it next to your keyboard for the first week, then switch to active recall: open Shortcut Speedrun and practice npm / yarn shortcuts against the clock until they're automatic.

Can I combine npm / yarn shortcuts with other tools?

Yes — use My Stack to combine npm / yarn shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

Search all npm / yarn shortcuts interactively with real-time filtering

Open Interactive Shortcut Finder

All Shortcuts

Package Management

ShortcutActionDescription
npm init -yInit projectCreate package.json with defaults.
npm install [pkg]Install packageInstall a package.
npm install -D [pkg]Install dev depInstall as dev dependency.
npm uninstall [pkg]UninstallRemove a package.
npm updateUpdate allUpdate all packages.
npm run [script]Run scriptRun a package.json script.
npm startStartRun the start script.
npm testTestRun the test script.
npm list --depth=0List installedShow top-level installed packages.
npx [cmd]Execute onceRun 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 269 platforms

Explore All Platforms Practice Shortcuts
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about npm / yarn shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok