-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
automationclidocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
CLI Consistency Report
Date: 2026-03-19
APM Version: 0.8.2 (64a70d4)
Commands Inspected: 31
Summary
| Severity | Count |
|---|---|
| High | 1 |
| Medium | 1 |
| Low | 1 |
High Severity
apm compile --target documentation missing opencode option
- Command:
apm compile --target - Problem: The CLI accepts
opencodeas a valid target but the reference documentation omits it. Users reading the docs have no way to knowopencodeis a supported compile target. The "Target Formats" table and all examples in theapm compilesection also omitopencode, even thoughapm pack --targetdocs correctly include it. - Evidence:
- Actual CLI output (
apm compile --help):-t, --target [vscode|agents|claude|opencode|all] Target platform: vscode/agents (AGENTS.md), claude (CLAUDE.md), opencode (AGENTS.md), or all. Auto-detects if not specified. ``` - Docs (
docs/src/content/docs/reference/cli-commands.md, line 857):-t, --target [vscode|agents|claude|all] - Target agent format. `agents` is an alias for `vscode`. Auto-detects if not specified. - The compile Target Formats table (line ~890) lists only
vscode,claude, andall;opencodeis absent. The examples at lines 919–921 likewise omitopencode.
- Actual CLI output (
- Suggested Fix: Update line 857 of
cli-commands.mdto[vscode|agents|claude|opencode|all]. Addopencodeto the Target Formats table (output:AGENTS.md, .opencode/agents/, .opencode/commands/, .opencode/skills/; best for: OpenCode). Add an example:apm compile --target opencode # AGENTS.md + .opencode/ only.
Medium Severity
governance.md pre-commit hook example uses non-existent apm audit --drift flag
- Command:
apm audit --drift - Problem: The
governance.md"Drift detection" section contains a working-looking.pre-commit-config.yamlcode block withentry: apm audit --drift. This flag does not exist in the CLI. While the section has a:::note[Planned Feature]:::admonition, the code block is indistinguishable from working configuration, and users copying it will get an error. - Evidence:
- Running
apm audit --driftreturns:Error: No such option: --drift Did you mean --dry-run? docs/src/content/docs/enterprise/governance.md(lines ~210–222):# .pre-commit-config.yaml repos: - repo: local hooks: - id: apm-drift name: APM drift check entry: apm audit --drift language: system pass_filenames: false ```
- The same file at line 213 also shows
apm audit --drift --cias a runnable command example.
- Running
- Suggested Fix: Wrap the pre-commit YAML code block and the
apm audit --drift --ciexample in a comment or replace them with a placeholder showing the intended syntax once the feature ships. Alternatively, add a visible# NOT YET AVAILABLEcomment inside the code block.
Low Severity
apm audit --dry-run docs overstate a requirement not enforced by the CLI
- Command:
apm audit --dry-run - Problem: The CLI reference docs describe
--dry-runas "Preview what--stripwould remove without modifying files (requires --strip)". The CLI help text does not state this requirement, and the CLI does not enforce it — runningapm audit --dry-runwithout--stripexits cleanly (with an informational message if no packages are found). The discrepancy creates confusion about when--dry-runis valid. - Evidence:
- CLI help (
apm audit --help):--dry-run Preview what --strip would remove without modifying files - Docs (
cli-commands.md, ~line 348):--dry-run - Preview what --strip would remove without modifying files (requires --strip) - Running
apm audit --dry-runalone exits with code 0 and printsNo apm.lock.yaml found — nothing to scan.
- CLI help (
- Suggested Fix: Either (a) remove "(requires --strip)" from the docs to match the CLI's actual permissive behavior, or (b) add a runtime guard in the CLI that exits with a usage error when
--dry-runis supplied without--strip, and update the CLI help text accordingly.
Clean Areas
All of the following commands and areas passed all checks — help text is present, accurate, consistent with documentation, and error cases produce clean messages (no stack traces):
apm --help,apm --versionapm init,apm install,apm uninstall,apm update,apm runapm deps(and all subcommands:list,tree,info,clean,update)apm mcp(and subcommands:list,search,show)apm config(and subcommands:get,set;apm configwith no args correctly shows current configuration)apm runtime(and subcommands:setup,list,remove,status)apm list,apm preview,apm pack,apm unpack,apm pruneapm audit(flag set, exit codes, format options all accurate)apm compile(all flags documented except theopencodetarget omission noted above)- Error handling: invalid flags and missing required arguments all produce clean
Error:messages with usage hints — no stack traces observed apm audit --cireferences in docs are consistently labelled as "planned" across all pages; no doc asserts it works today (except governance.md's code block noted above)
Generated by CLI Consistency Checker · ◷
- expires on Mar 21, 2026, 1:36 PM UTC
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
automationclidocumentationImprovements or additions to documentationImprovements or additions to documentation