Quickstart & CLI

Go from zero to a live Next.js 15 website connected to SiteFabric SEO & Content APIs.

1. Authenticate the CLI

Choose either an ngrok-style personal auth token (generated in SiteFabric CRM under /admin/users → CLI Auth Tokens) or browser-based Client Auth:

Option A — Auth Token (config.yml)bash
npx sitefabric config add-authtoken sf_tok_your_token --api https://api.sitefabric.space
Option B — Browser Client Authbash
npx sitefabric login --api https://api.sitefabric.space --crm https://crm.sitefabric.space

2. Create a Standalone Website Project

The CLI registers (or links) the website in SiteFabric CRM, scaffolds a Next.js 15 project wired to @sitefabric/next, runs npm install, and validates origin-to-local sync automatically:

Scaffold & Syncbash
npx sitefabric create project "Acme Website" --domain acme.com

3. Run Locally, Sync Routes & Publish

Development & Release Workflowbash
cd acme
npm run dev

# After adding new routes in app/ or updating forms in sitefabric.json:
npx sitefabric <projectId> sync

# Build and publish a production release:
npx sitefabric <projectId> publish