Docs Reference
CLI reference
Every hettie command.
Run with npx hettie, or hettie inside a site folder. Add --json to versions and publish for output scripts can read.
Sites and publishing
| Command | What it does |
|---|---|
new <name> [--template t] | Sign in if needed, make the site, download the template and link the folder |
auth login | logout | status | Sign the CLI in or out |
sites | List your sites |
sites create <name> | Make a site and link this folder to it |
publish | Build, upload changed files, put the new version live |
versions | List published versions |
undo [version] | Put the previous (or a given) version back |
On your computer
| Command | What it does |
|---|---|
dev [--port N] [--host] | Run the site and editor locally |
build | Build the site as it runs live |
preview [--port N] | Build, then serve the real build locally |
mcp [--local] | Print the MCP address and how to connect Claude or Codex |
Content
| Command | What it does |
|---|---|
content | List, get, create, update, delete, publish and unpublish posts and pages |
media | List, upload and delete images and files |
menu | Read and change menus |
taxonomy | Tags, categories and their terms |
schema | Content types and fields |
search | Search the site |
login | logout | whoami | Sign in to a site for the content commands |
seed | export-seed | import | Load or save starter content |
types | doctor | Generate types for your code; check the setup |