[CLI Flag Review] CLI Flag Consistency Report — Weekly Audit (2026-04-12) #1955
Replies: 4 comments
-
|
🔮 The ancient spirits stir in the firewall veil.
|
Beta Was this translation helpful? Give feedback.
-
|
🔮 The ancient spirits stir in the halls of automation.
|
Beta Was this translation helpful? Give feedback.
-
|
🔮 The ancient spirits stir in the firewall halls.
|
Beta Was this translation helpful? Give feedback.
-
|
🔮 The ancient spirits stir through the firewall paths.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
📊 Summary
Analysis of AWF CLI flag consistency across
src/cli.ts(source of truth) and documentation files.src/cli.ts(main command)✅ Flags Status
Main Command Flags
-d, --allow-domains--allow-domains-file--ruleset-file--block-domains--block-domains-file--ssl-bump--allow-urls-b, --build-local--agent-image--image-registry--image-tag--skip-pull-e, --env--env-all--exclude-env--env-file-v, --mount--container-workdir--memory-limit--tty--dns-servers--dns-over-https--enable-host-access--allow-host-ports--allow-host-service-ports--enable-dind--enable-dlp--enable-api-proxy--copilot-api-target--openai-api-target--openai-api-base-path--anthropic-api-target--anthropic-api-base-path--gemini-api-target--gemini-api-base-path--rate-limit-rpm--rate-limit-rph--rate-limit-bytes-pm--no-rate-limit--difc-proxy-host--difc-proxy-ca-cert--log-level-k, --keep-containers--agent-timeout--work-dir--proxy-logs-dir--audit-dir--session-state-dir--diagnostic-logspredownloadSubcommand Flags--image-registry--image-tag--agent-image--enable-api-proxy--difc-proxylogsSubcommand Flags-f, --follow--format--source--list--with-pidlogs stats --formatlogs stats --sourcelogs summary --formatlogs summary --sourcelogs audit --formatlogs auditnot in usage.mdlogs audit --sourcelogs auditnot in usage.mdlogs audit --rulelogs auditnot in usage.mdlogs audit --domainlogs auditnot in usage.mdlogs audit --decisionlogs auditnot in usage.mdIssue 1 — Wrong Default Value:
--memory-limitindocs/usage.mddocs/usage.md, line 862gbut the implementation default is6g--memory-limit <limit> Memory limit for the agent container (default: 2g)(default: 6g)— matchessrc/cli.ts:1409andcli-reference.mddocs/usage.mdto say(default: 6g)Issue 2 — Misleading Default:
--dns-serversindocs/usage.mddocs/usage.md, lines 52–54usage.mdsaysdefault: 8.8.8.8,8.8.4.4butcli.tsauto-detects from host with no hardcoded fallback specified in.option(). Thecli-reference.mdcorrectly says "Auto-detected".DNS traffic is ONLY allowed to these servers (default: 8.8.8.8,8.8.4.4)8.8.8.8,8.8.4.4as fallback (not primary default)docs/usage.mdto matchcli-reference.mdwording: "Auto-detected from host; falls back to8.8.8.8,8.8.4.4"Issue 3 — Missing Flags in
docs/usage.mdOptions TableThe following flags exist in
src/cli.tsbut are absent from the options table indocs/usage.md:--exclude-envcli-reference.md--env-filecli-reference.md--allow-host-service-portscli-reference.mdwith full section--openai-api-base-pathcli-reference.md--anthropic-api-base-pathcli-reference.md--audit-dircli-reference.mdwith full sectionSuggestion: Add these six flags to the
docs/usage.mdoptions table.Issue 4 —
--gemini-api-targetand--gemini-api-base-pathMissing from All Docssrc/cli.ts:1485–1491docs/usage.md,docs-site/src/content/docs/reference/cli-reference.md,README.md,AGENTS.md, andCLAUDE.md--gemini-api-targetand--gemini-api-base-pathto the options table and API proxy sections in bothdocs/usage.mdandcli-reference.md(alongside the OpenAI and Anthropic equivalents)Issue 5 —
--difc-proxy-hostand--difc-proxy-ca-certMissing from All Docssrc/cli.ts:1510–1520docs/usage.mdandcli-reference.mddocumenting both flags and their relationship to the external DIFC proxyIssue 6 —
--diagnostic-logsMissing from All Docssrc/cli.ts:1553–1559--diagnostic-logsflag is defined in the implementation but absent from all documentation--diagnostic-logsto the "Logging & Debug" section in bothdocs/usage.mdandcli-reference.mdIssue 7 —
--session-state-dirMissing fromcli-reference.mdOptions Summary Tabledocs-site/src/content/docs/reference/cli-reference.mdoptions summary table--session-state-diris documented indocs/usage.md(line 56) and has substantial detail indocs/usage.md(lines 890–918), but is absent from the options summary table incli-reference.md--session-state-dirto the options summary table incli-reference.mdIssue 8 —
predownloadSubcommand Missing fromdocs/usage.mddocs/usage.mdpredownloadsubcommand is fully documented incli-reference.md(section at line 940) but has zero coverage indocs/usage.mddocs/usage.mdcoveringpredownloadand its optionsIssue 9 —
logs auditSubcommand Missing fromdocs/usage.mddocs/usage.md, Commands section (lines 99–113)docs/usage.mdlistslogs,logs stats, andlogs summary, but omitslogs audit.cli-reference.mdhas a fullawf logs auditsection (line 1175)logs auditto the Commands listing indocs/usage.mdwith its options (--format,--source,--rule,--domain,--decision)Issue 10 —
--difc-proxyFlag forpredownloadMissing Everywheresrc/cli.ts:2202predownloadsubcommand has a--difc-proxyflag (to pre-download the CLI proxy image), but this flag is absent fromcli-reference.md's predownload options table and all other docs--difc-proxyto the predownload options table incli-reference.md📋 Recommendations
🔴 High Priority
Fix
--memory-limitdefault indocs/usage.md— The documented default of2gis factually wrong; the implementation default is6g. This will confuse users who rely on default behavior. (Issue 1)Document
--gemini-api-targetand--gemini-api-base-path— These flags exist alongside OpenAI and Anthropic equivalents, but are invisible to users reading any documentation. (Issue 4)Document
--difc-proxy-hostand--difc-proxy-ca-cert— These flags enable a significant security feature (external DIFC proxy). Without documentation, they are effectively undiscoverable. (Issue 5)🟡 Medium Priority
Document
--diagnostic-logs— Useful debugging flag that is completely undocumented. (Issue 6)Add missing flags to
docs/usage.mdoptions table — Six flags (--exclude-env,--env-file,--allow-host-service-ports,--openai-api-base-path,--anthropic-api-base-path,--audit-dir) are incli-reference.mdbut missing fromusage.md. (Issue 3)Add
predownloadsubcommand todocs/usage.md— Currently only documented incli-reference.md. (Issue 8)Add
logs audittodocs/usage.mdCommands section — The other threelogssubcommands are all listed;auditis missing. (Issue 9)🟢 Low Priority
Fix
--dns-serversdefault description indocs/usage.mdto clarify auto-detection. (Issue 2)Add
--session-state-dirtocli-reference.mdoptions summary table — It's in the file body but missing from the quick-reference table. (Issue 7)Add
--difc-proxytopredownloadoptions table incli-reference.md. (Issue 10)📁 Files Analyzed
src/cli.tsdocs/usage.mddocs-site/src/content/docs/reference/cli-reference.mdREADME.mdAGENTS.mdCLAUDE.mdBeta Was this translation helpful? Give feedback.
All reactions