Newer Version Available
CLI Configuration Values
To set a configuration value for the current project:
1sfdx force:config:set name=<value>To set the value for all your projects:
1sfdx force:config:set name=<value> --globalYou can view the local and global configuration values that you have set. The output lists the local values for the project directory from which you are running the command and all global values.
1sfdx force:config:listTo return one or more previously set configuration values, use force:config:get. It is often useful to specify JSON output for this command for easier parsing in a continuous integration (CI) environment. For example, to return the value of defaultusername and defaultdevhubusername:
1sfdx force:config:get defaultusername defaultdevhubusername --jsonTo unset a configuration value, set it to no value. For example, to unset the instanceUrl configuration value:
1sfdx force:config:set instanceUrl=You can set these CLI configuration values.
| Configuration Value Name | Description |
|---|---|
| defaultusername | The username for an org that all commands run against by default. |
| defaultdevhubusername | The username of your Dev Hub org that the force:org:create command defaults to. |
| instanceUrl | The URL of the Salesforce instance that is hosting your org. |