function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chris YaskoskiChris Yaskoski 

Where do you set SFDX Salesforce CLI Environment Variables

This page says I can turn auto-update off by using the following command: SFDX_AUTOUPDATE_DISABLE and gives a Unix example.

I'm running windows, where do I actually set this? I don't see a config file in the sfdx Program Files directory

https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_update_cli.htm
SandhyaSandhya (Salesforce Developers) 
Hi,
 
Try to follow the steps given in the below link.

https://www.java.com/en/download/help/path.xml
 
   Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 

 
Chris YaskoskiChris Yaskoski
@Sandhya - So this is just an OS variable? I was thinking I had to add it to some SFDX config file or VSCode setting. I wish the doc was more clear. Anyways thanks for the reply.
Yuval Vardi 15Yuval Vardi 15
Thats the documentions around this :
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_cli_env_variables.htm

And this is how you can add a variable on your cli : 
export SFDX_AUTOUPDATE_DISABLE=true
Nicola GrisctiNicola Griscti
For Windows, edit your user environment variables. Type "environment variables" into the start bar, click edit env. variables for your account. Click PATH variable and edit..and then click new.. ensure you select where you installed the CLI, e.g. C:\Program Files\Salesforce CLI\bin
This will enable you to use the CLI from anywhere in the C drive path :-) meaning you can then use the sfdx commands in powershell and or visual code!
Chris YaskoskiChris Yaskoski
@Nicola Griscti - Thank you for the reply, I will try this.
GopalGuptaGopalGupta
User-added image
You can try like this. This will work
srinivas_arsrinivas_ar
I have the same issue on a ubuntu server. Can anyone help me with the configuration to set the SFDX_AUTOUPDATE_DISABLE=true?