How can i change the current running project to another project in GCP (Google Cloud Platform) account using cli commands other than using gcloud init
manually.
$gcloud projects list
will list the projects running on my account. I want to change the current project to any other project from the list using a cli command.
gcloud config set project my-project
You may also set the environment variable $CLOUDSDK_CORE_PROJECT
.