set project id using cloud shell in google cloud platform code example
Example 1: gcloud set project
gcloud config set project <Your-Project-Name>
Example 2: gcloud set project
gcloud config set project my-project
gcloud config set project <Your-Project-Name>
gcloud config set project my-project