CLI reference¶
Successful commands print JSON. Classified failures print a stable error code;
--json-errors emits the error as JSON.
Project lifecycle¶
--config is optional on every command. When omitted it defaults to
<repo>/.failure-memory/config.toml, the file init writes, so after init
most commands need only --repo. An explicit --config is read as given.
init¶
failure-memory init [--repo .] [--config .failure-memory/config.toml] \
[--repository-id <id>] [--node-namespace <namespace>] [--force]
doctor¶
migrate-check¶
Reports legacy-layout conditions without moving canonical data.
generate-wrapper¶
Registry and compiler¶
add¶
Choose exactly one source:
failure-memory add --interactive [--config <path>] --global-vault <path> [--repo .]
failure-memory add --from-json lesson.json [--config <path>] \
--global-vault <path> [--repo .]
validate¶
compile¶
check¶
ci-check¶
Refresh¶
failure-memory refresh <action> \
[--config <path>] \
--global-vault <path> \
[--repo .] \
[--phase 1] \
[--generated-at <timezone-aware-ISO8601>] \
[--force-lock]
Actions: preflight, status, lessons, mirror, graph, all, clean.
clean removes only paths marked disposable by project configuration.