v1.0.0

site-dev

CLI tool for building and managing site pages, partials, and CSS.

Install

# Download
curl -fsSL https://site-dev-tool.pages.dev/site-dev.cjs -o site-dev.cjs
chmod +x site-dev.cjs

# Or with wget
wget -q https://site-dev-tool.pages.dev/site-dev.cjs

# Make sure you have Node.js 18+
node site-dev.cjs --help

Setup

# Create .env in your working directory
echo 'CMS_BASE_URL=https://your-cms.pages.dev' > .env
echo 'CMS_API_KEY=your-api-key' >> .env

Commands

node site-dev.cjs list [search]
List all sites or search by keyword
node site-dev.cjs create <siteId> [--domain=... --lang=... --theme=...]
Scaffold new site locally + register in CMS
node site-dev.cjs pull <siteId>
Download site pages, partials, config, CSS from CMS
node site-dev.cjs dev <siteId> [--port=4321]
Start local dev server with LiveReload
node site-dev.cjs push <siteId>
Push local changes to CMS

Workflow

node site-dev.cjs list                    # find your site
node site-dev.cjs pull aiball.world       # download to sites/aiball.world/
node site-dev.cjs dev aiball.world        # http://localhost:4321
# edit pages/*.html, partials/*.html, css/custom.css...
node site-dev.cjs push aiball.world       # push changes to CMS

Download

site-dev.cjs (single file, ~1.7 MB, Node.js 18+)

API Docs

Full OpenAPI spec and agent skills are available at your CMS instance:

GET /api/openapi.json    # OpenAPI 3.0 spec
GET /api/skills          # Agent skill catalog
GET /api/skills/{id}     # Individual skill guide