Skip to content

Commit 6d9becb

Browse files
chore: Migrate gsutil usage to gcloud storage (#18035)
* chore: Migrate gsutil usage to gcloud storage * Update start.md
1 parent f1bf4b8 commit 6d9becb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/storage/start.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ have to grant Firebase the ability to access these files using the
148148
[Google Cloud SDK](//cloud.google.com/sdk/docs/):
149149
150150
```bash
151-
gsutil -m acl ch -r -u service-PROJECT_NUMBER@gcp-sa-firebasestorage.iam.gserviceaccount.com gs://YOUR-CLOUD-STORAGE-BUCKET
151+
gcloud storage objects add-iam-policy-binding gs://YOUR-CLOUD-STORAGE-BUCKET \
152+
--member="serviceAccount:service-PROJECT_NUMBER@gcp-sa-firebasestorage.iam.gserviceaccount.com" \
153+
--role="roles/storage.objectViewer"
152154
```
153155
154156
You can find your project number as described in the [introduction to

packages/firebase_storage/firebase_storage_web/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ firebase_storage/example$ cat cors.json
4848
And then, with `gsutil`:
4949

5050
```
51-
firebase_storage/example$ gsutil cors set cors.json gs://my-example-bucket.appspot.com
51+
firebase_storage/example$ gcloud storage buckets update gs://my-example-bucket.appspot.com --cors-file=cors.json
5252
Setting CORS on gs://my-example-bucket.appspot.com/...
5353
```
5454

0 commit comments

Comments
 (0)