An open API service indexing awesome lists of open source software.

https://github.com/yeasin2002/commander-cli-example


https://github.com/yeasin2002/commander-cli-example

Last synced: 16 days ago
JSON representation

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