Aller au contenu

aspire config set command

Ce contenu n’est pas encore disponible dans votre langue.

This article applies to: ✔️ Aspire CLI 9.4.0 and later versions

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.

Aspire supports a local and global settings file. Settings defined in a local settings file override those set in the global settings file.

  • Local settings

    A local settings file is stored at .aspire/settings.json under the current directory.

  • Global settings

    The global settings file is stored at $HOME/.aspire/settings.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 globally in $HOME/.aspire/settings.json instead of the local settings file.

  • -?, -h, --help

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

  • -d, --debug

    Enable debug logging to the console, which prints detailed information about what .NET Aspire CLI is doing when a command is run.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

The following config settings are available:

SettingDescription
appHostPathPath to default AppHost project.
features.execCommandEnabledEnable exec command.
features.minimumSdkCheckEnabledEnforce minimum SDK version.
features.orphanDetectionWithTimestampEnabledUse timestamp-based orphan detection.
features.packageSearchDiskCachingEnabledCache package search results on disk.
features.showDeprecatedPackagesShow deprecated packages.
features.singleFileAppHostEnabledSupport single-file AppHost projects.
features.stagingChannelEnabledUse staging channel packages.
features.updateNotificationsEnabledShow update notifications.
Questions & Réponses Collaborer Communauté Discuter Regarder