- gcloud alpha auth print-access-token - print an access token for the specified account
(ALPHA)Print an access token for the specified account. See RFC6749 for more information about access tokens.
To print access tokens:
gcloud alpha auth print-access-token
- POSITIONAL ARGUMENTS
- Account to get the access token for. If not specified, the current active account will be used.
- GCLOUD WIDE FLAGS
These flags are available to all commands:
$ gcloud helpfor details.
- This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access allowlist. These variants are also available:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-03-23 UTC.