gcloud beta iam service-accounts sign-jwt

NAME
gcloud beta iam service-accounts sign-jwt - sign a JWT with a managed service account key
SYNOPSIS
gcloud beta iam service-accounts sign-jwtINPUT-FILEOUTPUT-FILE--iam-account=IAM_ACCOUNT[GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) This command signs a JWT using a system-managed serviceaccount key.

If the service account does not exist, this command returns aPERMISSION_DENIED error.

EXAMPLES
To create a sign JWT with a system-managed service account key, run:
gcloudbetaiamservice-accountssign-jwt--iam-account=my-iam-account@my-project.iam.gserviceaccount.cominput.jsonoutput.jwt
POSITIONAL ARGUMENTS
INPUT-FILE
A path to the file containing the JSON JWT Claim set to be signed.
OUTPUT-FILE
A path the resulting signed JWT will be written to.
REQUIRED FLAGS
--iam-account=IAM_ACCOUNT
The service account to sign as.
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$gcloud help for details.

SEE ALSO
For more information on how this command ties into the wider cloudinfrastructure, please seehttps://cloud.google.com/appengine/docs/java/appidentity/.
NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudiamservice-accountssign-jwt
gcloudalphaiamservice-accountssign-jwt

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.