Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Move Google Cloud SDK Directory

I mistakenly installed the Google Cloud SDK to the wrong directory on my local machine (I installed it to my Google Drive folder, which is not ideal). What is the preferred method of moving the folder? I haven't tried anything yet for fear of creating issues with environment variables that may have been set during installation. I'm running OS X on my local machine.

like image 632
bloosh Avatar asked Oct 28 '14 06:10

bloosh


People also ask

Where is Google Cloud SDK installed?

The installer can be downloaded from the Google Cloud Platform website, or from the Windows or MacOS distribution channels. Once the installer is run, the Cloud SDK is installed in the same directory as the installer.

How do I remove Google Cloud SDK?

A user whose Google Cloud SDK credentials have been compromised should visit accounts.google.com, navigate to Connected apps & sites, and remove the Google Cloud SDK from the list of connected apps.


1 Answers

The Cloud SDK is self contained, and so the google-cloud-sdk directory can generally be moved to wherever you like. The only thing that is configured outside that directory is your ~/.bash_profile file (only if you said yes during the installation process) which adds the SDK to your PATH and installs command tab completion. If you had the installer update that, probably the easiest thing to do is just delete the google-cloud-sdk directory entirely and reinstall in the location you want. The installer will re-update your ~/.bash_profile with the new location.

like image 116
Mark Avatar answered Oct 28 '22 21:10

Mark