Salesforce CLI Command Reference
Release Notes
Deprecation Policy
config get
config list
config set
config unset
Unset local or global configuration variables.
Local configuration variables apply only to your current project. Global configuration variables apply in any Salesforce DX project.
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:unset
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑global | ‑g | Type: Boolean Unset the configuration variables globally. |
‑‑json | N/A | Type: Boolean Format output as json. |
Unset the local “target-org” configuration variable:
1sf config unset target-orgUnset multiple configuration variables globally:
1sf config unset target-org api-version --global