Reference

Commands

The typeglish bin runs the whole loop — check, score, test, build, deploy — and prints the language reference.

Commands

The typeglish bin — author → check → score → test → build → deploy.

CommandWhat it does
typeglish check <file...> [--strict] [--json]validate; exits 1 when any file has a blocking error
typeglish build <file...> [build options]compile passing files to artifacts + record the manifest
typeglish score <file> [--min B|80] [--json]the deterministic TG score; exits 1 below --min
typeglish test <file...> [test options]run the file's $TEST suite — --dry is offline (validate + coverage);
typeglish resolve <file> [--vars '<json>']apply conditionals, print the resolved SOURCE (a .tg —
typeglish referenceprint the language reference (agents: read this first)
typeglish mcpserve check/build/score/explain/reference over MCP stdio

Flags

Flags grouped by the command they modify.

FlagWhat it does
--out-dir <dir>artifact directory (default: .typeglish/dist) · build
--vars '<json>'input bag — conditionals compile away; omitted = template build (unbound switches · build
--bundlealso write <artifact>.agent.json — the $CONFIG / $TOOL agent bundle · build
--dryfully offline: validate the suite + report rule coverage, zero model calls · test
--no-judgedeterministic asserts only — skip the judge on prose expectations (still generates) · test
--model <id>the model that answers each case (and judges, unless --no-judge) · test
--strictescalate every IMPORTANT finding (correctness defects) to a blocking error · global
--jsonmachine-readable output on stdout (agents: parse this, not the text) · global
--varsa JSON object of input values, e.g. '{"tier":"premium"}' · global
--minscore floor — a grade (A–F) or a number, the CI gate; for test, the 0..1 rubric pass floor · global
--explain <code>what a diagnostic code means (e.g. logic/contradiction) · standalone
--versionprint the compiler version · standalone
--helpthis text · standalone