How to logout from an account on gcloud SDK

49579


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

1 Answer

6 years ago by

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

6 years ago by Karthik Divi