You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create article for secrets management with aspire cli #540
Well-scoped article task — aspire secret is a CLI-native command, not a dotnet user-secrets thin wrapper, so the existing doc cross-link is wrong and a dedicated page is the right shape.
Scope
Create a new MDX page under src/frontend/src/content/docs/. Suggested location: fundamentals/secrets.mdx (or under reference/cli/commands/aspire-secret/ if it fits the existing CLI command IA — pick whichever matches sibling pages; cross-reference both).
Cover:
aspire secret overview — why it exists, how it differs from dotnet user-secrets (per-AppHost, language-neutral, available from the TS AppHost too — no .NET requirement on the developer machine).
aspire secret path — what it returns, where the file lives on disk, how to override the location.
Listing secrets — aspire secret list.
Reading secrets — aspire secret get <key>.
Writing secrets — aspire secret set <key>.
A short worked example showing the AppHost reading a secret via builder.AddParameter("api-key", secret: true) (C# and the TS equivalent) and where the value materializes at runtime.
Source-of-truth for actual command surface (do not guess)
CLI source on release/13.4 — src/Aspire.Cli/Commands/SecretCommand.cs and siblings in microsoft/aspire.
aspire secret --help and aspire secret <subcommand> --help against the installed 13.4 CLI.
Also: remove or rewrite any existing cross-links that point at dotnet user-secrets as the canonical path for AppHost secrets (per the originating discussion on microsoft/aspire#15220).
Acceptance
New page builds (pnpm --dir ./src/frontend run build:skip-search) and is reachable from the sidebar.
Examples are copy-pasteable against the Aspire CLI 13.4 install (iex "& { $(irm https://aspire.dev/install.ps1) }").
No page now treats dotnet user-secrets as the canonical secrets story for an AppHost.
No unrelated edits.
Milestone: 13.2 (per the originating issue) — but the 13.4 CLI surface is fine as the reference. Leaving David Pine (@IEvangelist) on as backup reviewer.
Activity
IEvangelist commentedon Jun 2, 2026
Triage → @Copilot
Well-scoped article task —
aspire secretis a CLI-native command, not adotnet user-secretsthin wrapper, so the existing doc cross-link is wrong and a dedicated page is the right shape.Scope
Create a new MDX page under
src/frontend/src/content/docs/. Suggested location:fundamentals/secrets.mdx(or underreference/cli/commands/aspire-secret/if it fits the existing CLI command IA — pick whichever matches sibling pages; cross-reference both).Cover:
aspire secretoverview — why it exists, how it differs fromdotnet user-secrets(per-AppHost, language-neutral, available from the TS AppHost too — no .NET requirement on the developer machine).aspire secret path— what it returns, where the file lives on disk, how to override the location.aspire secret list.aspire secret get <key>.aspire secret set <key>.builder.AddParameter("api-key", secret: true)(C# and the TS equivalent) and where the value materializes at runtime.Source-of-truth for actual command surface (do not guess)
release/13.4—src/Aspire.Cli/Commands/SecretCommand.csand siblings inmicrosoft/aspire.aspire secret --helpandaspire secret <subcommand> --helpagainst the installed 13.4 CLI.Also: remove or rewrite any existing cross-links that point at
dotnet user-secretsas the canonical path for AppHost secrets (per the originating discussion on microsoft/aspire#15220).Acceptance
pnpm --dir ./src/frontend run build:skip-search) and is reachable from the sidebar.iex "& { $(irm https://aspire.dev/install.ps1) }").dotnet user-secretsas the canonical secrets story for an AppHost.Milestone: 13.2 (per the originating issue) — but the 13.4 CLI surface is fine as the reference. Leaving David Pine (@IEvangelist) on as backup reviewer.