Skip to content

Getting started

themarch/dev is an opinionated, AI-first dev environment that you can drop on top of any TypeScript project — or use to scaffold a new one.

Terminal window
# Try without installing
npx @themarch/cli init my-app
# Or install globally
pnpm add -g @themarch/cli
Terminal window
themarch init my-app --template saas-b2b
cd my-app
cp .env.example .env
docker compose up -d # Postgres + Redis
pnpm db:migrate
pnpm dev

In ≈ 30 minutes you have a multi-tenant SaaS B2B app with auth, RLS, and end-to-end type safety.

Terminal window
cd my-existing-repo
themarch enhance .

This detects your stack and (with your confirmation) adds:

  • .cursorrules — variant matched to your stack profile
  • CLAUDE.md — workflow + pitfalls
  • .themarch/skills/ — pointer to the catalog
  • .cursor/mcp.json — project-local MCP servers

Run it twice; the second run is a no-op (idempotent).

Terminal window
themarch add-feature items

This chains the canonical pipeline: add-tableadd-rlsadd-zod-schemaadd-trpc-routeradd-pageadd-test-e2e. The default is --dry-run so you preview before applying. Pass --apply to write changes.