# aspire config get command

## Name

`aspire config get` - Get a configuration value.

## Synopsis

```bash title="Aspire CLI"
aspire config get <key> [options]
```

## Description

The `aspire config get` command retrieves a config value by key name.

<Include relativePath="reference/cli/includes/config-file-description.md" />

If the config value doesn't exist in a local settings file, the config file is retrieved from the global settings file.

The command returns the following exit codes:

- `0`&mdash;The command succeeded.
- `10`&mdash;The supplied key doesn't exist in the config file, or the config file is missing.

## Arguments

The following arguments are available:

- **`key`**

  The configuration key to retrieve.

## Options

The following options are available:

- <Include relativePath="reference/cli/includes/option-help.md" />

- <Include relativePath="reference/cli/includes/option-log-level.md" />

- <Include relativePath="reference/cli/includes/option-non-interactive.md" />

- <Include relativePath="reference/cli/includes/option-nologo.md" />

- <Include relativePath="reference/cli/includes/option-banner.md" />

- <Include relativePath="reference/cli/includes/option-wait.md" />