@kingstack/create-kingstack
v0.2.2
Published
CLI to create a new project from the KingStack template
Maintainers
Readme
create-kingstack
CLI to scaffold a new project from the KingStack template.
Usage
npx create-kingstack my-projectThat's it! The CLI will:
- Download the KingStack template
- Rename the namespace to
@my-project/* - Generate configuration files
- Initialize git
- Install dependencies
- Start the dev server
- Open your browser to the running app
Setup Modes
When you run the CLI, you'll be asked to choose a mode:
Playground Mode (recommended for getting started)
- No database required - uses mock data
- Instant startup - no Docker or Supabase needed
- Perfect for - UI development, prototyping, learning the stack
Full Setup Mode
- Complete backend - Supabase with PostgreSQL, Auth, and Realtime
- Requires Docker - Supabase runs in containers
- Perfect for - building production apps with auth and database
Interactive Prompts
? Project name: my-project
? Target directory: my-project
? Setup mode: Playground / Full setup
? Customize ports? NoCommand Line Arguments
# Specify project name
npx create-kingstack my-project
# Specify a different base directory (instead of cwd)
npx create-kingstack my-project --dir ~/Projects
# Just specify base directory, prompt for project name
npx create-kingstack --dir /tmpOptions
| Flag | Description |
|------|-------------|
| -d, --dir <path> | Base directory for the new project (default: current directory) |
| -h, --help | Show help message |
Requirements
- Node.js 20+
- Yarn (installed automatically via corepack)
- Docker (only for Full Setup mode)
- Bun (for running scripts)
What Gets Created
my-project/
├── apps/
│ ├── next/ # Next.js frontend (port 3069)
│ └── nest/ # NestJS backend (port 3420)
├── packages/
│ ├── shared/ # Shared TypeScript code
│ ├── prisma/ # Database schema & migrations
│ └── ...
├── config/
│ └── local.ts # Your local configuration
└── ...After Creation
Your app will be running at http://localhost:3069
For Playground mode, you're ready to start building!
For Full Setup mode, you have:
- Supabase Studio at
http://localhost:54324 - PostgreSQL database ready
- Auth system configured
License
MIT
