I had sometime back set the apiVersion
CLI Runtime Configuration value globally for all projects to version 45.0 when I signed up for Spring '19 preview sandbox, using the command:
sfdx force:config:set apiVersion=45.0 --global
Now whenever I executed any SFDX command, I would see the following message in the console.
WARNING: apiVersion configuration overridden at "45.0"
While I could have overridden this again locally when say I proceed using future versions, but that would have required me to set this for every local project.
So, how do I reset the global configuration value to be applicable for all projects?
Best Answer
I had struggled to find this for a bit as I missed the section discussing this in the docs. I realized that the answer was in the same documentation CLI Runtime Configuration Values but was not clearly called out with respect to how to reset global values.
The documentation mentions:
So utilizing the same approach, I was then able to reset the global
apiVersion
that I had set for my SFDX projects using the below command. Note that command to set any global value (using--global
) can be run from either outside or within a SFDX project directory.