aspire secret set command
Name
aspire secret set - Set a secret value.
Synopsis
aspire secret set [options]
Description
The aspire secret set command sets a user secret value for an Aspire AppHost. If user secrets haven't been initialized for the AppHost yet, this command automatically initializes them before setting the value.
Arguments
The following arguments are available:
keyThe secret key to set. Use a colon (
:) as a separator for hierarchical keys, such asParameters:postgres-password.valueThe secret value to set.
Options
The following options are available:
--apphost <apphost>The path to the Aspire AppHost project file.
-
-
-
-
-
Examples
-
-
-
-
Set a password parameter:
aspire secret set Parameters:postgres-password MySecretPassword123Set a secret for a specific AppHost:
aspire secret set Parameters:rabbitmq-password Pass123 --apphost ./src/MyApp.AppHost/MyApp.AppHost.csproj