How to logout from an account on gcloud SDK

Views: 489 Ask New Question


I want to switch to a different google account on my gcloud SDK, how can I logout from the existing account?

On By

1 Answer


If you want to logout from all the accounts run the following command

gcloud auth revoke --all

If you want to logout from a specific account then run the following command

gcloud auth revoke <your_account>

If you want to login with a different account, you can run the following command

gcloud auth login

This will take you to the Google's login page where you can choose the account with which you want to login

On By


Answer This Question