Docs / Getting Started

Open documentation actions

Installation

Set up your environment and scaffold your first Better Fullstack project.

Better Fullstack runs through the create-better-fullstack package. You do not need to install it globally; run it with your package manager, answer the prompts, and the CLI writes the selected project.

Prerequisites

  • Node.js 20 or newer for the CLI.
  • A terminal.
  • Git only if you want the CLI to initialize a repository.
  • Ecosystem-specific tools only for the project you generate.
EcosystemExtra tooling
TypeScriptnpm, pnpm, Yarn, or Bun
React NativeExpo-compatible iOS/Android tooling when running on a simulator or device
RustRust toolchain and Cargo
PythonPython and uv
GoGo toolchain
JavaJava 21
ElixirElixir, Erlang/OTP, and PostgreSQL for database-backed Phoenix flows

Run the CLI

npm create better-fullstack@latest

Add a project name to start the wizard:

npm create better-fullstack@latest my-app

The wizard asks for the ecosystem, stack options, optional addons, Git, and dependency installation.

Use explicit flags

Explicit flags skip the prompts they cover. This is the best form for scripts, docs, generated commands, and reproducible bug reports.

npm create better-fullstack@latest my-app -- \  --ecosystem typescript \  --frontend tanstack-router \  --backend hono \  --runtime node \  --database sqlite \  --orm drizzle \  --api orpc \  --auth better-auth \  --db-setup none \  --ai-docs none \  --version-channel stable \  --no-install \  --no-git

With npm create, Better Fullstack flags go after --. The rendered pnpm, Bun, and Yarn tabs remove that npm-only separator.

Use --ai-docs none when you do not want generated AI instruction files. Use --no-install when you want to inspect files before dependency installation.

Templates

Templates are shorthand for common stacks:

TemplateStack
t3Next.js, tRPC, Prisma, PostgreSQL, Better Auth
mernMongoDB, Express, React Router, Node.js
pernPostgreSQL, Express, TanStack Router, Node.js
uniwindExpo + Uniwind, mobile-only
noneNo shorthand template
npm create better-fullstack@latest my-app -- --template t3

Validate before writing files

Use --dry-run to preview generated files without writing a project:

npm create better-fullstack@latest my-app -- --dry-run

Use --verify when you want the CLI to run generated checks after scaffolding. It does not start dev servers.

Next