CommandException: "mb" command does not support "file://" URLs. Did you mean to use a gs:// URL?
Asked Answered
T

3

15

I am running Google Cloud Shell on my Windows 7, when trying to fire a new bucket on my PRJOECT I am getting an error.

Command --> C:\Users********>gsutil mb gs://MY-PROJECT-ID -p MY-PROJECT-ID

Error

CommandException: "mb" command does not support "file://" URLs. Did you mean to use a gs:// URL?

Anyone to help?

thanks

Tamboura answered 20/1, 2018 at 11:56 Comment(0)
H
23

Try this (bucket name argument at the end):

gsutil mb -p my-project-id gs://my-bucket-name
Haynie answered 20/1, 2018 at 20:35 Comment(0)
S
7

set cloud platform with the current project before you do anything else

gcloud config set project qwiklabs-gcp-PROJECT_ID

Surpassing answered 26/4, 2020 at 17:11 Comment(0)
J
0

I used gs:// before the bucket name and that worked.

gsutil mb gs://this-is-also-a-bucket-name-23432

I did set the current project with as adviced above

gcloud config set project qwiklabs-gcp-PROJECT_ID
Joeljoela answered 13/4, 2023 at 11:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.