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.
manni term [options] <command> [command options] [arguments]Global options
Section titled “Global options”Global options are accepted before the subcommand.
| Option | Description |
|---|---|
-V, --version | Print the manni version and exit. |
-h, --help | Print 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.
manni term [options] <command> [command options] [arguments]The shared input model
Section titled “The shared input model”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.manifestsnames. -
A named
.yaml,.ymlor.jsonfile is a manifest. It’s read exactly as aterm.manifestsentry is. Only a path you type counts: a directory or glob walk never picks those files up.Terminal window $ manni term list terms.yamlbifocal bifocal1 term -
A
.tbxfile is a TBX termbase. It’s read when you name it, when a directory or glob walk finds it, and whenterm.manifestslists 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
.flglofile is a MadCap Flare glossary. It’s read when you name it, when a directory or glob walk finds it, and whenterm.manifestslists it. EachGlossaryEntryis a term, with the entry’sglossTermas its id. Inside a Flare project, an entry the target excludes is not read. -
A named
.ttlor.jsonldfile is a SKOS concept scheme. It’s read when you name it and whenterm.manifestslists it. A directory or glob walk never picks one up, becausemanni graph buildwrites Turtle too. Eachskos:Conceptis a term per language itsskos:prefLabelholds, all with the id its IRI ends in. A JSON-LD file that names a remote@contextis 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, ortbx,skosorflare-glossary. The extractors aremarkdown,mdx,asciidoc,rst,htmlandxml.--as skosreads JSON-LD when the first character that isn’t whitespace is{or[, and Turtle otherwise. -
Every file contributes references. A page’s
concepts:and itsgraph.conceptsare read whether or not the page holds a term. So is itsgraph:block’slabel,broader,narrowerandrelated-concepts. -
No terms is an error. A run that reads files but finds no entry exits
2, unless--allow-emptyorterm.allowEmptysays 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.
term list
Section titled “term list”List the resolved entries, one row per entry.
manni term list [paths...] [options]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[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. |
Options
Section titled “Options”| Option | Argument | Default | Description |
|---|---|---|---|
--as | <format> | n/a | Input format for stdin. Required with -. |
--ext | <list> | supported extensions, tbx and flglo | Comma-separated extensions kept when expanding directories and globs. Given once. |
--exclude | <glob> | n/a | Glob to exclude from directory and glob walks. Repeatable, one glob per occurrence. |
--collection | <name> | every collection | Read one configured collection rather than every declared one. Repeatable, one name per occurrence. Cannot be combined with positional paths (exit 2). |
--allow-empty | n/a | off | Treat a missing path, no matched files or no terms as success rather than an error (exit 2). Wins over config allowEmpty:. |
--no-gitignore | n/a | on | Read files .gitignore covers as well. Wins over config respectGitignore:. |
-c, --config | <path> | discovered | Path to a config file. The file must exist (exit 2). |
--no-color | n/a | off | Disable colored output. Color applies on a TTY only, and never under NO_COLOR. |
-f, --format | <pretty|json|csv> | pretty | Output format. An unknown value is an error (exit 2). |
Output
Section titled “Output”pretty prints the id, the preferred label, and the alt-labels, then a count:
bifocal bifocalcorrective-lens corrective lensprogressive-lens progressive lens PAL, graduated lens3 termsA set in more than one language adds the language after the id. A concept has a row per language:
progressive-lens en progressive lens PALprogressive-lens de Gleitsichtglas Gleitsichtbrillebifocal en bifocalbifocal de Bifokalglas4 termscsv 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,languagecorrective-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.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | The set was listed. |
2 | Operational or usage error. See usage errors. |
term get
Section titled “term get”Show one entry, with the file and line it was read from.
manni term get <term> [paths...] [options]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
<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. |
Options
Section titled “Options”| Option | Argument | Default | Description |
|---|---|---|---|
--as | <format> | n/a | Input format for stdin. Required with -. |
--ext | <list> | supported extensions | Comma-separated extensions kept when expanding directories and globs. |
--exclude | <glob> | n/a | Glob to exclude. Repeatable. |
--collection | <name> | every collection | Read one configured collection. Repeatable. |
--allow-empty | n/a | off | Treat a missing path, no matched files or no terms as success. |
--no-gitignore | n/a | on | Read files .gitignore covers as well. |
-c, --config | <path> | discovered | Path to a config file. |
--no-color | n/a | off | Disable colored output. |
-f, --format | <pretty|json> | pretty | Output format. json prints the entry’s record, with id. |
Output
Section titled “Output”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.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | The entry was found and printed. |
2 | No entry matched, or an operational or usage error. The message names the set’s size and the nearest id or label. |
term check
Section titled “term check”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.
manni term check [paths...] [options]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[paths...] | Files, directories, or globs to read, exactly as on list. |
Options
Section titled “Options”| Option | Argument | Default | Description |
|---|---|---|---|
--as | <format> | n/a | Input format for stdin. Required with -. |
--ext | <list> | supported extensions | Comma-separated extensions kept when expanding directories and globs. |
--exclude | <glob> | n/a | Glob to exclude. Repeatable. |
--collection | <name> | every collection | Read one configured collection. Repeatable. |
--allow-empty | n/a | off | Treat a missing path, no matched files or no terms as success. |
--no-gitignore | n/a | on | Read files .gitignore covers as well. |
-c, --config | <path> | discovered | Path to a config file. |
--no-color | n/a | off | Disable colored output. |
-f, --format | <pretty|json|github|sarif|junit> | pretty | Output format. The shapes are below. |
--baseline | n/a | off | Compare 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. |
Output
Section titled “Output”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-termdocs/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-termdocs/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 termsEach 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 findingsjson 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-termsarif 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: "trifocal" names no entry. Did you mean "bifocal"? 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.
Baselines
Section titled “Baselines”--baseline is one flag for both halves of the ratchet.
$ manni term check --baseline✓ 1 finding recorded in .manni-term-baseline.json$ manni term check --baseline✓ 2 terms, 3 references, no findings, 1 baselinedA 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.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | No 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. |
1 | At least one unbaselined error-severity finding. |
2 | Operational or usage error. See usage errors. |
term lint
Section titled “term lint”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.
manni term lint [paths...] [options]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[paths...] | Files, directories, or globs to read, exactly as on list. |
Options
Section titled “Options”| Option | Argument | Default | Description |
|---|---|---|---|
--as | <format> | n/a | Input format for stdin. Required with -. |
--ext | <list> | supported extensions | Comma-separated extensions kept when expanding directories and globs. |
--exclude | <glob> | n/a | Glob to exclude. Repeatable. |
--collection | <name> | every collection | Read one configured collection. Repeatable. |
--allow-empty | n/a | off | Treat a missing path, no matched files or no terms as success. |
--no-gitignore | n/a | on | Read files .gitignore covers as well. |
-c, --config | <path> | discovered | Path to a config file. |
--no-color | n/a | off | Disable colored output. |
-f, --format | <pretty|json|github|sarif|junit> | pretty | Output format. The same shapes as check. |
Output
Section titled “Output”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.Simplydocs/terms/kubernetes.md:11 warning manni:term/prose/House.Simply Drop 'just'. vale House.Simplydocs/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 termsA 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.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | No error-severity alert. |
1 | At least one error-severity alert. |
2 | Vale is not on PATH, Vale could not run, or an operational or usage error. |
term write
Section titled “term write”Write the set back, or render it elsewhere.
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.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[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. |
Options
Section titled “Options”| Option | Argument | Default | Description |
|---|---|---|---|
--as | <format> | n/a | Input format for stdin. Required with -. |
--ext | <list> | supported extensions | Comma-separated extensions kept when expanding directories and globs. |
--exclude | <glob> | n/a | Glob to exclude. Repeatable. |
--collection | <name> | every collection | Read one configured collection. Repeatable. |
--allow-empty | n/a | off | Treat a missing path, no matched files or no terms as success. |
--no-gitignore | n/a | on | Read files .gitignore covers as well. |
-c, --config | <path> | discovered | Path to a config file. |
--no-color | n/a | off | Disable colored output. |
-f, --format | <format> | each entry’s own, in place | What to render: markdown, mdx, asciidoc, rst, html, dita, docbook, tbx, tbx3, skos, skos-ttl, csv, json or vale. |
-o, --out | <path> | see below | The file or directory to render into. A trailing / means a directory. |
--check | n/a | off | Write nothing. Exit 1 when the target differs from the render. |
--dry-run | n/a | off | Write 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 |
|---|---|
| none | each entry’s own source, in place |
markdown, mdx, asciidoc, rst, html, dita, docbook | required |
tbx, tbx3, skos, skos-ttl, csv, json | required, and a file |
vale | the styles directory vale ls-config reports |
Output
Section titled “Output”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 eachWrote 3 terms to build/glossary.xml dropped from a DocBook glossary: abstract on 1 term, hidden-labels on 1, scope-note on 1Wrote 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: varifocalA 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 conceptA 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 acronymnotice: no section of .vale.ini uses the Terms style. Add it to BasedOnStyles: [*.md] BasedOnStyles = Vale, Termsnotice: .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 dateglossary.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: varifocalExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | The 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. |
2 | Operational or usage error. See usage errors. |
Examples
Section titled “Examples”manni term write # each entry back to its sourcemanni term write docs/glossary.xml -f markdown -o docs/terms/manni term write docs/terms/ -f markdown -o glossary.mdmanni term write -f tbx -o build/terms.tbxmanni term write glossary.tbx -f tbx3 -o build/glossary.tbx # TBX v2 to v3manni term write glossary.tbx -f markdown -o docs/terms/ # a page per term and languagemanni term write vocab.ttl -f markdown -o docs/terms/ # a SKOS scheme as pagesmanni term write -f skos-ttl -o build/terms.ttl # the set as Turtlemanni term write -f vale # into Vale's styles directorymanni term write -f vale --check # keep the style in stepterm fill
Section titled “term fill”Create a term page for each concept pages name and the termbase lacks, and draft a definition for each entry that has none.
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:
---title: Retrytype: termid: retrylanguage: enlabel: Retrydefinition: Sending a failed request again after it timed out or returned 5xx.alt-labels: - Retriesbroader: - Errorsrelated-terms: - Backoffmeta-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:
-o, --out.term.fill.out.- 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.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[paths...] | Files, directories, or globs to read, exactly as on list. With none, the configured collections and term.manifests are read. |
Options
Section titled “Options”| Option | Argument | Default | Description |
|---|---|---|---|
--as | <format> | n/a | Input format for stdin. Required with -. |
--ext | <list> | supported extensions | Comma-separated extensions kept when expanding directories and globs. |
--exclude | <glob> | n/a | Glob to exclude. Repeatable. |
--collection | <name> | every collection | Read one configured collection. Repeatable. |
--allow-empty | n/a | off | Treat a missing path or no matched files as success. A run with no terms is always allowed. |
--no-gitignore | n/a | on | Read files .gitignore covers as well. |
-c, --config | <path> | discovered | Path to a config file. |
--no-color | n/a | off | Disable colored output. |
-o, --out | <dir> | term.fill.out, else detected | The directory new term pages go in. |
--crawl | n/a | off | Also ask the model for the terms page bodies and keywords: use. Needs a model, and under --offline one already downloaded. |
--offline | n/a | off | No 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 auto | auto, anthropic, openai, claude-cli or llama-cpp. |
--model | <model> | term.model, else providers: | The model. Needs a named provider, from the flag or config. |
--local | n/a | off | Run inference on this machine with llama-cpp, over any configured provider. |
--confidence | <n> | term.fill.confidenceThreshold, else 0.7 | The confidence, from 0 to 1, a definition or a crawl candidate must reach. |
--max-turns | <n> | term.fill.maxTurns, else unbounded | Stop after this many inference calls. A cached answer costs none. |
--chunk-chars | <n> | 12000 | Characters of a page sent per call under --crawl. |
--no-cache | n/a | on | Ask the model again rather than reuse an answer from term.fill.cacheDir. |
--dry-run | n/a | off | Write nothing. Print what would happen. |
-f, --format | <pretty|json> | pretty | Output format. |
Output
Section titled “Output”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 definitioncreated docs/glossary/backoff.md Backoff definition from graph: blockfilled docs/glossary/jitter.md Jitter definition drafted (0.91)skipped docs/glossary/quorum.md Quorum confidence 0.41 is under 0.72 terms created, 1 filled, 2 left without a definition, 1 skippedThe 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 }}| Field | Values |
|---|---|
action | create, fill, skip or exists. |
source | metadata for a name a page’s metadata holds, crawl for a term the crawl found. |
from | Each place that named it, as file:line, or file when the line is unknown. |
definition.status | drafted, carried, missing or below-threshold. |
definition.confidence, definition.model | Present when a model answered. |
reason | Present on a skip that a confidence does not explain: turn budget, or not a term page. |
summary.withoutDefinition | Pages created, and entries skipped, that have no definition after the run. |
summary.turns | The 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.Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Every page that could be written was written, or --dry-run printed what would be. |
2 | Operational or usage error. See usage errors. |
Examples
Section titled “Examples”manni term fill --offline --dry-run # what is missing, nothing sentmanni term fill --offline # local drafts, or stubs with no model on diskmanni term fill # pages, and drafted definitionsmanni term fill --crawl -o docs/glossary/ # terms no metadata namedmanni term fill --dry-run -f json # for a scriptmanni 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 jsonterm formats
Section titled “term formats”List the constructs read and written, per format. The listing is built from the registered readers and writers.
manni term formats [options]Options
Section titled “Options”| Option | Argument | Default | Description |
|---|---|---|---|
-f, --format | <pretty|json> | pretty | Output format. json prints { "formats": [...] }, each row with format, construct, label, read and write. |
Output
Section titled “Output”markdown page read writemarkdown definition list read writemdx page read writemdx definition list read writeasciidoc page read writeasciidoc [glossary] list read writerst page read writerst .. glossary:: read writehtml page read writehtml dl read writehtml dfn readxml page read writexml DITA glossentry read writexml DITA glossgroup read writexml DocBook glossary read writemanifest manifest read writetbx TBX entry read writeskos SKOS concept read writeflare-glossary Flare glossary readtbx TBX v2 writetbx3 TBX v3 writeskos JSON-LD writeskos-ttl Turtle writecsv writejson writevale style writeExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | The listing was printed. |
2 | An unknown --format. |
Usage errors
Section titled “Usage errors”Every usage error goes to stderr, prefixed manni:, and exits 2. Nothing is
written.
| Invocation | stderr |
|---|---|
| A run that finds no terms | manni: 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 collections | manni: No files to read. Pass paths/globs, or declare a collection under `collections:` in manni.config.yaml. |
term check - with no --as | manni: 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 site | manni: --collection selects a configured collection; it cannot be combined with paths. |
term check --collection nope | manni: no collection named "nope" in manni.config.yaml. Configured: site. |
term check -c missing.yaml | manni: Config file not found: "missing.yaml". |
term check -f xml | manni: unknown format "xml". Expected pretty | json | github | sarif | junit. |
term check, config baseline: names a missing file | manni: Baseline "term-baseline.json" not found. Record one with `manni term check --baseline`. |
term get missing | manni: no term "missing". 2 terms. |
term get progressive-lenz | manni: no term "progressive-lenz". 2 terms; did you mean "progressive-lens"? |
term write -f tmx -o x | manni: unknown format "tmx". Expected markdown | mdx | asciidoc | rst | html | dita | docbook | tbx | tbx3 | skos | skos-ttl | csv | json | vale. |
term write -f tbx | manni: -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 tbx3 | manni: -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-formed | manni: 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-formed | manni: broken.flglo: could not be read as a Flare glossary. |
term write Glossary.flglo | manni: 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 language | manni: 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 language | manni: 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 character | manni: the language "../de" cannot name a directory. Give the term a language without path characters. |
term write -o out.md | manni: -o needs -f <format>. |
term write -f json -o x.json --check --dry-run | manni: --check and --dry-run cannot be combined. |
term write - --as markdown or --as tbx | manni: <stdin> has nowhere to write back to. Pass -f <format> -o <path>. |
term write over a file holding <dfn> terms | manni: glossary.html: a dfn cannot be written in place. Pass -f <format> -o <path>. |
term write vocab.ttl | manni: 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 @context | manni: 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 open | manni: broken.ttl: could not be read as SKOS: Unexpected ""lens" on line 2. |
term write -f vale, no Vale on PATH | manni: vale is not on PATH. Install Vale, or pass -o <styles directory>. |
term write -f vale, Vale finds no config | manni: 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 file | manni: the acronym "CASING" would replace Terms/Casing.yml. Rename the alt-label. |
term write -f vale, two acronyms that share a file name | manni: the acronyms "R&D" and "R+D" would both write Terms/R-D.yml. Rename one. |
term lint, no Vale on PATH | manni: vale is not on PATH. Install Vale to lint definitions. |
term fill --crawl --offline, no model on disk | manni: --crawl needs a model, and none is available offline; drop --offline, or download a local model first. |
term fill --offline --provider openai | manni: --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 resolves | manni: --crawl needs a model, and no provider is configured; pass --provider or set providers:. |
term fill, no directory for new pages | manni: new term pages need a directory; pass -o or set term.fill.out. |
term fill --confidence 2 | manni: --confidence must be a number between 0 and 1, got 2. |
term fill --provider nope | manni: Unknown provider "nope". Available: anthropic, openai, claude-cli, llama-cpp, auto. |
The config refusals are on the configuration reference.