---
schema_version: "1"
id: b78659f45bd10061c763166d60b8ab78478ad79e62620679c9e5c70978ced240
title: config get
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/config/cli_reference_config_get.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_config_get.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0ec165a8721460f4a4b67c8e490710d72b01bbf6bd18d19e2658cec8b45621fa
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# 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 |
|------------------|-------------------|-------------|
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;verbose</code> | 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
```
<!-- prettier-ignore-end -->
