Skip to content

[docs] Document resource-scoped command help and --include-hidden option#904

Merged
davidfowl merged 2 commits into
release/13.4from
docs/resource-scoped-command-help-31044f5e2d514d6f
May 11, 2026
Merged

[docs] Document resource-scoped command help and --include-hidden option#904
davidfowl merged 2 commits into
release/13.4from
docs/resource-scoped-command-help-31044f5e2d514d6f

Conversation

@aspire-repo-bot
Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#16921 by @davidfowl.

Targeting main — falling back to main because release/13.4 does not exist on microsoft/aspire.dev. The source PR milestone is 13.4.

Why this PR is needed

PR microsoft/aspire#16921 added two significant user-facing CLI improvements:

  1. Resource-scoped help: Running aspire resource <resource> --help now queries the running AppHost and displays an "Available resource commands" section listing all commands that resource exposes. The existing docs stated (correctly at the time) that the CLI didn't expose these commands in --help, which is no longer true.

  2. --include-hidden option: A new --include-hidden flag was added to the aspire resource command for both help discovery and command execution. This was not documented at all.

  3. -- delimiter behavior: --help after -- is now treated as a resource command argument rather than the CLI help flag.

  4. AppHost selection change: Resource-scoped help no longer prompts for AppHost selection when a single in-scope AppHost cannot be determined without --apphost.

Changes

Updated src/frontend/src/content/docs/reference/cli/commands/aspire-resource.mdx:

  • Updated the Aside note and added a new "Discovering available resource commands" section with example output
  • Documented the -- delimiter for passing --help to resource commands
  • Reorganized the AppHost selection steps into a dedicated subsection
  • Added --include-hidden to the Options list with description
  • Added two new examples: listing available commands and using --include-hidden

Files modified

  • src/frontend/src/content/docs/reference/cli/commands/aspire-resource.mdx (updated)

Generated by PR Documentation Check for issue #16921 · ● 10.4M ·

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label May 11, 2026
@aspire-repo-bot aspire-repo-bot Bot requested a review from mitchdenny May 11, 2026 02:38
@davidfowl davidfowl changed the base branch from main to release/13.4 May 11, 2026 04:10
aspire-repo-bot Bot and others added 2 commits May 10, 2026 21:29
Documents changes from microsoft/aspire#16921:
- Add section explaining that 'aspire resource <resource> --help' shows
  available resource commands discovered from the running AppHost.
- Document the '--include-hidden' option for showing and executing
  hidden resource commands.
- Document the '--' delimiter for passing --help to resource commands.
- Add AppHost selection section with clearer structure.
- Add examples for listing available commands and using --include-hidden.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@davidfowl davidfowl force-pushed the docs/resource-scoped-command-help-31044f5e2d514d6f branch from 9a81ca6 to 64cadbf Compare May 11, 2026 04:32
@davidfowl davidfowl marked this pull request as ready for review May 11, 2026 04:33
@davidfowl davidfowl requested a review from IEvangelist as a code owner May 11, 2026 04:33
@davidfowl davidfowl merged commit 3699c5a into release/13.4 May 11, 2026
5 checks passed
@davidfowl davidfowl deleted the docs/resource-scoped-command-help-31044f5e2d514d6f branch May 11, 2026 04:52
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.

1 participant