Careeroza
Console, gcloud & Cloud Shell
Three Ways to Work
| Tool | Use |
|---|---|
| Cloud Console (console.cloud.google.com) | web UI: explore, create and monitor resources |
gcloud CLI | scripts and repeatable commands (Google Cloud SDK) |
| Cloud Shell | a browser terminal with gcloud, Docker, kubectl and 5 GB home disk, free |
| Terraform / client libraries | infrastructure as code, and calling GCP from your apps |
Set Up gcloud
Example
gcloud init # log in and pick a default project
gcloud config set project shop-dev-1234
gcloud config set compute/region asia-south1
gcloud config listExample output
[compute] region = asia-south1 [core] account = [email protected] project = shop-dev-1234
Enable APIs
Example
Each service is an API that must be enabled in the project before use:
gcloud services enable run.googleapis.com sqladmin.googleapis.com artifactregistry.googleapis.comExample output
Operation "operations/acf.p2-123456789012-..." finished successfully.