Google Cloud CLI Cheat Sheet¶
Authentication¶
After creating a service account in the Google Cloud console and creating an access key, configure the gcloud CLI interactively with:
Show the signed-in user¶
Alternatively, you can ensure the CLI is configured properly by running the following command to request a new access token for the currently logged in user:
CLI Version Details¶
Filtering and Querying¶
Enumerate Storage¶
List all buckets in a project:
Enumerate all objects or blobs in a bucket:
Uploading and Downloading Files from Storage¶
Uploading objects from files
Downloading objects as files