Reference / 04
CLI Reference
Run commands through the zole binary (or zolekit alias):
pnpm exec zole <command> [options]
Pass --json to any inspection or mutation command to emit structured JSON output for scripts and CI pipelines.
Build and validation commands
| Command | Purpose |
|---|---|
zole init |
Interactive project initializer creating zole.config.ts and collection starter files |
zole lint |
Validate all schemas, cross-collection relations, and i18n coverage (--strict, --translations) |
zole build |
Compile validated content to typed TypeScript modules, .d.ts declarations, and .zole/search-index.json |
zole watch |
Watch content files and rebuild incrementally on change |
zole status |
Print collection counts, locale coverage, and staleness summary |
zole doctor |
Verify Node version, config discovery, schema loads, output freshness, and search index health |
Authoring and CRUD commands
| Command | Purpose |
|---|---|
zole list |
List entries in a collection (--collection, --locale, --json) |
zole view |
Read a single entry's metadata and body (--collection, --slug, --locale, --raw, --json) |
zole create |
Create a schema-validated document (--meta, --body, --body-file, --ext, --force) |
zole update |
Patch frontmatter fields or body while preserving unrelated formatting (--meta, --body, --body-file) |
zole delete |
Remove a content file with --dry-run preview or execution |
zole schema |
Inspect introspected Zod field names, types, optionality, and defaults |
Search, localization, and agent commands
| Command | Purpose |
|---|---|
zole search |
Query the compiled Orama full-text index (zole search "<query>") |
zole export |
Export localization strings (json / xliff) via runExport |
zole skill |
Print or install agent integration instructions for working with a Zole repo |
zole mcp |
Start a stdio MCP server exposing collection tools (pass --allow-write to permit mutations) |