For AI agents: the complete documentation index is available at /trace-index/llms.txt, the full documentation bundle is available at /trace-index/llms-full.txt, and this page is available as Markdown at /trace-index/reference/cli.md.

CLI Reference

Every command in the current binary, and what each one does:

The first trace-index --help screen establishes the complete prerequisite model and query boundary an Agent needs before choosing a command. Progressive disclosure starts after that point: noun and verb Help own exact arguments, defaults, limits, side effects, and the smallest command-specific example; bundled How-to pages own conditional workflows such as text search, shell analysis, configuration precedence, and physical export.

CommandWhat it does
sessionStore and read caller-defined Session data, independent of trace indexing
session metadataAssociate a Session with arbitrary caller-defined JSON (no business schema)
session metadata setReplace the whole JSON document; no merge, history or implicit index sync
session metadata getRead one whole document and its version; absence is found=false, JSON null is found=true
session metadata deleteRemove the association, retaining its version; does not delete trace or index data
docsRead documentation bundled with the current CLI
docs listList bundled documentation topics
docs getGet one documentation topic
docs searchSearch bundled documentation topics
configInitialize and inspect trace-index configuration
config initCreate a new configuration file without overwriting an existing one
config showShow resolved configuration values and their origins
config checkValidate configuration and configured root readiness without mutation
indexMaintain and inspect the current trace index
index syncIncrementally index supported Agent trace files or directories
index statusShow index coverage, parse status, and source freshness
schemaDescribe the stable public SQL query contract
schema listList public SQL relations and their descriptions
schema getGet one public SQL relation's schema
queryExecute one bounded read-only SQL statement against public relations
query runRun one bounded read-only SQL statement
recordInspect, verify, or export physical JSONL records
record inspectVerify and inspect one display-safe source-backed Record representation
record verifyVerify one Record against its original source bytes
record exportWrite one byte-exact verified Record to a file
assetExtract inline media referenced by Records
asset extractDecode one inline asset and write it to a file

Use trace-index --help, trace-index <noun> --help, and trace-index <noun> <verb> --help for version-matched concepts and command details.

docs, config, schema, and session metadata can operate without opening the index. index sync writes the trace index; session metadata set/delete write the independent caller-owned metadata store. Queries open the selected index and metadata store read-only. See Session Metadata for whole-document replacement and version checks.

The CLI intentionally has no shortcut command for a query that SQL already expresses. A new command must establish a safety or side-effect boundary, expose a capability SQL cannot reliably express, or be justified by repeated experiments.