# CLI reference

> Every dss command, generated from the CLI itself. In a site run them as `pnpm dss <command>`.

| Command | Usage |
|---|---|
| `dss new` | new <slug> [--name --preset vitrine\|landing\|blank --industry --mood a,b --seed --url --target --modules a,b --copy\|--link\|--core <url>] |
| `dss dev` | dev [--port 3000 --https --no-aimkit]: next dev + AimKit bridge (element picker) |
| `dss doctor` | doctor [--quick --strict]: manifest, DNA, theme files, pages, placeholders, types, lint |
| `dss dna` | dna show \| dna roll [--industry --mood a,b --archetype --mode --hue --fonts --seed --dry] |
| `dss theme` | theme: regenerate theme.css, fonts.ts, theme.ts from design.dna.ts |
| `dss g` | g page <route> [--name --label --sections a,b --no-nav --force] \| g section <name> [--page /route] |
| `dss add` | add list \| add section <id[/variant]> [--page /route --force] \| add scene <id>: copy registry code into the site |
| `dss module` | module list \| add <slug> [--config k=v --page /route] \| remove <slug>: forms, legal, analytics, blog... |
| `dss db` | db init [--driver d1\|libsql\|postgres]: Drizzle schema, client, config, migrations scripts |
| `dss deploy` | deploy [--prod] [--target cloudflare\|vercel\|docker] [--force]: noindexed preview by default, production on --prod |
| `dss sites` | sites: every site produced on this machine and its last deployment (~/.dss/sites.json) |
| `dss brain` | brain init \| query "<topic>" \| status \| log <op> <site> "<summary>": the factory memory shared by all sites |
| `dss mcp` | mcp list \| add <motionsites\|60fps\|context7\|playwright\|gbrain> \| remove <name>: opt-in MCP servers in .mcp.json |
| `dss aimkit` | aimkit setup \| token \| init: install the Chrome extension once, pair it, print the token (vendored AimKit) |
| `dss upgrade` | upgrade [--core <tag>]: newer core, aligned Next/OpenNext/wrangler versions, AI layer and theme refreshed |
| `dss factory` | factory run <briefs-dir> [--out dir] [--agent --max-turns 120]: one site per brief, optionally built by Claude headless |
| `dss release-core` | release-core <patch\|minor\|major> [--dry]: version, changelog, commit and tag (core repository) |
| `dss catalog` | catalog: regenerate core/CATALOG.md and _ai/digest.md (core repository) |
| `dss cost` | cost [--print --out file]: tokens and API-equivalent price of the site per step, model and session (site.cost.md) |
| `dss docs` | docs: regenerate docs/cli.md, docs/llms.txt and docs/llms-full.txt (core repository) |
| `dss sync-ai` | sync-ai: copy core/_ai into .claude/ and rebuild the routing index |
