Skip to content

CLI Reference

CommandDescription
lexiconStart or resume a chat session (same as lexicon chat)
lexicon chatAI-guided architecture design session
lexicon initInitialize lexicon in a repository
lexicon verifyRun full verification pipeline
lexicon verify --healthRun verification with repo health checks
lexicon authManage AI provider authentication
lexicon tuiLaunch the terminal UI dashboard
CommandDescription
lexicon auth login [provider]Authenticate with an AI provider
lexicon auth statusShow current authentication status
lexicon auth refresh [provider]Refresh authentication tokens
lexicon auth set-key <provider> <key>Store an API key directly
lexicon auth logout [provider]Clear stored credentials

All other capabilities are available through chat action directives within lexicon chat. The AI uses these automatically, or you can request them directly:

DirectiveEffect
CREATE_CONTRACTCreate a new contract TOML file
UPDATE_CONTRACTUpdate an existing contract
CREATE_GATEAdd a verification gate
CREATE_CONFORMANCEGenerate conformance tests for a contract
CREATE_BEHAVIORGenerate behavior scenarios for a contract
CREATE_PROPERTY_TESTSGenerate property-based tests (proptest)
CREATE_FUZZ_TARGETGenerate a fuzz test harness (libfuzzer)
CREATE_EDGE_CASESGenerate targeted edge case tests
INFER_CONTRACTInfer a contract from public API source code
COVERAGE_REPORTShow contract test coverage gaps
API_SCANScan public API and show drift from baseline
API_BASELINESave current API as baseline for drift detection
GENERATE_PROMPTCompile implementation prompts from session or on-disk contracts
PROMPT_LISTList all generated implementation prompts
PROMPT_STATUSCheck which prompts are stale
REGENERATE_PROMPTSRegenerate all stale implementation prompts
SYNC_CLAUDESync CLAUDE.md with current repo state
DOCTORCheck repo health
RUN_VERIFYRun verification to check current state