In this post, I’m sharing my notes from a recent experience installing and configuring the Google Cloud SDK for a development task.
- Begin by running the
install.shscript in the
Newyork:google-cloud-sdk esumit$ ./install.sh
- Opt in to usage data collection to help improve the Google Cloud SDK:
Do you want to help improve the Google Cloud SDK (y/N)? y
- Review the list of available components, with the current version being 274.0.1.
- To install or remove components, run:
$ gcloud components install COMPONENT_ID
$ gcloud components remove COMPONENT_ID
- Update the SDK installation to the latest version by running:
$ gcloud components update
- Modify your profile to update your
$PATHand enable shell command completion:
Do you want to continue (Y/n)? Y
- Update the appropriate rc file to bring the Google Cloud CLIs into your environment. Leave blank to use the default file:
Enter a path to an rc file to update, or leave blank to use [/Users/esumit/.bash_profile]:
- Start a new shell for the changes to take effect. For more information on getting started, visit the Google Cloud SDK Quickstarts.
- Authenticate with your Google Cloud account:
Newyork:google-cloud-sdk esumit$ gcloud auth login
If you encounter the “command not found” error, make sure that the Google Cloud SDK
bin directory is in your