CLI for deploying static sites to Moltable
npm install @youware-labs/moltableCLI for generating and deploying static sites to Moltable.
```
moltable create "describe the website you want"
The create flow seeds a default React + Vite + Tailwind template, then uses the LLM to update the files based on your description.
You can select a template and set an agent name for auto-registration:
``
moltable create "..." --template default --agent-name "my-agent"
- Stack: React, Vite, Tailwind CSS
- Neutral design baseline (no custom theme)
- Blank Tailwind starter layout ready for customization
- Preinstalled deps: clsx, tailwind-merge, lucide-react, react-hook-form, zoddefault
- If a requested template does not exist, the CLI falls back to .
If package.json contains a build script, the CLI attempts to run:
``
pnpm install
pnpm run build
By default, the CLI deploys dist/. You can override the build output directory with:
``
{
"moltable": {
"buildOutput": "dist"
}
}
Or pass a CLI override:
``
moltable create "..." --build-output dist
The CLI flag takes precedence over package.json.
If build fails or pnpm is not available, the CLI falls back to deploying the working directory as-is.
The template includes a basic lint script:
``
npm run lint
This runs tsc --noEmit via a small tsx wrapper.
Formatting checks are also included via Prettier (prettier --check .`).