Skip to content

Align CLI reference with current gh aw --help output#44603

Merged
pelikhan merged 2 commits into
mainfrom
copilot/cli-consistency-fix-completion-description
Jul 10, 2026
Merged

Align CLI reference with current gh aw --help output#44603
pelikhan merged 2 commits into
mainfrom
copilot/cli-consistency-fix-completion-description

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

The CLI reference had drifted from the live gh aw --help surface in several places, including incorrect command structure, missing flags, and examples that no longer matched actual usage. This updates the docs to reflect the current CLI behavior without changing the CLI itself.

  • Correct command structure

    • Clarifies that gh aw completion accepts shell names as positional arguments (bash, zsh, fish, powershell), while only install and uninstall are true subcommands.
    • Rewords gh aw new to describe the actual behavior: template creation with interactive wizard fallback, without claiming editor auto-open.
  • Fill missing CLI reference details

    • Documents gh aw mcp inspect flags: --check-secrets, --inspector, --server, --tool.
    • Documents gh aw mcp add flags: --transport, --registry, --tool-id.
    • Adds the missing --repo/-r shorthand for gh aw secrets set.
  • Bring examples back in sync

    • Updates mcp add examples to use the actual optional-argument form shown by the CLI.
    • Adds mcp inspect examples for server filtering, tool inspection, inspector launch, and secret checks.
    • Adds missing local-file gh aw add examples and the missing gh aw experiments analyze --json example.
  • Clarify logs vs audit defaults

    • Makes the artifact default split explicit: logs defaults to usage, while audit defaults to all.
    • Calls out that --last on logs is an alias for --count/-c.

Example of the corrected completion description:

**Shell arguments:** `bash`, `zsh`, `fish`, `powershell`**Subcommands:** `install`, `uninstall`

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CLI completion subcommand description Align CLI reference with current gh aw --help output Jul 9, 2026
Copilot AI requested a review from pelikhan July 9, 2026 18:34
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

PR Triage - Run 29041860272. Category: docs | Risk: Low | Score: 40/100 | Action: defer | Batch: docs-updates. DRAFT. CLI reference alignment with current gh aw --help (22+/5-, 1 file). Pure doc fix, batch with other doc PRs. Undraft to merge.

Generated by 🔧 PR Triage Agent · 78.2 AIC · ⌖ 8.53 AIC · ⊞ 5.4K ·

@github-actions

Copy link
Copy Markdown
Contributor

🤖 PR Triage — Run §29061171191

Field Value
Category docs
Risk 🟢 Low
Score 35/100 (Impact 12 + Urgency 12 + Quality 11)
Action 🔃 defer
Batch docs-updates

CLI reference alignment with current gh aw --help. DRAFT, 1 file, 22 additions. Low risk docs update. Batch with other docs PRs.

Generated by 🔧 PR Triage Agent · 155.8 AIC · ⌖ 8.06 AIC · ⊞ 5.4K ·

@pelikhan pelikhan marked this pull request as ready for review July 10, 2026 04:00
Copilot AI review requested due to automatic review settings July 10, 2026 04:01
@pelikhan pelikhan merged commit ea94d49 into main Jul 10, 2026
@pelikhan pelikhan deleted the copilot/cli-consistency-fix-completion-description branch July 10, 2026 04:01
Copilot stopped reviewing on behalf of pelikhan due to an error July 10, 2026 04:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the CLI setup documentation to reflect newer gh aw command capabilities and clarify defaults/flags across several subcommands.

Changes:

  • Add examples for adding local workflow template files via gh aw add
  • Clarify behaviors/defaults for new, logs, and audit
  • Expand MCP (mcp inspect / mcp add) usage examples and document related options
Show a summary per file
File Description
docs/src/content/docs/setup/cli.md Updates CLI examples and docs for local workflow inputs, command defaults, MCP usage, and completion argument syntax

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 4
  • Review effort level: Low

Comment on lines +180 to +181
gh aw add ./my-workflow.md # Add a local workflow file
gh aw add ./*.md # Add multiple local workflow files
Comment on lines +795 to +798
gh aw mcp add workflow server # Add an MCP server to a workflow
gh aw mcp add workflow server --transport stdio # Prefer stdio transport
gh aw mcp add workflow server --registry https://custom.registry.com/v1 # Use custom registry
gh aw mcp add workflow server --tool-id my-server # Override the tool ID

**Options:** `--after-run-id`, `--artifacts`, `--before-run-id`, `--cache-before`, `--count/-c`, `--end-date`, `--engine`, `--filtered-integrity`, `--firewall`, `--format`, `--json/-j`, `--last`, `--no-firewall`, `--no-staged`, `--output/-o`, `--parse`, `--ref`, `--report-file`, `--repo/-r`, `--safe-output`, `--start-date`, `--stdin`, `--summary-file`, `--timeout`, `--tool-graph`, `--train`

`logs` defaults `--artifacts` to `usage` for faster, compact downloads. The `--last` flag is an alias for `--count/-c`.
```

**Subcommands:** `install`, `uninstall`, `bash`, `zsh`, `fish`, `powershell`. See [Shell Completions](#shell-completions).
**Shell arguments:** `bash`, `zsh`, `fish`, `powershell` — **Subcommands:** `install`, `uninstall`. See [Shell Completions](#shell-completions).
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.8

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cli-consistency] CLI Consistency Issues - 2026-07-09

3 participants