Repository navigation
Closed as not planned
Labels
[bugautomationLegacy classification name; prefer type/automation. Retained while active writers are migrated.cliLegacy classification name; prefer area/cli. Retained while active writers are migrated.documentationLegacy classification name; prefer type/docs. Retained while active writers are migrated.documentation]
Description
CLI Consistency Report
Date: 2026-07-01
APM Version: 0.23.1 (d1d926d)
Commands Inspected: 30 (23 from checker spec + 7 additional subcommands)
Summary
| Severity | Count |
|---|---|
| High | 2 |
| Medium | 3 |
| Low | 2 |
High Severity
apm config list command does not exist
- Command:
apm config list --help - Problem: Running
apm config list --helpreturns an error. The consistency checker workflow (cli-consistency-checker.md) lists this as a command to verify. The command does not exist and is not documented in any reference page. This is also a discoverability problem: users familiar withnpm config listorgit config --listwill naturally tryapm config listand hit an error. - Evidence:
The actual subcommands available are
$ apm config list --help Usage: apm config [OPTIONS] [COMMAND] [ARGS]... Try 'apm config --help' for help. Error: No such command 'list'.get,set,unset. Bareapm configshows configuration, andapm config getwith no argument lists all keys. - Suggested Fix: Add
apm config listas an alias forapm config get(with no argument), which already prints all user-settable keys. Updatecli-consistency-checker.mdto reflect the correct command, and document the alias indocs/reference/cli/config.md.
--target intellij is rejected by CLI but documented as valid
- Command:
apm install --target intellij - Problem: The docs (
docs/src/content/docs/reference/cli/install.md) explicitly listintellijas a valid--targetvalue:Values: copilot, claude, cursor, opencode, codex, gemini, antigravity, windsurf, kiro, intellij, vscode, agent-skills, all. However the CLI rejects it. The--runtimeflag (described as the "legacy alias for --target") does acceptintellijand successfully maps it tocopilot. This creates a confusing split: the legacy flag works but the current flag does not. - Evidence:
From source (
$ apm install --target intellij Error: [x] Unknown target 'intellij' $ apm install --runtime intellij # succeeds -- maps to copilot [>] Installing dependencies from apm.yml...src/apm_cli/integration/targets.pyline 452):RUNTIME_TO_CANONICAL_TARGET: dict[str, str] = { "vscode": "copilot", "agents": "copilot", "intellij": "copilot", }
intellijis inRUNTIME_TO_CANONICAL_TARGETbut NOT inKNOWN_TARGETS, which is why--targetvalidation rejects it. - Suggested Fix: Either (a) add
intellijas a recognized alias in the--targetparser (mapping tocopilot), consistent with how--runtimehandles it; or (b) removeintellijfrom the--targetvalues listed indocs/reference/cli/install.mdand clearly document thatintellijis only valid with--runtime(legacy). Option (a) is preferred for forward compatibility.
Medium Severity
apm config --help does not mention bare apm config behavior
- Command:
apm config --help - Problem: The help output for
apm configlists onlyget,set,unsetsubcommands with no hint that bareapm config(no subcommand) displays a full configuration table. The docs (docs/reference/cli/config.md) document this prominently in the Synopsis:apm config # show current configuration. New users readingapm config --helphave no way to discover this feature. - Evidence:
(No mention of the bare invocation behavior.)
$ apm config --help Usage: apm config [OPTIONS] [COMMAND] [ARGS]... Configure APM CLI Options: --help Show this message and exit. Commands: get Get a configuration value set Set a configuration value unset Unset a configuration value - Suggested Fix: Add a note in the group-level help or an Examples block, e.g.:
Run with no subcommand to display the current project and global configuration.
vscode is a valid target but missing from both --target and --runtime help text
- Command:
apm install --target vscode(works),apm install --runtime vscode(works) - Problem:
vscodeis a recognized target alias (maps tocopilot, registered inRUNTIME_TO_CANONICAL_TARGET). It works correctly at runtime with--target vscode. However, it appears nowhere in the--targetor--runtimehelp text. Users trying to target VS Code Copilot explicitly cannot discover this alias from help text. - Evidence:
From
$ apm install --target vscode [>] Installing dependencies from apm.yml... [i] Targets: copilot (source: --target flag) [+] ./packages/apm-issue-autopilot (local) EXIT: 0apm install --help:(--target TARGET ... Values: copilot, claude, cursor, opencode, codex, gemini, antigravity, windsurf, kiro, agent-skills, all.vscodeis absent from this list despite working.) - Suggested Fix: Add
vscodeto the--targethelp value list with a note that it is an alias forcopilot. Also note it indocs/reference/cli/install.md.
intellij listed in --runtime help but not in --target help despite docs claiming it as a --target value
- Command:
apm install --runtime intellij/apm install --target intellij - Problem: This is the second facet of the
intellijtarget inconsistency. The--runtimeflag's help text listsintellijas a valid value. The docs for--targetlistintellijas valid. But--target intellijfails (High finding above). This means the--runtimeand--targethelp texts are inconsistent with each other and both are inconsistent with actual CLI behavior. (See High finding for the full breakdown.) - Evidence:
$ apm install --help | grep -A2 "runtime" --runtime TEXT Target specific runtime only (copilot, claude, codex, cursor, gemini, antigravity, intellij, kiro, opencode, windsurf) (legacy alias for --target, single value only; ...)--runtimelistsintellij;--targetdoes not. - Suggested Fix: Align
--runtimeand--targetso they accept the same aliases. At minimum, document in--runtimehelp thatintellijis a--runtime-only alias (not valid with--target) until the--targetvalidator is updated.
Low Severity
Inconsistent --verbose / -v flag descriptions across commands
- Commands:
apm init,apm install,apm uninstall,apm update,apm compile,apm run,apm mcp search,apm mcp show - Problem: The
-v, --verboseflag is described differently across commands with no semantic difference:apm init:Show detailed outputapm install:Show detailed installation informationapm uninstall:Show detailed removal informationapm update:Show unchanged deps and detailed pipeline diagnosticsapm compile:Show detailed source attribution and optimizer analysisapm run:Show detailed outputapm mcp search/apm mcp show:Show detailed output
The context-specific descriptions forinstall,uninstall,update,compileare more informative, butinit,run,mcp *use a generic "Show detailed output" that provides no additional guidance.
- Suggested Fix: Either use a consistent base phrase ("Enable verbose output") for all commands, or keep per-command context but ensure every description is specific (avoid the generic "Show detailed output" for commands where the verbose behavior is well-defined).
Inconsistent --yes / -y flag descriptions across commands
- Commands:
apm update,apm deps clean,apm runtime remove - Problem: The
-y, --yesflag has three different phrasings:apm update:Skip the confirmation prompt (for CI / automation)apm deps clean:Skip confirmation prompt(missing CI/automation note)apm runtime remove:Confirm the action without prompting(inverted framing)
- Evidence:
$ apm update --help | grep "\-y" -y, --yes Skip the confirmation prompt (for CI / automation) $ apm deps clean --help | grep "\-y" -y, --yes Skip confirmation prompt $ apm runtime remove --help | grep "\-y" -y, --yes Confirm the action without prompting - Suggested Fix: Standardize to
Skip the confirmation prompt(orSkip the confirmation prompt (for CI / automation)) across all commands.
Clean Areas
The following commands and areas passed all checks with no issues found:
apm --help-- top-level command listing and structureapm init --help-- options and description correctapm install --help-- comprehensive, detailed, accurate (besidesintellij/vscodenote above)apm uninstall --help-- accurateapm update --help-- accurateapm compile --help-- accurate and thoroughapm run --help-- accurateapm deps list --help,apm deps tree --help,apm deps info --help,apm deps clean --help,apm deps why --help-- all accurateapm deps update --help-- deprecation warning present and correctapm mcp --help,apm mcp search --help,apm mcp show --help,apm mcp install --help,apm mcp list --help-- all accurate; list/search default limits match docsapm config set --help,apm config get --help,apm config unset --help-- accurate (note:unsetis documented but was not in the original checker spec)apm runtime --help,apm runtime setup --help,apm runtime list --help,apm runtime status --help,apm runtime remove --help-- all accurateapm lock --help,apm lock export --help-- accurate, README SBOM claims verified- Error handling --
apm install --nonexistent-flag,apm deps info(missing arg),apm config set(missing args) all produce clean error messages with no stack traces - Exit codes -- all tested error paths return exit code 2 cleanly
Warning
Firewall blocked 2 domains
The following domains were blocked by the firewall during workflow execution:
astral.shindex.crates.io
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "astral.sh"
- "index.crates.io"See Network Configuration for more information.
Generated by CLI Consistency Checker · 164.7 AIC · ⌖ 7.96 AIC · ⊞ 6.6K · ◷
- expires on Jul 3, 2026, 1:56 PM UTC
Metadata
Metadata
Assignees
Labels
[bugautomationLegacy classification name; prefer type/automation. Retained while active writers are migrated.cliLegacy classification name; prefer area/cli. Retained while active writers are migrated.documentationLegacy classification name; prefer type/docs. Retained while active writers are migrated.documentation]
Type
Projects
- StatusShow more project fieldsDone
Activity
github-actions commentedon Jul 3, 2026
This issue was automatically closed because it expired on 2026-07-03T13:56:18.125Z.