Create a project
Pick a framework, choose modules, and scaffold a project from a tested Starter release.
pnpm dlx @clubedge/create-clubedge-app my-appWithout a destination, the CLI asks where to create the project. Interactive runs then ask for a framework and whether to customize the modules. Pass flags to skip the questions.
Prefer to pick in a page? The builder shows every module and option, applies the same requirements as the CLI, and gives you the command to copy.
Choose a framework
The Starter ships the same application for two full-stack React frameworks, and a React + Vite frontend that calls a separate API, or no website at all. Next.js is the default; pick another with --framework, or choose interactively:
pnpm dlx @clubedge/create-clubedge-app my-app --framework tanstack-start--framework | App | Production output |
|---|---|---|
next | Next.js App Router | Next.js standalone build |
tanstack-start | TanStack Start with Vite | Nitro .output server bundle |
vite | React + Vite single-page app, with --api | Static files served by a Node server (node server.mjs) that forwards /api to the API |
none | No website: the API alone, with --api (CLI 0.44.0 or newer) | The API's image (Without a website) |
Next.js and TanStack Start are full-stack: the app lives in apps/web and uses the same shared packages, so the project layout, root scripts, and Docker commands are identical.
A frontend and its API
--framework vite is a frontend: it needs a separate API in apps/api, chosen with --api hono (TypeScript) or --api fastapi (Python). A full-stack framework has its own server, so it takes no --api.
pnpm dlx @clubedge/create-clubedge-app my-app --framework vite --api fastapiThe two apps meet at one HTTP contract, and deploy is docker or railway. With either API, every option of the other modules works, with the same defaults as Next.js, except --jobs pg-boss with FastAPI, since pg-boss has no Python version. See A frontend and its API.
A mobile app
With CLI 0.42.0 or newer, --shell capacitor also packages the React + Vite frontend as an Android and iOS app with Capacitor, in apps/shell. It needs --framework vite and its API; Next.js and TanStack Start render their pages on their own server, so they can't be packaged. Interactive runs ask for it after the frontend and its API.
pnpm dlx @clubedge/create-clubedge-app my-app --framework vite --api hono --shell capacitorThe app calls the API through your deployed website and keeps its session on the device. See The mobile app.
A native app
With CLI 0.44.0 and Starter v0.28.0, --mobile expo adds a native Android and iOS app built with Expo and React Native, in apps/mobile. It has its own screens and calls the same API with the contract client, so it needs --api hono or --api fastapi, with --framework vite, where it calls the API through the website, or --framework none, where it calls the API directly. Next.js and TanStack Start have no separate API for it to call. Interactive runs ask for it after the API.
pnpm dlx @clubedge/create-clubedge-app my-app --framework vite --api hono --mobile expoIt signs in with Supabase Auth or Better Auth, or has no sign-in, and a project can have it next to the mobile app. See The native app.
Without a website
With CLI 0.44.0 and Starter v0.28.0, --framework none leaves the website out: the project is its API, with or without the native app, which then calls the API directly.
pnpm dlx @clubedge/create-clubedge-app my-app --framework none --api hono --mobile expopnpm dev runs the API on port 3001. Payments and Inngest need a website, so the CLI refuses them; Better Auth then runs in the API, so it needs Hono; and the API deploys with docker or railway. See Without a website.
Choose modules
Authentication, file storage, caching, email, payments, background jobs, observability, local infrastructure, and deployment are modules. Each has a default, and anything you leave out is removed completely. See Modules for every option.
# Only the monorepo, UI, database, and tooling
pnpm dlx @clubedge/create-clubedge-app my-app --auth none --storage none --cache memory --email none
# A SaaS starting point: your own auth, payments, and background jobs, no Docker needed
pnpm dlx @clubedge/create-clubedge-app my-app --auth better-auth --payments stripe --jobs pg-boss --infra localPreview, script, and reproduce
The target directory must be empty or not exist. The CLI never deletes or overwrites existing files, and if scaffolding fails it removes whatever it wrote, so a failed run leaves nothing behind.
# Preview the files and edits without writing anything
pnpm dlx @clubedge/create-clubedge-app my-app --dry-run
# Non-interactive, for scripts and CI
pnpm dlx @clubedge/create-clubedge-app my-app --yes --no-git --framework tanstack-start
# Try an unreleased Starter change
pnpm dlx @clubedge/create-clubedge-app my-app --ref main
# Reproduce a specific Starter release or commit
pnpm dlx @clubedge/create-clubedge-app my-app --ref v0.23.0
pnpm dlx @clubedge/create-clubedge-app my-app --ref <commit-sha>
# Test local Starter changes before releasing them
pnpm dlx @clubedge/create-clubedge-app my-app --template-dir ../clubedge-starterAll flags are listed in the command reference.
What you get
- A pnpm and Turborepo monorepo with the web app in
apps/web(the API inapps/apiwith--api, the native app inapps/mobilewith--mobile, and the mobile app inapps/shellwith--shell) and the shared packages for your modules underpackages/. A project without a website has noapps/web. See Project structure. apps/web/.env.local(andapps/api/.env.localwith--api,apps/mobile/.env.localwith--mobile,apps/shell/.env.localwith--shell), created from the examples and pointing at the local services you chose. Environment describes every variable.- With a website, a landing page named after your project at
/, and the dashboard at/dashboard. - An initialized Git repository and installed dependencies, unless you pass
--no-gitor--no-install. - The project's origin: CLI version, Starter repository, ref, commit, framework, and modules, recorded in
package.jsonandREADME.md. The CLI uses it later to change or upgrade the project. The project's ownversionstarts at0.1.0(CLI 0.41.0 or newer), and later changes keep it.
How is this guide?