Skip to main content

gcloud download a folder

#!/usr/bin/env bash
 
project="my_project"
bucket="my_bucket"
object="path/to/file/or/folder"
 
gcloud auth login
gcloud config set project "$project"
gsutil -m cp -r "gs://$bucket/$object" .