Here’s how to login to GCP from Google SDK.
gcloud auth login
- Click on the URL to authenticate on your browser.
- Login with your Google Account. Use MFA if prompted.
- Click Allow when prompted.
You will then be taken to a page that you have successfully logged in.