Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 288
amine Moussaid Avatar asked Jan 20 '18 11:01

amine Moussaid


2 Answers

Try this (bucket name argument at the end):

gsutil mb -p my-project-id gs://my-bucket-name
like image 61
Brandon Yarbrough Avatar answered Oct 28 '22 07:10

Brandon Yarbrough


set cloud platform with the current project before do anything gcloud config set project qwiklabs-gcp-PROJECT_ID

like image 35
jordy bayo Avatar answered Oct 28 '22 08:10

jordy bayo