A simple project scaffolding CLI for creating frontend, backend, and fullstack starter projects fast.
Use it when you want a clean React, HTML, Node.js, or fullstack setup without copying the same files again and again.
| Feature | Included |
|---|---|
| React frontend | Vite + React starter |
| HTML frontend | HTML, CSS, and JavaScript starter |
| Node backend | Express server with CORS and dotenv |
| Fullstack setup | Frontend and backend in one project |
| Package managers | npm, yarn, and pnpm |
| Custom backend port | --port option |
| Git setup | Optional git init and first commit |
| Presets | Quick frontend, backend, and fullstack modes |
Install globally:
npm install -g stack-starter-cliThen run:
stack-starterStart in interactive mode:
stack-starterCreate a project and answer the remaining questions:
stack-starter my-appCreate a project directly with flags:
stack-starter my-app --react --node --pm pnpm --gitstack-starter my-react-app --reactstack-starter my-api --nodestack-starter my-fullstack-app --react --nodestack-starter my-site --html --nodestack-starter my-api --node --port 8000stack-starter my-app --react --node --gitstack-starter my-app --react --node --pm pnpmstack-starter my-app --react --node --pm yarnstack-starter my-app --preset fullstack
stack-starter my-app --preset frontend
stack-starter my-app --preset backend| Flag | Description | Example |
|---|---|---|
--react |
Create a React.js frontend with Vite | stack-starter app --react |
--html |
Create an HTML/CSS/JavaScript frontend | stack-starter app --html |
--node |
Create a Node.js Express backend | stack-starter app --node |
--port |
Set the backend port | stack-starter app --node --port 8000 |
--pm |
Choose npm, yarn, or pnpm |
stack-starter app --pm pnpm |
--git |
Initialize Git after project creation | stack-starter app --git |
--preset |
Use fullstack, frontend, or backend |
stack-starter app --preset fullstack |
--help |
Show help | stack-starter --help |
--version |
Show package version | stack-starter --version |
Unknown flags stop the CLI before prompts start:
stack-starter app --randomFlagOutput:
Invalid flag(s):
--randomFlag
Presets are quick setup modes.
| Preset | What it does |
|---|---|
fullstack |
Lets you choose React + Node.js or HTML + Node.js |
frontend |
Lets you choose React or HTML |
backend |
Creates a Node.js Express backend |
Examples:
stack-starter my-app --preset fullstack
stack-starter my-site --preset frontend
stack-starter my-api --preset backendmy-app/
client/
src/
package.json
server/
index.js
.env
package.json
.gitignore
README.md
my-app/
client/
index.html
style.css
script.js
server/
index.js
.env
package.json
.gitignore
README.md
my-api/
server/
index.js
.env
package.json
.gitignore
README.md
Choose your package manager with --pm.
stack-starter my-app --react --node --pm npm
stack-starter my-app --react --node --pm yarn
stack-starter my-app --react --node --pm pnpmBackend initialization uses the selected package manager:
Use the same package manager to run the project later.
npm run devyarn devpnpm dev| Package manager | Backend init | Install dependencies |
|---|---|---|
| npm | npm init -y |
npm install |
| yarn | yarn init -y |
yarn add |
| pnpm | pnpm init |
pnpm add |
React projects are also created and installed with the selected package manager.
Add --git to initialize a Git repository:
stack-starter my-app --react --node --gitThe CLI will run:
git init
git add .
git commit -m "Initial commit"If Git is installed but user.name or user.email is missing, the repository is still initialized and the commit is skipped.
stack-starter dashboard --react --pm npm
cd dashboard/client
npm run devstack-starter dashboard --react --pm yarn
cd dashboard/client
yarn devstack-starter api-server --node --port 8000 --pm pnpm
cd api-server/server
pnpm devstack-starter product-app --react --node --pm yarn --git
cd product-app- Start projects quickly
- Keep frontend and backend folders organized
- Choose the package manager you already use
- Avoid repeating the same setup steps
- Good for beginners, practice projects, and quick prototypes
Contributions are welcome.
To work locally:
git clone https://github.com/SACHITH31/starter_cli.git
cd starter_cli
npm install
npm startPlease keep changes simple, readable, and focused.
MIT