gcloud command on Google Cloud SDK
Posted at 2024/12/232 min to read
#gcloud Command
#initialize
Logging in
Logging out
#Project Management
List all available projects:
Get the IAM policy for a specific project:
Set the active project:
#Compute Engine
List all virtual machine instances:
Create a new virtual machine instance:
Delete an instance:
#Cloud Storage
List all buckets:
Create a new bucket:
Delete a bucket:
Upload a file to a bucket:
Download a file from a bucket:
#IAM Management
Add an IAM policy binding to a user:
Remove an IAM policy binding:
#Kubernetes Engine
List all clusters:
Create a new cluster:
Delete a cluster:
#Cloud Functions
List all deployed functions:
Deploy a new function:
Delete a function:
#Logs
View logs for a specific project:
Stream logs in real-time: