---
title: "Reference"
url: "https://docs.chinaski.net/en/reference/"
type: "page"
language: "en"
description: "Look up reference facts: build.pl, cms.pl, environment variables, and the other reference documents, each verified against the source code."
updated: "2026-09-29"
generated: "Markdown rendition of the HTML page at url, built by Chinaski"
---

# Reference

Exhaustive reference material: the facts a developer or an operator needs without narrative. Six documents in this section, all built the same way: every fact verified against the source code as of the version they describe.

## In this section

- **[build.pl Reference](https://docs.chinaski.net/en/reference/cli-build/)**: the static builder: invocation guardrails, lifecycle (staging → checks → manifest → promote), full vs incremental rules, the promotion guard, exit codes, and the environment-variable table.
- **[cms.pl Reference](https://docs.chinaski.net/en/reference/cli-server/)**: the CMS application: startup requirements, the admin/API dispatch structure, scheduled tasks, and the helpers other tooling reuses.
- **[Environment Variables](https://docs.chinaski.net/en/reference/env-vars/)**: every `CHINASKI_*` variable, its default, and its effect, including the required trio (`CHINASKI_SECRET`, `CHINASKI_DB`, `CHINASKI_OUTPUT`) and the MCP/form-suite-specific sets.
- **[Settings Reference](https://docs.chinaski.net/en/reference/settings-reference/)**: every settings key by tab, with defaults, validation rules, and which ones trigger a rebuild (plus which cannot be reset).
- **[Schema Reference](https://docs.chinaski.net/en/reference/schema-reference/)**: every database table and column: what each stores, the constraints, and how the tables relate.
- **[Template Reference](https://docs.chinaski.net/en/reference/template-reference/)**: the variables each site/block template receives, the partial inventory, and the security rules.

## How to read these pages

The reference pages are **deliberately terse**: tables and rules, no tutorials. If you want the story behind a fact (why the promotion guard exists, why there is no plugin system), the Philosophy section covers that; the Authoring/Admin sections cover the workflows.

## Conventions

- Facts are stated as facts; flag-worthy edge cases sit inline in the relevant row.
- Where the same behavior has both a settings-field and an environment-variable control, both are listed with their precedence (env vars win).
- Numbers in the reference (limits, defaults, timeouts) are code-verified; when the docs and the code ever disagree, trust the code, and file a note so both can be corrected.

## Also in Reference

[build.pl Reference](https://docs.chinaski.net/en/reference/cli-build/)

Reference for builder/build.pl: the build lifecycle, environment variables, guardrails, and the switches for running the builder by hand.

[cms.pl Reference](https://docs.chinaski.net/en/reference/cli-server/)

Run the cms.pl daemon in development, production and offline: CHINASKI_SECRET, the systemd unit, and the command-line tools.

[Environment Variables](https://docs.chinaski.net/en/reference/env-vars/)

Reference for Chinaski's environment variables: where to set them, the required CHINASKI_SECRET, and the optional overrides.

[Settings Reference](https://docs.chinaski.net/en/reference/settings-reference/)

Every Chinaski setting by tab, from General to Workflow: what each key does, how saves work, and when a save triggers a rebuild.

[Schema Reference](https://docs.chinaski.net/en/reference/schema-reference/)

What the Chinaski database holds, how the single SQLite file works, and the soft delete and default behaviors admins should know.

[Template Reference](https://docs.chinaski.net/en/reference/template-reference/)

Reference for Chinaski theme templates: the required and optional .tt files, the variables they receive, and where custom themes live.
