Skip to content

CLI reference

Reach for this page when a script or CI job needs the exact verb, flag or exit code.

manni term exposes seven verbs. list, get, check, lint and write read a term set. fill reads it with the pages that name its concepts, and writes the pages it lacks. formats reads nothing and lists what the others can read and write. There is no default. A bare manni term prints usage and exits 2.

Terminal window
manni term [options] <command> [command options] [arguments]

Global options are accepted before the subcommand.

OptionDescription
-V, --versionPrint the manni version and exit.
-h, --helpPrint help for the program or a subcommand.

The terminology tool. Every command on this page lives under it. term accepts its own -V, --version, which reports the manni version, and -h, --help. Run with no subcommand, it prints its usage to stderr and exits 2.

Terminal window
manni term [options] <command> [command options] [arguments]

list, get, check, lint and write read the set the same way, with the same flags. They are the flags manni meta and manni cite take for the same jobs.

  • Paths are positional. Files, directories and globs, space-separated. Without them the run reads every configured collection. Every run that loads a config also reads the manifests term.manifests names.

  • A named .yaml, .yml or .json file is a manifest. It’s read exactly as a term.manifests entry is. Only a path you type counts: a directory or glob walk never picks those files up.

    Terminal window
    $ manni term list terms.yaml
    bifocal bifocal
    1 term
  • A .tbx file is a TBX termbase. It’s read when you name it, when a directory or glob walk finds it, and when term.manifests lists it. The root element says the version: <martif> is TBX v2, and <tbx> is TBX v3. Each entry is a term per language it holds, all with the entry’s id.

  • A .flglo file is a MadCap Flare glossary. It’s read when you name it, when a directory or glob walk finds it, and when term.manifests lists it. Each GlossaryEntry is a term, with the entry’s glossTerm as its id. Inside a Flare project, an entry the target excludes is not read.

  • A named .ttl or .jsonld file is a SKOS concept scheme. It’s read when you name it and when term.manifests lists it. A directory or glob walk never picks one up, because manni graph build writes Turtle too. Each skos:Concept is a term per language its skos:prefLabel holds, all with the id its IRI ends in. A JSON-LD file that names a remote @context is refused, because reading a termbase never fetches anything.

  • - reads stdin, alongside any named paths. It needs --as <format>, which names one of the metadata tool’s extractors, or tbx, skos or flare-glossary. The extractors are markdown, mdx, asciidoc, rst, html and xml. --as skos reads JSON-LD when the first character that isn’t whitespace is { or [, and Turtle otherwise.

  • Every file contributes references. A page’s concepts: and its graph.concepts are read whether or not the page holds a term. So is its graph: block’s label, broader, narrower and related-concepts.

  • No terms is an error. A run that reads files but finds no entry exits 2, unless --allow-empty or term.allowEmpty says an empty set is fine.

A term is a page declaring type: term, or an entry in a file that holds a list of terms. The terminology reference has the record, and Move and hand off a termbase has every construct that is read.

Reading a set prints three notices of its own on stderr. None moves the exit code:

manni: glossary.tbx:18: skipped a TBX entry with no term.
manni: pal.md:7: ignored designations item "progresive lens" on "progressive lens": it names no label, alt-label or hidden-label.
manni: vocab.ttl: skos:changeNote is not a term field, so 3 values were not read.

The first is a TBX language section that holds no <term>. The second is a designations item that names none of the entry’s labels. The third is a SKOS property no term field holds, said once per property per file.

List the resolved entries, one row per entry.

Terminal window
manni term list [paths...] [options]
ArgumentDescription
[paths...]Files, directories, or globs to read. Use - to read from stdin, with --as. Optional. Without paths the run covers every configured collection. See the shared input model.
OptionArgumentDefaultDescription
--as<format>n/aInput format for stdin. Required with -.
--ext<list>supported extensions, tbx and flgloComma-separated extensions kept when expanding directories and globs. Given once.
--exclude<glob>n/aGlob to exclude from directory and glob walks. Repeatable, one glob per occurrence.
--collection<name>every collectionRead one configured collection rather than every declared one. Repeatable, one name per occurrence. Cannot be combined with positional paths (exit 2).
--allow-emptyn/aoffTreat a missing path, no matched files or no terms as success rather than an error (exit 2). Wins over config allowEmpty:.
--no-gitignoren/aonRead files .gitignore covers as well. Wins over config respectGitignore:.
-c, --config<path>discoveredPath to a config file. The file must exist (exit 2).
--no-colorn/aoffDisable colored output. Color applies on a TTY only, and never under NO_COLOR.
-f, --format<pretty|json|csv>prettyOutput format. An unknown value is an error (exit 2).

pretty prints the id, the preferred label, and the alt-labels, then a count:

bifocal bifocal
corrective-lens corrective lens
progressive-lens progressive lens PAL, graduated lens
3 terms

A set in more than one language adds the language after the id. A concept has a row per language:

progressive-lens en progressive lens PAL
progressive-lens de Gleitsichtglas Gleitsichtbrille
bifocal en bifocal
bifocal de Bifokalglas
4 terms

csv prints a header and one row per entry. A list field joins its values with |. The last column is the entry’s language, empty when it names none:

id,label,alt-labels,abstract,language
corrective-lens,corrective lens,,,
progressive-lens,progressive lens,PAL|graduated lens,Lenses that correct presbyopia without a visible line.,

json prints { "terms": [...] }. Each entry carries id, language when the entry has one, and every field the record holds, spelled as the vocabulary spells it. That includes concept-entry, designations, tbx-elements and tbx-markup.

CodeMeaning
0The set was listed.
2Operational or usage error. See usage errors.

Show one entry, with the file and line it was read from.

Terminal window
manni term get <term> [paths...] [options]
ArgumentDescription
<term>The entry’s id, else its preferred label in any case, else one of its alt-labels in any case. When several entries share an alt-label, the first one read is shown.
[paths...]Files, directories, or globs to read, exactly as on list.
OptionArgumentDefaultDescription
--as<format>n/aInput format for stdin. Required with -.
--ext<list>supported extensionsComma-separated extensions kept when expanding directories and globs.
--exclude<glob>n/aGlob to exclude. Repeatable.
--collection<name>every collectionRead one configured collection. Repeatable.
--allow-emptyn/aoffTreat a missing path, no matched files or no terms as success.
--no-gitignoren/aonRead files .gitignore covers as well.
-c, --config<path>discoveredPath to a config file.
--no-colorn/aoffDisable colored output.
-f, --format<pretty|json>prettyOutput format. json prints the entry’s record, with id.
progressive lens docs/terms/progressive-lens.md:1
id progressive-lens
alt-labels PAL, graduated lens
hidden-labels no-line bifocal
broader corrective lens
abstract Lenses that correct presbyopia without a visible line.
definition Corrective lenses whose optical power increases continuously
from the top of the lens to the bottom, correcting presbyopia
without the visible boundary a bifocal carries.

A row shows each field the record holds. concept-entry lists its fields, and designations has a line per item. tbx-elements counts the items at each level, and other languages names the entry’s terms in other languages:

progressive lens glossary.tbx:15
id progressive-lens
language en
alt-labels PAL
hidden-labels no-line bifocal
definition Corrective lenses whose power increases continuously.
concept-entry subject-field: optics
designations progressive lens: part-of-speech noun, term-type fullForm
PAL: term-type acronym
no-line bifocal: administrative-status superseded
tbx-elements 1 in concept-entry
other languages de (Gleitsichtglas)

A count at the root reads 1 at the root, and one on a designation reads 1 on PAL. The key column widens only when a longer key is shown.

CodeMeaning
0The entry was found and printed.
2No entry matched, or an operational or usage error. The message names the set’s size and the nearest id or label.

Check the set and every reference into it. check reads records, never prose. It resolves each concepts: value against labels, ids and alt-labels, and resolves broader, narrower, related-terms and see against labels and ids. It reads each page’s graph: block into the hierarchy, and reports what does not line up. The twenty-two rules, their default severities and their messages are on the rules reference.

Terminal window
manni term check [paths...] [options]
ArgumentDescription
[paths...]Files, directories, or globs to read, exactly as on list.
OptionArgumentDefaultDescription
--as<format>n/aInput format for stdin. Required with -.
--ext<list>supported extensionsComma-separated extensions kept when expanding directories and globs.
--exclude<glob>n/aGlob to exclude. Repeatable.
--collection<name>every collectionRead one configured collection. Repeatable.
--allow-emptyn/aoffTreat a missing path, no matched files or no terms as success.
--no-gitignoren/aonRead files .gitignore covers as well.
-c, --config<path>discoveredPath to a config file.
--no-colorn/aoffDisable colored output.
-f, --format<pretty|json|github|sarif|junit>prettyOutput format. The shapes are below.
--baselinen/aoffCompare against .manni-term-baseline.json, or the file config baseline: names. When the file does not exist yet, record this run’s findings in it and exit 0. After that, fail only on findings the file does not hold. Takes no value.

pretty groups findings by file and line. Each row is the severity, the rule id and the message. The summary counts each severity:

docs/guides/fitting.md:3
warning manni:term/alt-label-reference concepts: "PAL" is an alt-label of "progressive lens", so name the label.
manni:term alt-label-reference: A page's concepts: names an entry by one of its alt-labels.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#alt-label-reference
error manni:term/undefined-term concepts: "trifocal" names no entry.
Did you mean "bifocal"? Correct the value, or run manni term fill to add the term.
manni:term undefined-term: A page's concepts: names no entry, by label, id or alt-label.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#undefined-term
docs/terms/bifocal.md:1
notice manni:term/unused-term no page's concepts: names this term.
Name it in the concepts: of a page that uses it.
manni:term unused-term: No page's concepts: names the entry, or an entry in another language with its id.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#unused-term
docs/terms/corrective-lens.md:5
warning manni:term/asymmetric-hierarchy narrower: omits "bifocal", which lists this entry as broader.
Add it to narrower, or remove this entry from its broader.
manni:term asymmetric-hierarchy: A names B as broader, and B omits A from narrower, or the reverse.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#asymmetric-hierarchy
1 error, 2 warnings, 1 notice in 3 terms

Each message ends with what to do. Two dim lines follow it: the rule with when it fires, and a Guide link to its section of the rules reference.

A clean run prints one line:

✓ 2 terms, 2 references, no findings

json prints { findings, summary }. Each finding carries rule, ruleId, severity, message, file and line, plus the entry’s id when the finding sits on an entry, and the field that breaks the rule when one does. summary holds terms, references, errors, warnings and notices, and baseline when one was read or written:

{
"findings": [
{
"rule": "unused-term",
"ruleId": "manni:term/unused-term",
"severity": "notice",
"message": "no page's concepts: names this term. Name it in the concepts: of a page that uses it.",
"guidance": {
"id": "manni:term",
"rule": "unused-term",
"description": "No page's concepts: names the entry, or an entry in another language with its id.",
"guide": "https://hawkeyexl.github.io/manni/term/reference/rules/#unused-term"
},
"file": "docs/terms/bifocal.md",
"line": 1,
"id": "bifocal"
}
],
"summary": {
"terms": 3,
"references": 2,
"errors": 0,
"warnings": 0,
"notices": 1
}
}

Each finding also carries guidance, the rule behind it: its id, rule, description and guide link. A lint finding’s id is vale, and its description and guide are the Vale rule’s own, or null.

github prints one workflow command per finding. The colon in the rule id is escaped, because a workflow command reads : as a separator:

::warning file=docs/guides/fitting.md,line=3,title=manni%3Aterm/alt-label-reference::concepts: "PAL" is an alt-label of "progressive lens", so name the label.%0Amanni:term alt-label-reference: A page's concepts: names an entry by one of its alt-labels.%0AGuide: https://hawkeyexl.github.io/manni/term/reference/rules/#alt-label-reference
::error file=docs/guides/fitting.md,line=3,title=manni%3Aterm/undefined-term::concepts: "trifocal" names no entry. Did you mean "bifocal"? Correct the value, or run manni term fill to add the term.%0Amanni:term undefined-term: A page's concepts: names no entry, by label, id or alt-label.%0AGuide: https://hawkeyexl.github.io/manni/term/reference/rules/#undefined-term

sarif and junit carry the same findings under the rule id manni:term/<rule>, in the envelope, paths and fingerprints of the metadata tool’s renderers. Each message is the finding’s own. A SARIF rule’s shortDescription is the rule’s line from the rules reference, and its helpUri is the rule’s section of that page:

{
"id": "manni:term/undefined-term",
"shortDescription": {
"text": "A page's concepts: names no entry, by label, id or alt-label."
},
"fullDescription": {
"text": "A page's concepts: names no entry, by label, id or alt-label."
},
"helpUri": "https://hawkeyexl.github.io/manni/term/reference/rules/#undefined-term"
}

A SARIF result’s message is the github annotation’s, with the guidance lines joined by a line break, and the same guidance is in properties.guidance. A JUnit failure’s message leaves the guidance lines out.

<testcase name="docs/guides/fitting.md" classname="manni.term">
<failure type="manni:term/undefined-term" message="concepts: &quot;trifocal&quot; names no entry. Did you mean &quot;bifocal&quot;? Correct the value, or run manni term fill to add the term. (line 3)"/>
</testcase>

JUnit testcases carry the classname manni.term, one per file read. A lint rule, manni:term/prose/<Style.Rule>, is Vale’s, so its SARIF description names the Vale rule. Its fullDescription and helpUri come from Vale’s first alert for that rule, when Vale gives them.

--baseline is one flag for both halves of the ratchet.

Terminal window
$ manni term check --baseline
✓ 1 finding recorded in .manni-term-baseline.json
$ manni term check --baseline
✓ 2 terms, 3 references, no findings, 1 baselined

A configured baseline: is compared on every run, without the flag. When that file does not exist and the flag is absent, the run stops with exit 2 and names the command that records one.

CodeMeaning
0No error-severity finding the baseline does not already hold. Warnings and notices never move the exit code. A run that records a baseline exits 0.
1At least one unbaselined error-severity finding.
2Operational or usage error. See usage errors.

Run Vale over the definitions. Each entry’s definition, abstract and scope-note is written to a temporary file named <id>.<field>.md, and Vale runs once over all of them. Vale reads its own configuration, or the file tools.vale.config names. A [*.definition.md] section in that configuration applies to definitions alone.

Terminal window
manni term lint [paths...] [options]
ArgumentDescription
[paths...]Files, directories, or globs to read, exactly as on list.
OptionArgumentDefaultDescription
--as<format>n/aInput format for stdin. Required with -.
--ext<list>supported extensionsComma-separated extensions kept when expanding directories and globs.
--exclude<glob>n/aGlob to exclude. Repeatable.
--collection<name>every collectionRead one configured collection. Repeatable.
--allow-emptyn/aoffTreat a missing path, no matched files or no terms as success.
--no-gitignoren/aonRead files .gitignore covers as well.
-c, --config<path>discoveredPath to a config file.
--no-colorn/aoffDisable colored output.
-f, --format<pretty|json|github|sarif|junit>prettyOutput format. The same shapes as check.

A finding sits on the source line of the field it came from. The rule id is manni:term/prose/<Style.Rule>, keeping Vale’s own rule name. Vale’s suggestion is reported as a notice:

docs/terms/kubernetes.md:7
warning manni:term/prose/House.Simply Drop 'Simply'.
vale House.Simply
docs/terms/kubernetes.md:11
warning manni:term/prose/House.Simply Drop 'just'.
vale House.Simply
docs/terms/progressive-lens.md:9
error manni:term/prose/House.Length Keep a sentence under 20 words.
vale House.Length
1 error, 2 warnings in 3 terms

A literal | block keeps its lines, so a finding on its second line lands on that source line. A folded >- block is one line once parsed, so its findings sit on the field’s first line. In json a finding also carries tool: "vale", check (Vale’s rule name), toolSeverity (Vale’s level) and field.

CodeMeaning
0No error-severity alert.
1At least one error-severity alert.
2Vale is not on PATH, Vale could not run, or an operational or usage error.

Write the set back, or render it elsewhere.

Terminal window
manni term write [paths...] [options]

With no -f, each file’s entries go back through the reader that read them. Only an entry whose record differs from its file is rewritten, so a set that has not changed leaves every file byte-identical and prints Nothing to write.

With -f <format> and -o <path>, the whole set is rendered into the path. The path decides the shape. A trailing / or an existing directory gets one entry per file, and anything else gets every entry in one file. A field the target cannot hold is dropped, and the report says which fields, on how many entries. Move and hand off a termbase has every shape and what each keeps.

-f tbx writes TBX v2, and -f tbx3 writes TBX v3. When every entry came from one TBX file and -f names its version, the file’s header and unchanged entries are copied byte for byte. Read the termbase back has what each export keeps.

-f skos writes a SKOS concept scheme in JSON-LD, and -f skos-ttl writes the same scheme in Turtle. Each id is one concept, carrying every language’s labels. A SKOS file is not rewritten in place, so write with no -f refuses one.

-f vale writes a Vale style named Terms. Without -o it asks Vale where its styles directory is. Keep the terms and the docs in step has the files it writes.

ArgumentDescription
[paths...]Files, directories, or globs to read, exactly as on list. An entry read from stdin has nowhere to be written back to, so - needs -f and -o.
OptionArgumentDefaultDescription
--as<format>n/aInput format for stdin. Required with -.
--ext<list>supported extensionsComma-separated extensions kept when expanding directories and globs.
--exclude<glob>n/aGlob to exclude. Repeatable.
--collection<name>every collectionRead one configured collection. Repeatable.
--allow-emptyn/aoffTreat a missing path, no matched files or no terms as success.
--no-gitignoren/aonRead files .gitignore covers as well.
-c, --config<path>discoveredPath to a config file.
--no-colorn/aoffDisable colored output.
-f, --format<format>each entry’s own, in placeWhat to render: markdown, mdx, asciidoc, rst, html, dita, docbook, tbx, tbx3, skos, skos-ttl, csv, json or vale.
-o, --out<path>see belowThe file or directory to render into. A trailing / means a directory.
--checkn/aoffWrite nothing. Exit 1 when the target differs from the render.
--dry-runn/aoffWrite nothing. Print what would change, then the dropped and skipped lines a write prints, and exit 0.

-o depends on -f:

-f-o when omitted
noneeach entry’s own source, in place
markdown, mdx, asciidoc, rst, html, dita, docbookrequired
tbx, tbx3, skos, skos-ttl, csv, jsonrequired, and a file
valethe styles directory vale ls-config reports

A render names the target and the number of entries written. A render into one file per entry says so. Dropped fields follow on an indented line. An entry the target construct could not read back is left out, and named on the line after:

Wrote 3 terms to docs/terms/, one file each
Wrote 3 terms to build/glossary.xml
dropped from a DocBook glossary: abstract on 1 term, hidden-labels on 1, scope-note on 1
Wrote 2 terms to glossary.md
dropped from a definition list: abstract on 1 term, hidden-labels on 1, related-terms on 1, scope-note on 1
skipped 1 term a definition list cannot read without a definition: varifocal

A Markdown or MDX definition list, an AsciiDoc [glossary] list, a .. glossary:: and an HTML <dl> skip an entry with no definition, such as a see redirect.

A set in more than one language adds up to three lines. A one-file document writes the first term’s language, names the terms it left out, and counts only the terms it wrote. A render that leaves a TBX file’s header behind names the file. A TBX render that joins two languages’ differing concept-entry keeps the first and says where:

Wrote 2 terms to build/glossary.md
dropped from a definition list: hidden-labels on 1 term, concept-entry on 1, designations on 1
dropped from a definition list: the header of glossary.tbx
skipped 2 terms in another language than en: progressive-lens (de), bifocal (de)
Wrote 4 terms to build/terms.tbx
kept the first language's value where languages differ: concept-entry.subject-field on 1 concept

A render into one file per entry puts each page under a directory named for its language, docs/terms/de/progressive-lens.md, when the set holds more than one.

-f vale lists each style file and what it holds. Casing.yml, Lowercase.yml and SentenceStart.yml count the labels and alt-labels they swap. When no section of Vale’s configuration uses the Terms style, a notice on stderr names the line to add. When the file has no section with BasedOnStyles, the notice names a section to add instead:

Wrote 3 terms to .vale/styles/Terms
Casing.yml 2 labels
Lowercase.yml 3 labels
Deprecated.yml 2 swaps
PAL.yml 1 acronym
notice: no section of .vale.ini uses the Terms style. Add it to BasedOnStyles:
[*.md]
BasedOnStyles = Vale, Terms
notice: .vale.ini has no section with BasedOnStyles. Add one that uses the Terms style:
[*.md]
BasedOnStyles = Terms

--check and --dry-run print each file that differs, with what would happen to it: would change, would be created or would be removed. When nothing differs a render prints that the target is up to date, and an in-place run prints Nothing to write. --dry-run then prints the dropped and skipped lines a write would:

.vale/styles/Terms/Deprecated.yml would change
.vale/styles/Terms is up to date
glossary.md would be created
dropped from a definition list: abstract on 1 term, hidden-labels on 1, related-terms on 1, scope-note on 1
skipped 1 term a definition list cannot read without a definition: varifocal
CodeMeaning
0The set was written, or --dry-run printed what would change, or --check found the target up to date.
1--check found a file that differs from the render.
2Operational or usage error. See usage errors.
Terminal window
manni term write # each entry back to its source
manni term write docs/glossary.xml -f markdown -o docs/terms/
manni term write docs/terms/ -f markdown -o glossary.md
manni term write -f tbx -o build/terms.tbx
manni term write glossary.tbx -f tbx3 -o build/glossary.tbx # TBX v2 to v3
manni term write glossary.tbx -f markdown -o docs/terms/ # a page per term and language
manni term write vocab.ttl -f markdown -o docs/terms/ # a SKOS scheme as pages
manni term write -f skos-ttl -o build/terms.ttl # the set as Turtle
manni term write -f vale # into Vale's styles directory
manni term write -f vale --check # keep the style in step

Create a term page for each concept pages name and the termbase lacks, and draft a definition for each entry that has none.

Terminal window
manni term fill [paths...] [options]

A concept is named by a page’s concepts:, its graph.concepts, a section’s concepts, and the values of a graph: block’s broader, narrower and related-concepts. A block’s own label is its page naming itself, so it never asks for a page. A name that matches a term’s label, id or alt-label, ignoring case, already has a page. fill never overwrites a value a person wrote, and never replaces a file that is already there.

A new page carries what the pages say about it. Its alt-labels come from the graph: blocks labelled with the concept. Its broader, narrower and related-terms are the union of those blocks’ edges. Its language is the naming page’s, when that page has one. A block’s definition is carried over as written, with no model involved:

docs/glossary/retry.md
---
title: Retry
type: term
id: retry
language: en
label: Retry
definition: Sending a failed request again after it timed out or returned 5xx.
alt-labels:
- Retries
broader:
- Errors
related-terms:
- Backoff
meta-provenance:
- generated-by: claude-sonnet-5-5
fields:
- /definition
confidence:
/definition: 0.86
---

When a provider resolves, a model drafts each missing definition. A draft under the confidence threshold leaves a new page as a stub and an existing entry unchanged. A draft that clears it is written and recorded in the page’s meta-provenance, under the model’s name. With no provider, a new page is a stub with no definition. --offline sends nothing off this machine. It runs llama-cpp as --local does, and only with a model already downloaded, so with none on disk new pages are stubs too. Only a term page can be filled in place. An entry in a manifest, a TBX file or a glossary construct is reported as skipped.

--crawl also sends each page’s body to the model, in chunks of --chunk-chars. The model proposes the terms the page uses, each with alt-labels, a definition from context and a confidence. Each keywords: value joins them. Candidates merge across pages by label, ignoring case. One gets a page when it appears on at least term.fill.crawl.minPages pages and its confidence clears the threshold. A keyword no model proposed gets a drafted definition, which the same threshold decides.

New pages go in the first of these that is set:

  1. -o, --out.
  2. term.fill.out.
  3. The one directory every existing term page shares.

When none applies, fill refuses. A page is named <id><ext>, where the id is the slug of the label. The extension is the one most term pages in that directory use. When there are none, it is the most common page extension in the run, and .md when that finds nothing either. Both counts take only .md, .markdown, .mdx, .adoc, .asciidoc, .rst, .html, .htm and .dita, the extensions fill writes a term page in.

ArgumentDescription
[paths...]Files, directories, or globs to read, exactly as on list. With none, the configured collections and term.manifests are read.
OptionArgumentDefaultDescription
--as<format>n/aInput format for stdin. Required with -.
--ext<list>supported extensionsComma-separated extensions kept when expanding directories and globs.
--exclude<glob>n/aGlob to exclude. Repeatable.
--collection<name>every collectionRead one configured collection. Repeatable.
--allow-emptyn/aoffTreat a missing path or no matched files as success. A run with no terms is always allowed.
--no-gitignoren/aonRead files .gitignore covers as well.
-c, --config<path>discoveredPath to a config file.
--no-colorn/aoffDisable colored output.
-o, --out<dir>term.fill.out, else detectedThe directory new term pages go in.
--crawln/aoffAlso ask the model for the terms page bodies and keywords: use. Needs a model, and under --offline one already downloaded.
--offlinen/aoffNo network egress. Inference runs on this machine with llama-cpp, and only with a model already downloaded. A configured hosted provider is set aside with a note, and a hosted --provider is a usage error. Nothing is downloaded. With no model on disk, new pages are stubs and existing entries are left alone.
--provider<name>term.provider, else providers:, else autoauto, anthropic, openai, claude-cli or llama-cpp.
--model<model>term.model, else providers:The model. Needs a named provider, from the flag or config.
--localn/aoffRun inference on this machine with llama-cpp, over any configured provider.
--confidence<n>term.fill.confidenceThreshold, else 0.7The confidence, from 0 to 1, a definition or a crawl candidate must reach.
--max-turns<n>term.fill.maxTurns, else unboundedStop after this many inference calls. A cached answer costs none.
--chunk-chars<n>12000Characters of a page sent per call under --crawl.
--no-cachen/aonAsk the model again rather than reuse an answer from term.fill.cacheDir.
--dry-runn/aoffWrite nothing. Print what would happen.
-f, --format<pretty|json>prettyOutput format.

One line per entry names what happened, the file, the label and the definition. A summary line follows:

created docs/glossary/retry.md Retry stub, no definition
created docs/glossary/backoff.md Backoff definition from graph: block
filled docs/glossary/jitter.md Jitter definition drafted (0.91)
skipped docs/glossary/quorum.md Quorum confidence 0.41 is under 0.7
2 terms created, 1 filled, 2 left without a definition, 1 skipped

The first word is created, filled, skipped or exists. Under --dry-run a write reads would create or would fill, and the summary says would be created. A new page whose draft is under the threshold reads stub, confidence 0.41 is under 0.7. An entry the turn budget did not reach reads turn budget, and a run picks it up again once the budget allows.

-f json prints the same report:

{
"entries": [
{
"action": "create",
"file": "docs/glossary/idempotency-key.md",
"id": "idempotency-key",
"label": "Idempotency key",
"language": "en",
"source": "crawl",
"from": ["docs/api/retries.md:41", "docs/api/payments.md:12"],
"definition": { "status": "drafted", "confidence": 0.88, "model": "anthropic/claude-sonnet-5-5" }
}
],
"summary": { "created": 1, "filled": 0, "skipped": 0, "withoutDefinition": 0, "turns": 14 }
}
FieldValues
actioncreate, fill, skip or exists.
sourcemetadata for a name a page’s metadata holds, crawl for a term the crawl found.
fromEach place that named it, as file:line, or file when the line is unknown.
definition.statusdrafted, carried, missing or below-threshold.
definition.confidence, definition.modelPresent when a model answered.
reasonPresent on a skip that a confidence does not explain: turn budget, or not a term page.
summary.withoutDefinitionPages created, and entries skipped, that have no definition after the run.
summary.turnsThe inference calls the run made.

When no provider resolves, a warning goes to stderr and the run goes on with stubs. A provider named in config or on the command line that cannot run says why first:

manni: the configured provider "anthropic" could not run: Anthropic provider needs ANTHROPIC_API_KEY set (or choose another provider)
manni: no model provider is configured, so new terms have no definition; pass --provider or --local.

Under --offline with no model on disk, the warning says so:

manni: no model is available offline, so new terms have no definition; download one first with --local, or drop --offline.
CodeMeaning
0Every page that could be written was written, or --dry-run printed what would be.
2Operational or usage error. See usage errors.
Terminal window
manni term fill --offline --dry-run # what is missing, nothing sent
manni term fill --offline # local drafts, or stubs with no model on disk
manni term fill # pages, and drafted definitions
manni term fill --crawl -o docs/glossary/ # terms no metadata named
manni term fill --dry-run -f json # for a script
manni term fill docs/ -o docs/glossary/ --crawl --provider anthropic --model claude-sonnet-5-5 \
--confidence 0.8 --max-turns 40 --chunk-chars 8000 --no-cache --dry-run -f json

List the constructs read and written, per format. The listing is built from the registered readers and writers.

Terminal window
manni term formats [options]
OptionArgumentDefaultDescription
-f, --format<pretty|json>prettyOutput format. json prints { "formats": [...] }, each row with format, construct, label, read and write.
markdown page read write
markdown definition list read write
mdx page read write
mdx definition list read write
asciidoc page read write
asciidoc [glossary] list read write
rst page read write
rst .. glossary:: read write
html page read write
html dl read write
html dfn read
xml page read write
xml DITA glossentry read write
xml DITA glossgroup read write
xml DocBook glossary read write
manifest manifest read write
tbx TBX entry read write
skos SKOS concept read write
flare-glossary Flare glossary read
tbx TBX v2 write
tbx3 TBX v3 write
skos JSON-LD write
skos-ttl Turtle write
csv write
json write
vale style write
CodeMeaning
0The listing was printed.
2An unknown --format.

Every usage error goes to stderr, prefixed manni:, and exits 2. Nothing is written.

Invocationstderr
A run that finds no termsmanni: no terms found. A term is a page declaring type: term, or an entry in a file declaring type: term-set.
No paths and no collectionsmanni: No files to read. Pass paths/globs, or declare a collection under `collections:` in manni.config.yaml.
term check - with no --asmanni: reading stdin needs --as <format>.
term check nowhere/manni: File not found: "nowhere/". Check the path. Named paths resolve from the working directory.
term check docs --collection sitemanni: --collection selects a configured collection; it cannot be combined with paths.
term check --collection nopemanni: no collection named "nope" in manni.config.yaml. Configured: site.
term check -c missing.yamlmanni: Config file not found: "missing.yaml".
term check -f xmlmanni: unknown format "xml". Expected pretty | json | github | sarif | junit.
term check, config baseline: names a missing filemanni: Baseline "term-baseline.json" not found. Record one with `manni term check --baseline`.
term get missingmanni: no term "missing". 2 terms.
term get progressive-lenzmanni: no term "progressive-lenz". 2 terms; did you mean "progressive-lens"?
term write -f tmx -o xmanni: unknown format "tmx". Expected markdown | mdx | asciidoc | rst | html | dita | docbook | tbx | tbx3 | skos | skos-ttl | csv | json | vale.
term write -f tbxmanni: -f tbx needs -o <path>.
term write -f tbx -o build/tbx/manni: -f tbx writes one file, not a directory. Pass -o <file>.
term write -f tbx3manni: -f tbx3 needs -o <path>.
term write -f tbx3 -o out/manni: -f tbx3 writes one file, not a directory. Pass -o <file>.
term list notes.tbx, whose root element is <glossary>manni: notes.tbx: is not TBX: its root element is <glossary>, not <martif> or <tbx>.
term list broken.tbx, which is not well-formedmanni: broken.tbx: could not be read as tbx: Invalid XML: Opening and ending tag mismatch: "term" != "tig"
term list notes.flglo, whose root element is <glossary>manni: notes.flglo: is not a Flare glossary: its root element is <glossary>, not <CatapultGlossary>.
term list broken.flglo, which is not well-formedmanni: broken.flglo: could not be read as a Flare glossary.
term write Glossary.flglomanni: Glossary.flglo: a Flare glossary cannot be written in place. Pass -f <format> -o <path>.
term write -f markdown -o docs/terms/, one id twice in one languagemanni: two terms have the id "api" in de, and a directory holds one file per id in each language.
term write -f markdown -o docs/terms/, one id twice in a set of one languagemanni: two terms have the id "api", and a directory holds one file per id.
term write -f markdown -o docs/terms/, a language with a path charactermanni: the language "../de" cannot name a directory. Give the term a language without path characters.
term write -o out.mdmanni: -o needs -f <format>.
term write -f json -o x.json --check --dry-runmanni: --check and --dry-run cannot be combined.
term write - --as markdown or --as tbxmanni: <stdin> has nowhere to write back to. Pass -f <format> -o <path>.
term write over a file holding <dfn> termsmanni: glossary.html: a dfn cannot be written in place. Pass -f <format> -o <path>.
term write vocab.ttlmanni: vocab.ttl is SKOS and is not rewritten in place; render it with -f skos or -f skos-ttl.
term list vocab.jsonld, which names a remote @contextmanni: vocab.jsonld: names the remote @context https://example.com/skos-context.jsonld, which is not fetched. Inline the context to read it.
term list broken.ttl, a string left openmanni: broken.ttl: could not be read as SKOS: Unexpected ""lens" on line 2.
term write -f vale, no Vale on PATHmanni: vale is not on PATH. Install Vale, or pass -o <styles directory>.
term write -f vale, Vale finds no configmanni: Vale found no config file. Set tools.vale.config in manni.config.yaml, or pass -o <styles directory>.
term write -f vale, a file without the marker in Terms/manni: styles/Terms/Casing.yml was not written by manni. Move it, or pass -o <styles directory>.
term write -f vale, an acronym named like a rule filemanni: the acronym "CASING" would replace Terms/Casing.yml. Rename the alt-label.
term write -f vale, two acronyms that share a file namemanni: the acronyms "R&D" and "R+D" would both write Terms/R-D.yml. Rename one.
term lint, no Vale on PATHmanni: vale is not on PATH. Install Vale to lint definitions.
term fill --crawl --offline, no model on diskmanni: --crawl needs a model, and none is available offline; drop --offline, or download a local model first.
term fill --offline --provider openaimanni: --offline and --provider openai contradict each other: --offline sends nothing off this machine, so only llama-cpp with a model already downloaded can run. Drop one of them.
term fill --crawl, no provider resolvesmanni: --crawl needs a model, and no provider is configured; pass --provider or set providers:.
term fill, no directory for new pagesmanni: new term pages need a directory; pass -o or set term.fill.out.
term fill --confidence 2manni: --confidence must be a number between 0 and 1, got 2.
term fill --provider nopemanni: Unknown provider "nope". Available: anthropic, openai, claude-cli, llama-cpp, auto.

The config refusals are on the configuration reference.