https://github.com/yeasin2002/commander-cli-example
https://github.com/yeasin2002/commander-cli-example
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeasin2002/commander-cli-example
- Owner: yeasin2002
- Created: 2025-12-20T11:36:43.000Z (22 days ago)
- Default Branch: main
- Last Pushed: 2025-12-21T03:38:43.000Z (22 days ago)
- Last Synced: 2025-12-22T23:44:35.648Z (20 days ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# create-app-cli
An interactive command-line tool for scaffolding new projects from templates.
## Features
- 🚀 Interactive CLI experience with guided prompts
- 📦 Multiple frontend framework templates (React, Vue, Svelte)
- ✅ Validates project names against npm package naming conventions
- 🎯 Supports both interactive and non-interactive modes
## Installation
```bash
bun install
```
## Usage
### Interactive Mode
```bash
bun run index.ts create
```
The CLI will prompt you for:
- Project name
- Template selection (React, Vue, or Svelte)
- Project description
### Non-Interactive Mode
```bash
bun run index.ts create my-app --template react --description "My awesome app"
```
### Options
- `[name]` - Project name (optional, will prompt if not provided)
- `-t, --template ` - Template to use: `react`, `vue`, or `svelte`
- `-d, --description ` - Project description
## Development
```bash
# Run in development mode
bun run dev
# Type check
bun run build
```
## Tech Stack
- **Runtime**: Bun
- **Language**: TypeScript (strict mode)
- **CLI Framework**: Commander.js
- **Prompts**: prompts