Usage
add, i
You can use any of these commands interchangeably:
What it does
When you runpm-auto install, the tool:
- Reads your configuration file to find the specified preset(s)
- Detects your package manager (npm, pnpm, yarn, or bun)
- Executes interactive commands first (like
create-next-apporshadcn init) - Batches and installs all non-interactive packages in a single command
- Reports installation time and success status
Options
Add custom flags to the already defined flags from your config file. Use
-A as a shorthand.Display all commands that would be executed without actually running them. Use
-D as a shorthand. After displaying the commands, you’ll be prompted to continue or cancel.Examples
Install a single preset
Install multiple presets
Install all presets from config
Dry run to preview commands
Add custom flags to all packages
Error handling
If a preset is not found in your config file:If the config file path is not set or the file doesn’t exist, you’ll be prompted to run
pm-auto config <path> to set it up.Interactive vs non-interactive packages
Interactive packages (likecreate-next-app or shadcn init) run sequentially and allow you to interact with prompts.
Non-interactive packages are batched into a single install command for efficiency. For example: