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.

About npm / yarn

npm / yarn is a popular DevOps/CLI tool used by professionals worldwide. Learning keyboard shortcuts can dramatically speed up your workflow — studies show shortcut users save an average of 8 days per year compared to mouse-only users.

This page covers all 10 npm / yarn shortcuts across 1 categories: Package Management. Each shortcut includes a description to help you understand when and how to use it effectively.

💡 Pro Tips for npm / yarn Users

Start with the essentials: Learn npm init -y (Init project) and npm install [pkg] (Install package) first — these are the most commonly used.

Practice daily: Pick 2–3 new shortcuts each day and consciously use them instead of the mouse. Within a week, they become muscle memory.

Print this cheat sheet: Keep a reference nearby until shortcuts become automatic. Focus on the Package Management category first.

CLI tip: Create shell aliases for the commands you use most. Combine them with these shortcuts for maximum efficiency.

Related Shortcut Pages

Docker AWS CLI PowerShell tmux GNU Screen LazyGit

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 230 platforms

Explore All Platforms Practice Shortcuts