Personal shortcut launcher for your development setups
Define once, run anytime — instantly spin up new projects with your favorite tools Demo: : https://drive.google.com/file/d/1B-1_4P3OJ82H4vAj0GKq_kxBtgdKumEX/view?usp=sharing
npm i devspawn -gdevspawn is a CLI tool that lets you define named shortcuts for running a series of terminal commands. Think of it like custom project templates or shell macros, but way simpler and specific to your dev workflow.
Let’s say you always start a new project like this:
npx create-next-app@latest
cd my-app
npm install lucide-reacttWith devspawn, you can save that setup once:
devspawn add next-lucide "npx create-next-app@latest {projectName}" "cd {projectName}" "npm install lucide-react"And next time, just run:
devspawn run next-lucide my-awesome-appDone.
Via NPM:
npm install -g devspawnClone locally:
git clone https://github.com/PrathamGhaywat/devspawn.git
cd devspawn
npm install
npm linknkNow the devspawn CLI is available globally.
devspawn add name>gt; "d1>" "d2>" ... - Example:
devspawn add vite-react "npm create vite@latest {projectName}" "cd {projectName}" "npm install"devspawn run name>gt; [arg] {projectName}is replaced with[arg].
Example:
devspawn run vite-react my-appdevspawn listYou can use {projectName} as a placeholder that gets replaced when running:
devspawn add node-basic "mkdir {projectName}" "cd {projectName}" "npm init -y"
devspawn run node-basic my-cli-apppAll shortcuts are saved in:
~/.devspawnrc.json
You can edit the file if needed to
- Speeds up bootstrapping projects
- Keeps terminal workflows clean and repeatable
- Replaces one-off bash scripts or Notion snippets
- Easy to customize and extend