gcloud_alpha_iam_service-accounts_create (1)
NAME
- gcloud alpha iam service-accounts create - create a service account for a project
SYNOPSIS
-
gcloud alpha iam service-accounts create NAME [--display-name=DISPLAY_NAME] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) This command creates a service account with the provided name. For
POSITIONAL ARGUMENTS
-
- NAME
-
The internal name of the new service account. Used to generate an IAM_ACCOUNT
(an IAM internal email address used as an identifier of service account), which
must be passed to subsequent commands.
FLAGS
-
- --display-name=DISPLAY_NAME
-
A textual name to display for the account.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
To create a service account for your project, run:
-
$ gcloud alpha iam service-accounts create some-account-name \
--display-name "My Service Account"
To work with this service account in subsequent IAM commands, use the email resulting from this call as the IAM_ACCOUNT argument.
NOTES
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 will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud iam service-accounts create $ gcloud beta iam service-accounts create