config get

Get the value of a configuration variable.

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.

force:config:get

Flag Name (Long)Flag Name (Short)Description
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑verboseN/AType: Boolean

Display whether the configuration variables are set locally or globally.

Get the value of the “target-org” configuration variable.

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