
Rajat Sharma
When I run the command "gcloud compute instances list" in a new terminal window(SSH Cloud Shell), it gives me an error "ERROR: (gcloud.compute.instances.list) The project property is set to the empty string, which is invalid. To set your project, run:". But when I run the same command in the same browser window in which GCP is running it runs fine. why is that?
Hello Rajat, i think the project might not be set when we create a new shell . can you run this command and see if the project is set properly? " gcloud config get-value project "