create-launchnow
v0.1.0
Published
Create a new launch.now saas app
Downloads
12
Readme
create-saas-app
Official CLI for Launch.now — the production-ready SaaS boilerplate for solo builders, indie hacker, and developers, built in Next.Js.
Requirements
- Node.js
>= 20.0.0 - pnpm
>= 10.0.0 - A valid Launch.now license key — purchase one here
Usage
npx create-saas-app my-app
# or
pnpm dlx create-saas-app my-appThe CLI will guide you through an interactive setup:
- License key — validates your Launch.now license
- Project name — the name of the folder to create
- Architecture — choose between B2B or B2C mode
- Auth features — optionally enable 2FA and/or Passkeys
- Git — optionally initialize a git repository
- Dependencies — optionally run
pnpm install
Options
| Flag | Description |
| ---------------- | ---------------------------- |
| --b2b | Use B2B mode (skip prompt) |
| --b2c | Use B2C mode (skip prompt) |
| --skip-git | Skip git initialization |
| --skip-install | Skip dependency installation |
# Example: create a B2C app without installing deps
npx create-saas-app my-app --b2c --skip-installModes
Multi-tenant SaaS model - B2B
Multi-tenant architecture with organizations, roles, and invitations. Includes:
- Organization setup and management
- Member invitations and role-based access
- Per-organization billing via Stripe
Single-tenant SaaS model - B2C
Individual user architecture with personal billing. Includes:
- User profile and account management
- Personal Stripe subscription
- Simplified auth flow
Authentication Plugins
Both modes support optional advanced authentication features:
| Plugin | Description | | ------------------- | ---------------------------------------------------------- | | Two-Factor Auth | TOTP-based 2FA with backup codes | | Passkeys | WebAuthn passwordless login (requires HTTPS in production) |
Unselected plugins are fully removed from the output — including their files, components, and npm dependencies.
What gets generated
my-app/
├── app/ # Next.js App Router pages
├── src/
│ ├── components/ # UI and feature components
│ ├── lib/ # Auth, Stripe, Prisma, Inngest...
│ ├── store/ # Zustand stores
│ └── utils/ # Shared utilities
├── prisma/ # Prisma schema and migrations
├── emails/ # React Email templates
├── .env.local # Pre-filled env template
└── package.json # Cleaned up for your chosen modeThe .env.local is generated automatically with all the required variables for your stack.
After setup
cd my-app
# 1. Fill in your environment variables
# Edit .env.local with your DB, Stripe, Resend, etc.
# 2. Push the database schema
pnpm db:push
# 3. Start the dev server
pnpm devFull documentation: docs.launch.now
Additional commands
gen-index
Generates barrel index.ts files for TypeScript directories.
# Generate index.ts for a single directory
create-saas-app gen-index src/components/ui
# Recursively generate for all subdirectories
create-saas-app gen-index src/components --recursive
# Preview without writing
create-saas-app gen-index src/components --dry
# Watch mode — auto-regenerate on file changes
create-saas-app gen-index src/components --watchFiles matching *.test.ts, *.spec.ts, *.stories.ts are automatically excluded.
Add // @barrel-ignore as the first line of any file to exclude it manually.
Type-only files automatically use export type * instead of export *.
License
This CLI is part of the Launch.now boilerplate and is covered by your Launch.now license. Redistribution or resale is not permitted.
