ДокументаціяСпробувати Aspire
ДокументаціяСпробувати

aspire config set command

Цей контент ще не доступний вашою мовою.

aspire config set - Set a configuration value.

Aspire CLI
aspire config set <key> <value> [options]

The aspire config set command sets a config value by key name.

Starting in Aspire 13.2, Aspire prefers a rooted aspire.config.json file for project-scoped configuration. The CLI can also read and write user-scoped global defaults.

  • Project-scoped configuration

    Project-scoped settings live in a rooted aspire.config.json file. This replaces the older .aspire/settings.json model.

  • Global configuration

    User-scoped defaults can be set with aspire config set --global .... Project-scoped settings override global values when both are present. Project-specific values such as appHost.path must be configured locally in aspire.config.json.

The following arguments are available:

  • key

    The configuration key to set.

  • value

    The configuration value to set.

The following options are available:

  • -g, --global

    Set the configuration value in user-scoped global Aspire configuration instead of the rooted aspire.config.json file. Project-specific values such as appHost.path can’t be set globally.

  • -?, -h, --help

    Prints help and usage documentation for the available commands and options.

  • -l, --log-level <Critical|Debug|Error|Information|None|Trace|Warning>

    Set the minimum log level for console output. Use this option to increase diagnostics while troubleshooting or reduce output in scripted runs.

  • --non-interactive

    Run the command in non-interactive mode, disabling all interactive prompts and spinners.

  • --nologo

    Suppress the startup banner and telemetry notice.

  • --banner

    Display the animated Aspire CLI welcome banner.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

The following config settings are available:

Logical keyStored in aspire.config.json asDescription
appHost.pathappHost.pathProject-scoped path to the default AppHost entry point. This setting must be configured in the local aspire.config.json file.
channelchannelDefault Aspire channel used by channel-aware commands such as aspire new, aspire init, and aspire update.
features.defaultWatchEnabledfeatures.defaultWatchEnabledEnable or disable watch mode by default when running Aspire applications for automatic restarts on file changes.
features.experimentalPolyglot:gofeatures.experimentalPolyglot:goEnable or disable experimental Go AppHost support.
features.experimentalPolyglot:javafeatures.experimentalPolyglot:javaEnable or disable experimental Java AppHost support.
features.experimentalPolyglot:pythonfeatures.experimentalPolyglot:pythonEnable or disable experimental Python AppHost support.
features.experimentalPolyglot:rustfeatures.experimentalPolyglot:rustEnable or disable experimental Rust AppHost support.
features.polyglotIntegrationFilterEnabledfeatures.polyglotIntegrationFilterEnabledEnable or disable filtering aspire add, aspire integration list, and aspire integration search results to only integrations compatible with a non-C# AppHost. Disabled by default because remote NuGet feeds don’t reliably answer the tags:polyglot query used to build the compatibility allow-list.
features.showAllTemplatesfeatures.showAllTemplatesShow all available templates, including experimental ones, in aspire new and aspire init.
features.showDeprecatedPackagesfeatures.showDeprecatedPackagesShow or hide deprecated packages in aspire add search results.
features.updateNotificationsEnabledfeatures.updateNotificationsEnabledEnable or disable Aspire CLI update notifications.
overrideStagingFeedoverrideStagingFeedEscape hatch that always allows the staging channel to be resolved, regardless of the running CLI’s build identity. Set this to the staging feed URL you want channel-aware commands (aspire new, aspire init, aspire update) to use, for example: aspire config set -g overrideStagingFeed <feed-url>. Without this setting, --channel staging only resolves on stable or staging Aspire CLI builds — daily, local, and per-PR builds refuse it and report the recovery options.