gcloud CLI init:
export bucket name (it must be unique)
Create bucket
Upload an object into your bucket:
Download the object from your bucket
Copy the object to a folder in the bucket
List contents of a bucket or folder
List details for an object
Make the objects publicly accessible
- Use the
gcloud storage buckets add-iam-policy-binding
command to grant all users permission to read the images stored in your bucket:
- To remove this access, use the command:
Give someone access to your bucket
Use the gcloud storage buckets add-iam-policy-binding
command to give a specific email address permission to add objects to your bucket:
To remove this permission, use the command:
Delete an object
Use the gcloud storage rm
command to delete one of your images:
Clean up
Use the gcloud storage rm
command with the --recursive
flag to delete the bucket and anything inside of it: