gcloud alpha design-center spaces catalogs templates revisions create

NAME
gcloud alpha design-center spaces catalogs templates revisions create - create a new catalog template revision
SYNOPSIS
gcloud alpha design-center spaces catalogs templates revisions create (REVISION : --catalog=CATALOG --location=LOCATION --space=SPACE --template=TEMPLATE) --developer-connect-repo=DEVELOPER_CONNECT_REPO --developer-connect-repo-dir=DEVELOPER_CONNECT_REPO_DIR --developer-connect-repo-ref=DEVELOPER_CONNECT_REPO_REF [--async] [--description=DESCRIPTION] [--metadata=METADATA] [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Create a new catalog template revision.
EXAMPLES
To create a new catalog template revision named my-revision for the template my-template, within the catalog my-catalog and space my-space, in location us-central1 and project my-project, using a Developer Connect repository as the source, run:
gcloud alpha design-center spaces catalogs templates revisions create my-revision --project=my-project --location=us-central1 --space=my-space --catalog=my-catalog --template=my-template --description="My test revision description" --developer-connect-repo=projects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-repo --developer-connect-repo-ref=refs/tags/v1.0.0 --developer-connect-repo-dir=modules/my-product
Or run using the full resource name:
gcloud alpha design-center spaces catalogs templates revisions create projects/my-project/locations/us-central1/spaces/my-space/catalogs/my-catalog/templates/my-template/revisions/my-revision --description="My test revision description" --developer-connect-repo=projects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-repo --developer-connect-repo-ref=refs/tags/v1.0.0 --developer-connect-repo-dir=modules/my-product
To create a revision using a metadata file from a local path, run:
gcloud alpha design-center spaces catalogs templates revisions create my-revision --project=my-project --location=us-central1 --space=my-space --catalog=my-catalog --template=my-template --developer-connect-repo=projects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-repo --developer-connect-repo-ref=refs/tags/v1.0.0 --developer-connect-repo-dir=modules/my-product --metadata=/path/to/metadata.yaml
POSITIONAL ARGUMENTS
Revision resource - The revision to create. The arguments in this group can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute:

  • provide the argument revision on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

This must be specified.

REVISION
ID of the revision or fully qualified identifier for the revision.

To set the revision attribute:

  • provide the argument revision on the command line.

This positional argument must be specified if any of the other arguments in this group are specified.

--catalog=CATALOG
The ID of the catalog.

To set the catalog attribute:

  • provide the argument revision on the command line with a fully specified name;
  • provide the argument --catalog on the command line.
--location=LOCATION
The Cloud location for the revision.

To set the location attribute:

  • provide the argument revision on the command line with a fully specified name;
  • provide the argument --location on the command line.
--space=SPACE
The ID of the space.

To set the space attribute:

  • provide the argument revision on the command line with a fully specified name;
  • provide the argument --space on the command line.
--template=TEMPLATE
The ID of the template.

To set the template attribute:

  • provide the argument revision on the command line with a fully specified name;
  • provide the argument --template on the command line.
REQUIRED FLAGS
--developer-connect-repo=DEVELOPER_CONNECT_REPO
The Developer Connect repository to use as a source. Example: projects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-repo
--developer-connect-repo-dir=DEVELOPER_CONNECT_REPO_DIR
The directory within the repository to use. Example: "modules/my-product"
--developer-connect-repo-ref=DEVELOPER_CONNECT_REPO_REF
The Git ref (branch or tag) within the repository to use. Example: "refs/tags/v1.0.0" or "refs/heads/main" or "refs/commits/269b518b99d06b31ff938a2d182e75f5e41941c7".
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION
A description for the revision.
--metadata=METADATA
Path to a local YAML file containing the template metadata.
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.

API REFERENCE
This command uses the designcenter/v1alpha API. The full documentation for this API can be found at: http://cloud.google.com/application-design-center/docs
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.