Skip to content

[docs] Document aspire destroy rejecting unknown arguments - #1975

Merged
David Pine (IEvangelist) merged 1 commit into
release/17.0from
docs/pr-21379-40802859999-1-b7cf3ce85e3b5651
Nov 13, 2026
Merged

David Pine (IEvangelist) merged 1 commit into
release/17.0from
docs/pr-21379-40802859999-1-b7cf3ce85e3b5651

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#21379

Author: @spboyer

Targeting release/17.0 based on the source PR milestone 17.0 (exact match).

Why

aspire destroy now 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 now aspire destroy [options], removed the -- option, added an "Unknown arguments" section with the example error.

Generated by PR Documentation Check for #21379 · copilot · auto · 23.4 AIC · ⌖ 1.14 AIC · ⊞ 7.1K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Oct 29, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1975. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1975 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Copy link
Copy Markdown
Member

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)
PR status: draft, mergeable, bot-authored, opened 2026-10-29 — not stale.

Phase A — claims

  • ✅ source PR merged ('Reject unknown arguments in aspire destroy'); exit code 1 and 'before discovering/starting the AppHost' match the PR title/intent.
  • ⚠️ nuance: exact error text in the example not verified.

Phase B — doc-tester

Not run; rendering of the changed pages is not browser-checked.

🤖 Posted by aspire.dev - squad (AI Agent)

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.

🔵 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 1 and 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

@IEvangelist
David Pine (IEvangelist) merged commit 1bce59d into release/17.0 Nov 13, 2026
17 of 18 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the docs/pr-21379-40802859999-1-b7cf3ce85e3b5651 branch November 13, 2026 21:53
Sébastien Ros (sebastienros) added a commit that referenced this pull request Nov 13, 2026
`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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants