gcloud beta certificate-manager certificates create (CERTIFICATE : --location=LOCATION) (--certificate-file=PATH_TO_FILE --private-key-file=PATH_TO_FILE | [--domains=[DOMAINS,…] : --dns-authorizations=[DNS_AUTHORIZATIONS,…] | --issuance-config=ISSUANCE_CONFIG]) [--async] [--description=DESCRIPTION] [--labels=[KEY=VALUE,…]] [--scope=SCOPE; default="DEFAULT"] [GCLOUD_WIDE_FLAG …]
(BETA) Create a new certificate.
www-example-com, run:
gcloud beta certificate-manager certificates create www-example-com --private-key-file=key.pem --certificate-file=cert.pem
To create a certificate managed by Certificate Manager called
api-example-com, run:
gcloud beta certificate-manager certificates create api-example-com --domains="api.example.com"
To create a certificate managed by Certificate Manager called
api-example-com, using an existing DNS authorization, run:
gcloud beta certificate-manager certificates create api-example-com --dns-authorizations=api-example-com --domains="api.example.com"
To set the project attribute:
certificate on the command line with a fully
specified name;
--project on the command line;
core/project.
CERTIFICATE
To set the certificate attribute:
certificate on the command line.
--location=LOCATIONlocation attribute:
certificate on the command line with a fully
specified name;
--location on the command line;
--certificate-file=PATH_TO_FILE--private-key-file=PATH_TO_FILE--domains=[DOMAINS,…]You may list multiple, comma-separated domain names to include multiple names as Subject Alternative Names on the issued certificate.
This flag argument must be specified if any of the other arguments in this group are specified.Note that each domain requires a matching authorization, and any domain that fails authorization will prevent issuance and/or renewal of the certificate.
To reference multiple DNS authorizations, provide a list of comma separated DNS authorization resource names or URLs. For example:
gcloud beta certificate-manager certificates create --dns-authorizations=api-example-com,www-example-com--issuance-config=ISSUANCE_CONFIG--async--description=DESCRIPTION--labels=[KEY=VALUE,…]-), underscores (_), lowercase characters, and
numbers. Values must contain only hyphens (-), underscores
(_), lowercase characters, and numbers.
--scope=SCOPE; default="DEFAULT"DEFAULT.
SCOPE must be one of:
all-regionsclient-authdefaultedge-cache--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.
certificatemanager/v1 API. The full
documentation for this API can be found at: https://docs.cloud.google.com/certificate-manager/docs/overview
gcloud certificate-manager certificates creategcloud alpha certificate-manager certificates create
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 2026-05-27 UTC.