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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With