Newer Version Available

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

config:unset

Unsets the local and global configuration variables for the Salesforce CLI.

Help for config:unset

Local variables apply only to your current project. Global variables apply in any directory.

Examples for config:unset

1sfdx config:unset defaultusername defaultdevhubusername
1sfdx config:unset defaultdevhubusername -g

Command Syntax

sfdx config:unset
[--json]
[--loglevel LOGLEVEL]
[-g]

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
-g | --global
Optional

Unsets the configuration variables globally, so they can be used from any directory.

Type: boolean