I downloaded the source code.zip file from here https://github.com/cloudfoundry/cli/releases then extracted the files and installed it. Then I have added the file path in user variables environment of where the file was installed, i.e. poiting to cf.exe file. Afterwards, when I type in the commad "cf --version", I am getting the following error.
Answer by Siva Balan · Jan 11, 2018 at 09:26 AM
It looks like your home directory is set to H:\ and this network drive was not available for CF CLI when it started up. Can you make sure if H:\ is mapped and is writable? If it is not writable, can you change your defualt home directory to somewhere in C:\ or a local drive where it is writable?
I am not entirely sure how to do that. Could you please help me with the instructions for it? I would like to set it up at C:\\Users...
Can you provide the output of SET command from your command line?
HOMEDRIVE=C: HOMEPATH=\Users\100483567
That's what I have currently set. Currently I am unable to access the H:\\ drive, but when I did, I remember having cli.JSON file in it for some reason and when I tried downloading CLI again, I never saw that .json file in my C:\\
Nevermind, everything seems to be working fine. But this is so weird because I haven't done anything to it since yesterday.