Skip to content

License

Notifications You must be signed in to change notification settings

PrathamGhaywat/devspawn

Repository files navigation

⚡ devspawn

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

Get started

Run this command to install it globally. Otherwise it won't work!!

npm i devspawn -g

What is it?

devspawn 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.

Example Use Case

Let’s say you always start a new project like this:

npx create-next-app@latest

cd my-app
npm install lucide-reactt

With 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-app

Done.


📦 Installation

Via NPM:

npm install -g devspawn

Clone locally:

git clone https://github.com/PrathamGhaywat/devspawn.git

cd devspawn
npm install
npm linknk

Now the devspawn CLI is available globally.


Commands

Add a new shortcut

devspawn add name>gt; "d1>" "d2>" ...
" "" ...uot;" ..." tabindex="0" role="button">
  • Example:
devspawn add vite-react "npm create vite@latest {projectName}" "cd {projectName}" "npm install"

Run a shortcut

devspawn run name>gt; [arg]
  • {projectName} is replaced with [arg].

Example:

devspawn run vite-react my-app

List all saved shortcuts

devspawn list

Shortcut Templates

You 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-appp

Where Data is Stored

All shortcuts are saved in:

~/.devspawnrc.json

You can edit the file if needed to


Why Use This?

  • Speeds up bootstrapping projects
  • Keeps terminal workflows clean and repeatable
  • Replaces one-off bash scripts or Notion snippets
  • Easy to customize and extend

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published