This command below will set the project ID given in Cloudskillboost Labs. The Project ID got from the project list name start with prefix "qwiklabs-gcp".
NOTE: If there are more than one projects given to you while doing the Cloudskillboost's lab, this command below will not work.
output=$(gcloud projects list | grep "PROJECT_ID: qwiklabs-gcp")
for word in $output
do
if [ $(echo $word | grep "qwiklabs-gcp") ]
then
gcloud config set project $word
fi
done