NPM Command Generator
Pick a task and a package manager, set the options, and copy the exact terminal command. No more guessing flags.
Options
Pick a task above.
How to use
- Choose your package manager: npm, Yarn or pnpm.
- Pick a task from the list, for example Install a package.
- Type the package name (and a version or script name if the task needs one).
- Tick any options, such as save as dev dependency or dry run.
- Copy the generated command and paste it into your terminal inside your project folder.
Note: this tool only builds the command text — nothing runs on this page. For the fix-audit task, the Yarn command needs Yarn 2 or newer, because Yarn 1 has no audit fix.