HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_alpha_auth_revoke.1
.TH "GCLOUD_ALPHA_AUTH_REVOKE" 1



.SH "NAME"
.HP
gcloud alpha auth revoke \- revoke access credentials for an account



.SH "SYNOPSIS"
.HP
\f5gcloud alpha auth revoke\fR [\fIACCOUNTS\fR\ ...] [\fB\-\-all\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(ALPHA)\fR Revokes credentials for the specified user accounts, service
accounts or external accounts (workload identity pools).

When given a user account, this command revokes the user account token on the
server. If the revocation is successful, or if the token has already been
revoked, this command removes the credential from the local machine.

When given a service account, this command does not revoke the service account
token on the server because service account tokens are not revocable. Instead,
it will print a warning and remove the credential from the local machine. When
used with a service account, this command has only a local effect and the key
associated with the service account is not deleted. This can be done by
executing \f5gcloud iam service\-accounts keys delete\fR after \f5revoke\fR.

When given an external account (workload identity pool), whether impersonated or
not, the command does not revoke the corresponding token on the server because
these tokens are not revocable. The underlying external credentials (OIDC, AWS,
etc.) used to generate these access tokens have to be revoked too, but gcloud
has no control over that. Instead, it will print a warning and remove the
credential from the local machine.

If no account is specified, this command revokes credentials for the currently
active account, effectively logging out of that account. If \-\-all is given,
the behaviors described above apply individually to each account in the list.

You can revoke credentials when you want to prevent gcloud and other Google
Cloud CLI tools from using the specified account. You do not need to revoke
credentials to switch between accounts.



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
[\fIACCOUNTS\fR ...]

Accounts whose credentials are to be revoked.


.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-all\fR

Revoke credentials for all accounts.


.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.

Run \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:

.RS 2m
$ gcloud auth revoke
.RE

.RS 2m
$ gcloud beta auth revoke
.RE