Repository navigation
[docs] Document aspire destroy rejecting unknown arguments - #1975
David Pine (IEvangelist) merged 1 commit into
Conversation
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]Recommendation: approve Source used: microsoft/aspire#21379 (merged 2026-10-29) Phase A — claims
Phase B — doc-testerNot run; rendering of the changed pages is not browser-checked. 🤖 Posted by aspire.dev - squad (AI Agent) |
There was a problem hiding this comment.
🔵 Needs a closer look
The strict argument-validation change still needs confirmation in release/17.0 before merging the destructive-command guidance, since source retrieval timed out and CLI execution is unavailable.
No open issues 🎉
What changed in this PR
Updates the aspire destroy CLI reference for the argument validation introduced in microsoft/aspire#21379, targeting Aspire 17.0.
Changes:
- Simplifies the synopsis to
aspire destroy [options]and removes AppHost argument passthrough documentation. - Explains that unknown options and positional arguments are rejected before AppHost discovery, with exit code
1and an example error.
| File | Description |
|---|---|
src/frontend/src/content/docs/reference/cli/commands/aspire-destroy.mdx |
Updates command syntax, removes passthrough guidance, and documents unknown-argument rejection. |
Review effort: Balanced
1bce59d
into
release/17.0
`release/17.0` CI has been failing since #1975. Its *Unknown arguments* section runs `aspire destroy --force` in a bash block, and `tests/unit/cli-pipeline-command-options.vitest.test.ts` rejects every pipeline-command sample that passes an undocumented option: ``` src/content/docs/reference/cli/commands/aspire-destroy.mdx:59 aspire destroy --force ``` The example is intentionally invalid, so this keeps the error output and moves `--force` into prose instead of a runnable command. Readers get the same information, and the page no longer shows a destroy command that looks like something to copy. This unblocks every open PR targeting `release/17.0`. **Also included:** `src/frontend/.starlight-icons/safelist.json` gains three entries (`folder-vscode`, `folder-vscode-open`, `go-mod`). Running the test locally regenerated this file. The entries match file-tree icons that `release/17.0` content already uses (for example the Go AppHost page's `.vscode/` and `go.mod`), so the committed safelist was stale. The same fix was merged into the 10 open docs PRs targeting `release/17.0` so their CI can go green. Co-authored-by: Sébastien Ros <[email protected]>
Documents changes from microsoft/aspire#21379
Author:
@spboyerTargeting
release/17.0based on the source PR milestone17.0(exact match).Why
aspire destroynow rejects unknown options and positional arguments before AppHost discovery (exit code 1) instead of silently running the destroy pipeline. The docs still described a--passthrough for AppHost arguments.Changes (updated page)
src/frontend/src/content/docs/reference/cli/commands/aspire-destroy.mdx: synopsis nowaspire destroy [options], removed the--option, added an "Unknown arguments" section with the example error.