You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The Google Cloud SDK is a set of command-line tools for managing GCP resources and services. At its core is the gcloud CLI, the primary command-line interface for interacting with Google Cloud. Mastering the gcloud CLI is essential for automating tasks, scripting deployments, and managing resources efficiently.
The Cloud SDK is a collection of tools that includes:
| Tool | Purpose |
|---|---|
| gcloud | The primary CLI for managing GCP resources (compute, networking, IAM, etc.) |
| gsutil | Command-line tool for working with Cloud Storage (uploading, downloading, managing buckets) |
| bq | Command-line tool for BigQuery (running queries, managing datasets and tables) |
| kubectl | Kubernetes command-line tool (included as an optional component) |
The Cloud SDK is available for Windows, macOS, and Linux, and comes pre-installed in Cloud Shell.
brew install google-cloud-sdk
# Add the Cloud SDK distribution URI as a package source
echo "deb [signed-by=/usr/share/keyrings/cloud.google.asc] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo tee /usr/share/keyrings/cloud.google.asc
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.