Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

gsutils specify a project is not working

The command and the error: 
@cloudshell:~ (opslabsproject)$ gsutil –prpject opsLabsProject -l NORTHAMERICA-NORTHEAST1 gs://storgae-lab-cli-test

CommandException: option –prpject not recognized

1 Answers

The global CLI options of gsutil does not have any switch for choosing a project, but it’s up to each sub-command like ls, mb, etc.

For example, to list a GCS bucket by specifying the project:


gsutil ls -p <project ID or project number> gs://<bucket name>

So the above command was just simply in an incorrect format.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?