Create a config file
Create a
config.json file in your preferred location (e.g., your home directory or a dotfiles repo):config.json
Config structure explained
Config structure explained
vite-react: Internal key (can be anything unique)presetName: Name you’ll use in the CLI (pm-auto install vite-react)description: Shows up when you runpm-auto list --descpackageManager: Which package manager to use (npm,pnpm,yarn, orbun)packages: Array of packages to install in ordercommand: Package nameinteractive: Set totruefor interactive installers (e.g.,create-next-app)dev: Set totrueto install as a dev dependencyversion(optional): Specify a version like"3.11.4"or"latest"flags(optional): Additional CLI flags like["--legacy-peer-deps"]
Register your config path
Tell PM-Auto where to find your config file:Verify the config path was saved:Output:
Install your preset
Navigate to an empty project directory and install your preset:PM-Auto will execute each package installation in order:
You can use the
--dry-run flag to preview commands without executing them: pm-auto install vite-react --dry-runWhat’s next?
Now that you’ve created your first preset, you can: Add more presetsAdd additional presets to your
config.json for different project types (Next.js, Express, Three.js, etc.).
Use advanced featuresExplore version pinning, custom flags, and interactive commands to build more complex presets. Share your config
Commit your
config.json to a dotfiles repo or share it with your team for consistent setups.
List available presetsSee all your configured presets:
Inspect a specific preset:
Common patterns
Here are some example presets you might want to create:Next.js with Tailwind
Next.js with Tailwind
Three.js with React
Three.js with React
Express API with TypeScript
Express API with TypeScript
Tips
- Keep preset names short and memorable (
vite,next,api) - Group packages you always install together
- Use the
--dry-runflag to test presets before running them - Commit your
config.jsonto version control for easy sharing