gsutil command line tool

The gcloud CLI lets you manage resources and services from the command line. It also contains service and data emulators to speed up local development. Here for install instructions


You have already install the last version and your user logged in the Cloud Shell.

The CLI has these command line tools:

  1. gcloud
  2. gsutil
  3. bq

To set the cache contol

‘‘‘gsutil -h “Content-Type:text/html”
-h “Cache-Control:public, max-age=3600” cp -r images

Set cors in a bucket

Create a file

[ { “origin”: ["*"], //poner los dominios autorizados “method”: [“GET”], “responseHeader”: [“Content-Type”], “maxAgeSeconds”: 3600 } ]

gsutil cors set cors gs://my-awesome-bucket