hardgcloud

Apply a lifecycle management policy to a Cloud Storage bucket from a JSON file

command

gcloud storage buckets update gs://BUCKET --lifecycle-file LIFECYCLE_FILE

also accepted

gcloud storage buckets updategcloud storage buckets update gs://BUCKET --lifecycle-file

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud Storage category.

gcloudstoragebucketsupdategs://BUCKET--lifecycle-fileLIFECYCLE_FILE
FlagPurpose
--lifecycle-fileBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →