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

amine Moussaid picture amine Moussaid · Jan 20, 2018 · Viewed 8.3k times · Source

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

Answer

Brandon Yarbrough picture Brandon Yarbrough · Jan 20, 2018

Try this (bucket name argument at the end):

gsutil mb -p my-project-id gs://my-bucket-name