Create a project
Everything you need to scaffold and run your first Grit app. Install the CLI once, pick what you're building, and copy the block — you'll be running a full-stack app in a few minutes.
One line, every platform. The script installs the latest release (or updates an existing install):
# macOS / Linux$curl -fsSL https://gritframework.dev/install.sh | sh# Windows (PowerShell)$iwr -useb https://gritframework.dev/install.ps1 | iex
Verify with grit --help. You'll also need a few tools installed — Go 1.24+, Node 22+, pnpm 9+, and Docker (skippable for desktop). New to any of them? The Prerequisites page has a short primer for each.
Pick what you're building. Each tab is a complete, copy-pasteable sequence — scaffold, set up the database, and run, all with grit.
The full stack — Go API, a Next.js web app, and the Filament-style admin panel. The best place to start.
$grit new myapp --triple # Go API + web + admin$cd myapp$docker compose up -d # Postgres, Redis, MinIO, Mailhog$pnpm install # frontend deps (one-time)$grit migrate # create database tables$grit seed # sample data + a demo admin login$grit start # run all three, Ctrl+C stops them
http://localhost:3000http://localhost:3001http://localhost:8080/docshttp://localhost:8080/studiogrit new myapp with no flags and the CLI walks you through architecture and frontend choices interactively. Add --vite to use TanStack Router (Vite) instead of Next.js.Register a user, log into the admin panel, and browse your database in GORM Studio. Then generate your first full-stack resource — model, API, admin page, types and hooks — in one command:
$grit generate resource Post --fields "title:string,body:text,published:bool"$grit migrate # create the new table
Refresh the admin panel and your Posts resource is there with a working table and form.
Frequently asked questions
Do I need Docker?
Which architecture should I pick?
Next.js or Vite?
--vite to scaffold a TanStack Router (Vite) frontend instead, e.g. grit new myapp --triple --vite.How do I add a database table?
grit generate resource <Name> --fields "…" then grit migrate. It creates the model, API, admin page, types and hooks in one go — see the Generated File Map.Something wrong, unclear, or missing on this page?
Open an issue — your feedback shapes Grit, and we fix docs fast.
