Newer Version Available

This content describes an older version of this product. View Latest

config:get

Get config var values for given names.

Help for config:get

Gets the Salesforce CLI configuration values for your default scratch org, your default Dev Hub org, your default instance URL, or any combination of the three. To see your default scratch org username, include 'defaultusername'.

To see your default Dev Hub, include 'defaultdevhubusername'.

To see your default instance URL, include 'instanceUrl'.

To see the locations where your values are set, include the --verbose flag.

Examples for config:get

1sfdx config:get defaultusername
1sfdx config:get defaultusername defaultdevhubusername instanceUrl
1sfdx config:get defaultusername defaultdevhubusername --verbose

Command Syntax

sfdx config:get
[--json]
[--loglevel LOGLEVEL]
[--verbose]

Parameters

--json
Optional

Format output as JSON.

Type: boolean
--loglevel LOGLEVEL
Optional

The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.

Type: enum
Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
Default value: warn
--verbose
Optional

Emit additional command output to stdout.

Type: boolean

Aliases for config:get

1force:config:get