# config get

Get the value of a configuration variable.

## Description for config get

Run "sf config list" to see the configuration variables you've already set and their level (local or global).

Run "sf config set" to set a configuration variable. For the full list of available configuration variables, see <https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm>.

## Aliases for config get

`force:config:get`

## Flags

| Flag Name (Long) | Flag Name (Short) | Description                                                                                       |
| ---------------- | ----------------- | ------------------------------------------------------------------------------------------------- |
| `--flags-dir`    | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                       |
| `--json`         | N/A               | **Type:** Boolean<br><br>Format output as json.                                                   |
| `--verbose`      | N/A               | **Type:** Boolean<br><br>Display whether the configuration variables are set locally or globally. |

## Examples for config get

Get the value of the "target-org" configuration variable.

```shell
sf config get target-org
```

Get multiple configuration variables and display whether they're set locally or globally:

```shell
sf config get target-org api-version --verbose
```
