Scaffold a new project and have a CMS-powered site running in under 5 minutes.
Create a new project
# Scaffold a new project
npm create @webhouse/cms my-site
# Or with the CLI directly
npx @webhouse/cms-cli init my-siteThis generates:
my-site/
cms.config.ts # Collection + field definitions
package.json # Dependencies
.env # AI provider keys
content/
posts/
hello-world.json # Example documentInstall and run
cd my-site
npm install
npx cms dev # Start dev server + admin UIThe dev server starts at http://localhost:3000 and the admin UI opens automatically.
Create content
Open the admin UI and create your first document. It will be saved as a JSON file in content/posts/.
Every document follows this structure:
{
"slug": "my-first-post",
"status": "published",
"data": {
"title": "My First Post",
"content": "Hello, world!"
},
"id": "unique-id",
"_fieldMeta": {}
}Build for production
npx cms build # Build static site
npx cms serve # Preview the build locallyThe build pipeline generates:
- HTML pages for all published documents
sitemap.xmlfor search enginesrobots.txtwith AI crawler rulesllms.txtandllms-full.txtfor AI discoveryfeed.xmlRSS feed- Per-page
.mdfiles for AI consumption
Next steps
- Configuration Reference — define your own collections
- Field Types — explore all available field types
- Storage Adapters — choose where content is stored
- Deployment — deploy to Vercel, Fly.io, or Netlify