Align CLI reference with current gh aw --help output#44603
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
gh aw --help output
|
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.
|
🤖 PR Triage — Run §29061171191
CLI reference alignment with current gh aw --help. DRAFT, 1 file, 22 additions. Low risk docs update. Batch with other docs PRs.
|
There was a problem hiding this comment.
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, andaudit - 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
| gh aw add ./my-workflow.md # Add a local workflow file | ||
| gh aw add ./*.md # Add multiple local workflow files |
| 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). |
|
🎉 This pull request is included in a new release. Release: |
The CLI reference had drifted from the live
gh aw --helpsurface 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
gh aw completionaccepts shell names as positional arguments (bash,zsh,fish,powershell), while onlyinstallanduninstallare true subcommands.gh aw newto describe the actual behavior: template creation with interactive wizard fallback, without claiming editor auto-open.Fill missing CLI reference details
gh aw mcp inspectflags:--check-secrets,--inspector,--server,--tool.gh aw mcp addflags:--transport,--registry,--tool-id.--repo/-rshorthand forgh aw secrets set.Bring examples back in sync
mcp addexamples to use the actual optional-argument form shown by the CLI.mcp inspectexamples for server filtering, tool inspection, inspector launch, and secret checks.gh aw addexamples and the missinggh aw experiments analyze --jsonexample.Clarify
logsvsauditdefaultslogsdefaults tousage, whileauditdefaults toall.--lastonlogsis an alias for--count/-c.Example of the corrected
completiondescription: