Agent Lexicon CLI reference
| Task | Command |
|---|---|
| Initialize a repository | alex init |
| Discover candidate terms | alex scan |
| Open the local review UI | alex review |
| Publish accepted decisions | alex publish |
| Generate an agent vocabulary brief | alex context lexicon/lexicon.yaml |
| Resolve terminology in text | alex resolve <lexicon> “text” |
| Gate a tool call | alex guard <lexicon> “text” —tool <name> |
| Lint a working diff | alex lint-diff —stdin |
| Check terminology between refs | alex check-merge —base main —head HEAD |
| Validate and lint a lexicon | alex validate lexicon/lexicon.yaml —lint |
| Serve MCP tools | alex mcp serve —root . —lexicon lexicon/lexicon.yaml |
| Export review provenance | alex workspace export-decision-log —root . |
For exhaustive flags and release-specific behavior, use the installed CLI help:
alex --helpalex <command> --helpThe repository remains the canonical source for exhaustive API details: