aspire secret list command
Name
aspire secret list - List all secrets.
Synopsis
aspire secret list [options]
Description
The aspire secret list command lists all user secrets stored for an Aspire AppHost. By default, secrets are displayed in a table format sorted alphabetically by key. If no secrets are configured, the command displays "No secrets configured."
Options
The following options are available:
--format <Json|Table>Output format. Use
Jsonfor machine-readable output suitable for scripting and automation. Defaults toTable.--apphost <apphost>The path to the Aspire AppHost project file.
-
-
-
-
-
Examples
-
-
-
-
List all secrets for the current AppHost:
aspire secret listList secrets in JSON format:
aspire secret list --format jsonList secrets for a specific AppHost:
aspire secret list --apphost ./src/MyApp.AppHost/MyApp.AppHost.csproj