Skip to content
Docs Try Aspire

aspire config command

aspire config - Manage configuration settings.

Aspire CLI
aspire config [command] [options]

The aspire config command manages the Aspire CLI config settings.

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.

The following options are available:

  • -?, -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 commands are available:

CommandStatusFunction
aspire config listStableList current configuration values, or all available feature flags with --all.
aspire config get <key>StableGet a configuration value.
aspire config set <key> <value>StableSet a configuration value.
aspire config delete <key>StableDelete a configuration value.

The following config settings are available:

Logical keyStored in aspire.config.json asDescription
appHostPathappHost.pathPath to the default AppHost project for the rooted configuration.
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.execCommandEnabledfeatures.execCommandEnabledEnable or disable the legacy aspire exec command for executing commands inside running resources.
features.experimentalPolyglot:gofeatures.experimentalPolyglot:goEnable or disable experimental Go language support for polyglot Aspire applications.
features.experimentalPolyglot:javafeatures.experimentalPolyglot:javaEnable or disable experimental Java language support for polyglot Aspire applications.
features.experimentalPolyglot:pythonfeatures.experimentalPolyglot:pythonEnable or disable experimental Python language support for polyglot Aspire applications.
features.experimentalPolyglot:rustfeatures.experimentalPolyglot:rustEnable or disable experimental Rust language support for polyglot Aspire applications.
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.