Installation
Get up and running with cmssy in under 5 minutes.
Prerequisites
Before you begin, make sure you have the following installed on your machine:
- Node.js 18+ — we recommend using nvm to manage versions
- pnpm — our recommended package manager (npm and yarn also work)
- Git — for version control and publishing
Install the CLI
Install the cmssy CLI globally to access all commands from your terminal:
Create a Project
Scaffold a new project with the init command. This creates the directory structure, installs dependencies, and sets up Tailwind CSS v4:
Project Structure
After running init, your project will look like this:
my-blocks/
├── src/
│ └── blocks/
│ └── hero/
│ ├── index.tsx # Block component
│ ├── schema.ts # Field definitions
│ └── defaults.ts # Default content
├── cmssy.config.ts # Project configuration
├── tailwind.config.ts # Tailwind CSS config
├── tsconfig.json
└── package.jsonEach block lives in its own folder inside src/blocks/. The CLI auto-discovers them based on this convention.
Configure API Access
Connect your local project to your cmssy workspace. You'll need your API token from the workspace settings dashboard:
Start Development
Launch the development server with hot-reload and live preview:
This starts a local server on http://localhost:3000 where you can:
- Browse all blocks in your project
- See a live preview with real-time hot reload
- Edit block content in an interactive editor
- Test responsive layouts across breakpoints
Publish Your Blocks
When you're ready to use your blocks in the cmssy page builder, publish them:
This validates, bundles, and uploads your blocks to the cmssy platform. They'll immediately appear in the block picker for your workspace.
Updating the CLI
To update to the latest version of the CLI:
Troubleshooting
Common issues
- "Command not found: cmssy" — make sure the global npm/pnpm bin directory is in your
PATH - "Authentication failed" — re-run
cmssy configureand verify your API token is correct - "Port 3000 already in use" — stop any other dev servers or use
cmssy dev --port 3001 - Node.js version error — upgrade to Node.js 18+ using
nvm install 18
Next Steps
Now that you're set up, explore the following guides:
- Quickstart — build and publish your first block end-to-end
- Blocks — understand block anatomy, schemas and field types
- Templates — compose blocks into full-page templates