Skip to content

fix: CLI consistency — short aliases, default displays, help text#392

Open
Copilot wants to merge 4 commits intomainfrom
copilot/fix-missing-v-short-alias
Open

fix: CLI consistency — short aliases, default displays, help text#392
Copilot wants to merge 4 commits intomainfrom
copilot/fix-missing-v-short-alias

Conversation

Copy link
Contributor

Copilot AI commented Mar 20, 2026

Description

Resolves 7 findings from the automated CLI Consistency Report (4 medium, 3 low).

Short aliases (muscle-memory consistency):

  • apm install --verbose → added -v (matches compile, audit)
  • apm runtime remove --yes → added -y (matches init)

Default value display:

  • apm mcp list --limit → now shows [default: 20] (matches mcp search)
  • apm pack --format → now shows [default: apm] (matches --target, --output)

Help text clarity:

  • apm audit → "Scan installed packages (or any file) for hidden Unicode characters"
  • apm config get → "Get one or all configuration values"
  • apm compile -o → "Output file path (use with --single-agents legacy mode)"

Docs (cli-commands.md) and CHANGELOG.md updated to match.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass (2261 unit tests)
  • Added tests for new functionality (if applicable)

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI and others added 2 commits March 20, 2026 15:42
… text

Co-authored-by: danielmeppiel <51440732+danielmeppiel@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/apm/sessions/78aadfdd-539f-425c-906b-27636a5ed359
Co-authored-by: danielmeppiel <51440732+danielmeppiel@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/apm/sessions/78aadfdd-539f-425c-906b-27636a5ed359
Copilot AI changed the title [WIP] Fix missing '-v' short alias for --verbose in apm install fix: CLI consistency — short aliases, default displays, help text Mar 20, 2026
Copilot AI requested a review from danielmeppiel March 20, 2026 15:45
@danielmeppiel danielmeppiel marked this pull request as ready for review March 20, 2026 20:24
Copilot AI review requested due to automatic review settings March 20, 2026 20:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves APM CLI UX consistency by adding common short aliases, ensuring defaults are displayed in help output, and tightening several help strings. It also updates the CLI reference docs to match the new/clarified CLI surface.

Changes:

  • Added short aliases for frequently used flags: apm install --verbose now supports -v, and apm runtime remove --yes now supports -y.
  • Enabled default-value display in help for apm mcp list --limit and apm pack --format.
  • Clarified help text for apm audit, apm config get, and apm compile -o, with matching documentation updates.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/apm_cli/commands/runtime.py Adds -y alias to the runtime removal confirmation option.
src/apm_cli/commands/install.py Adds -v alias for verbose install output.
src/apm_cli/commands/mcp.py Shows the default value for --limit in mcp list help.
src/apm_cli/commands/pack.py Shows the default value for --format in pack help.
src/apm_cli/commands/config.py Clarifies config get help to reflect optional key behavior.
src/apm_cli/commands/compile/cli.py Updates -o/--output help to reflect legacy --single-agents usage.
src/apm_cli/commands/audit.py Clarifies audit help to reflect --file support.
docs/src/content/docs/reference/cli-commands.md Updates the CLI reference to reflect new aliases, defaults, and clarified help text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cli-consistency] CLI Consistency Report — 2026-03-20

3 participants