11# RelayX CLI Help
22
3- RelayX keeps standard ` -h ` output for every command and adds curated help topics
4- for workflows, examples, exports, and safety boundaries.
3+ RelayX keeps standard ` -h ` output for every command and adds registry-backed
4+ curated help topics for workflows, examples, exports, OPSEC boundaries,
5+ completion, and troubleshooting. The CommandSpec registry is the single source
6+ for grouped command help, short-option documentation, shell completion, and
7+ quality-gate drift checks.
58
69For a complete end-to-end offline walkthrough, use
710[ ` docs/TUTORIAL.md ` ] ( TUTORIAL.md ) with the fixtures in
@@ -13,11 +16,17 @@ Authorized AD/IIS/AD CS/MSSQL integration-test expectations are documented in
1316
1417``` bash
1518relayx help
19+ relayx help getting-started
1620relayx help commands
1721relayx help workflows
1822relayx help exports
1923relayx help short-options
2024relayx help safety
25+ relayx help calibration
26+ relayx help execution
27+ relayx help enterprise
28+ relayx help troubleshooting
29+ relayx help completion
2130relayx help scan
2231relayx help run
2332relayx help schema
@@ -34,19 +43,100 @@ relayx help export -f json
3443
3544` -q ` is an alias for ` --no-banner ` , and ` -V ` is an alias for ` --version ` .
3645
46+ Command-specific curated help uses a consistent operator format:
47+
48+ ``` text
49+ What it does
50+ When to use
51+ Required inputs
52+ Safety notes
53+ Examples
54+ Short options
55+ Output formats and contracts
56+ Common mistakes
57+ Next steps
58+ ```
59+
3760## Command Groups
3861
39- - Assessment: ` scan ` , ` assess ` , ` summary ` , ` matrix ` , ` sources ` , ` routes ` ,
40- ` paths ` , ` rank ` , ` explain `
41- - Analysis: ` calculus ` , ` controls ` , ` fixes ` , ` plan ` , ` evidence-report ` ,
42- ` calibrate ` , ` compare-baseline ` , ` lab-matrix ` , ` lab-corpus ` , ` lab-verify ` ,
43- ` lab-provenance ` , ` lab-stability ` , ` lab-diff ` , ` lab-profile `
44- - Validation: ` validate ` , ` source-check ` , ` source-plan ` , ` run `
62+ - Assessment: ` scan ` , ` assess ` , ` summary ` , ` matrix ` , ` sources ` , ` paths ` ,
63+ ` rank ` , ` explain `
64+ - Evidence: ` calculus ` , ` controls ` , ` fixes ` , ` plan ` , ` evidence-report `
65+ - Calibration: ` calibrate ` , ` compare-baseline ` , ` lab-matrix ` , ` lab-corpus ` ,
66+ ` lab-verify ` , ` lab-provenance ` , ` lab-stability ` , ` lab-diff ` , ` lab-index ` ,
67+ ` lab-profile `
68+ - Route/Pivot: ` routes ` , ` source-check ` , ` source-plan `
69+ - Validation: ` validate `
70+ - Controlled Execution: ` modules ` , ` module-plan ` , ` run `
4571- Enterprise: ` profiles ` , ` report ` , ` export ` , ` bundle ` , ` diff ` ,
46- ` simulate-fixes ` , ` quality-gate `
47- - Modules: ` modules ` , ` module-plan `
48- - Contracts: ` schema `
49- - Policy: ` opsec `
72+ ` simulate-fixes `
73+ - Admin: ` help ` , ` completion ` , ` console ` , ` opsec ` , ` schema ` , ` quality-gate `
74+
75+ ## Operator Console
76+
77+ ` relayx console ` provides a local, single-process operator shell for repeated
78+ work on the same result, path, OPSEC policy, and scope. It is inspired by
79+ mature operator consoles, but it is not a C2 runtime: there is no server-client
80+ split, no listener start, no pivot-session operation, no source-side trigger
81+ execution, and no live relay adapter registration.
82+
83+ ``` bash
84+ relayx console
85+ relayx console --result examples/tutorial/sample-result.json --path-id PX-0001 --opsec-policy strict
86+ relayx console --script console.txt
87+ ```
88+
89+ The prompt reflects context:
90+
91+ ``` text
92+ relayx>
93+ relayx[result:sample-result.json policy:standard]>
94+ relayx[result:sample-result.json path:PX-0001 policy:strict scope:set]>
95+ ```
96+
97+ Supported console commands:
98+
99+ ``` text
100+ use result <file> Select a RelayX result and clear the current path
101+ use path <id> Select a path such as PX-0001
102+ set opsec-policy <policy> Set the policy used by validate/run shortcuts
103+ set scope <scope> Set scope text or a scope file for validate/run
104+ context Show current result, path, policy, and scope
105+ show summary Run summary with the selected result
106+ show paths Run paths with the selected result
107+ show matrix Run matrix with the selected result
108+ show sources Run sources with the selected result
109+ explain [query] Explain a query or the selected path
110+ validate [args...] Run validate with context-filled result/path/policy
111+ run [args...] Run controlled execution with context-filled inputs
112+ export [args...] Run export with context-filled result
113+ bundle [args...] Run bundle with context-filled result
114+ help [topic] Render curated RelayX help
115+ back Clear path first, then result
116+ exit Leave the console
117+ ```
118+
119+ Console shortcuts call the same CLI handlers and preserve the same guardrails.
120+ Confirmed validation and execution still require explicit confirmation,
121+ operator, reason, audit log, and any required scope. Script mode returns exit
122+ code ` 2 ` on the first failed console command, which makes it suitable for
123+ runbook smoke tests.
124+
125+ ## Shell Completion
126+
127+ ` relayx completion bash|zsh|fish ` prints shell completion generated from the
128+ CommandSpec registry. Completion covers commands, curated help topics, common
129+ flags, output formats, schema kinds, export formats, and built-in OPSEC policy
130+ names.
131+
132+ ``` bash
133+ relayx completion bash > relayx.bash
134+ relayx completion zsh > relayx.zsh
135+ relayx completion fish > relayx.fish
136+ ```
137+
138+ Completion only suggests syntax. It does not weaken authorization, OPSEC,
139+ scope, audit, or adapter checks.
50140
51141## Short Options
52142
0 commit comments