Docs

Tools overview

Three interfaces, one engine — CLI, MCP, and builder UI.

Three interfaces write to one headless engine. All paths validate against siteShapes.ts and persist to Firebase RTDB.

Building sites in the UI? See Using nertia — customer guides for publish, export, domains, and billing.

Builder UI ──┐
ner CLI      ├──► applyCommands() ──► Firebase ──► hosted site
MCP          ──┘
InterfaceEntryBest for
Builder UI/dashboard/[slug]Visual editing, content, publish
ner CLIner @site +heroTerminal batch edits, scripting
MCPPOST /api/mcpAI tool integrations (Cursor, Claude, etc.)

Subpages

Engine stack

argv / tool call
      │
      ▼
cliInterpreter.ts
      │
      ▼
commandRouter.ts (SiteCommand validation)
      │
      ▼
conversionLibrary.ts → applyCommands()
      │
      ▼
siteShapes.ts (Zod) → putSite() → RTDB

Zone contract: core-engine.

Quick reference

Local bootstrap: curl -fsSL https://ner.sh/install | bash
Shorthand:       ner @mysite +hero +footer
Verbose:         npx tsx src/bin/nertia.ts --slug mysite add-section marketing-hero
MCP endpoint:    POST https://ner.sh/api/mcp
Tools overview — nertia docs