Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
The Google Cloud SDK, which includes the gcloud CLI, is an essential tool for managing resources and services on Google Cloud Platform (GCP). While gcloud CLI is typically associated with Unix-based systems, it is fully compatible with Windows environments. This article will guide you through the process of installing and using gcloud CLI on a Windows system, enabling you to manage your GCP resources efficiently from the command line.
Examples:
Installing Google Cloud SDK on Windows:
gcloud init
Authenticating with gcloud CLI:
gcloud auth login
Listing GCP Projects:
gcloud projects list
Creating a New GCP Project:
gcloud projects create [PROJECT_ID] --name="[PROJECT_NAME]"
[PROJECT_ID]
with a unique identifier for your project and [PROJECT_NAME]
with a descriptive name.Setting the Default Project:
gcloud config set project [PROJECT_ID]
[PROJECT_ID]
with the ID of the project you want to set as default.Deploying an Application to Google App Engine:
gcloud app deploy
Listing Compute Engine Instances:
gcloud compute instances list
Connecting to a Compute Engine Instance via SSH:
gcloud compute ssh [INSTANCE_NAME] --zone=[ZONE]
[INSTANCE_NAME]
with the name of your instance and [ZONE]
with the zone where the instance is located.