NAME gcloud artifacts attachments create - creates an Artifact Registry attachment in a repository SYNOPSIS gcloud artifacts attachments create (ATTACHMENT : --location=LOCATION --repository=REPOSITORY) --attachment-type=ATTACHMENT_TYPE --files=[FILES,...] --target=TARGET [--attachment-namespace=ATTACHMENT_NAMESPACE] [GCLOUD_WIDE_FLAG ...] DESCRIPTION Creates an Artifact Registry attachment in a repository. EXAMPLES To create an attachment for target projects/myproject/locations/us-central1/packages/mypackage/versions/sha256:123 using a file located in /path/to/file/sbom.json: $ gcloud artifacts attachments create \ --target=projects/myproject/locations/us-central1/packages/\ mypackage/versions/sha256:123 --files=/path/to/file/sbom.json POSITIONAL ARGUMENTS Attachment resource - The Artifact Registry attachment name. 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 attachment 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. ATTACHMENT ID of the attachment or fully qualified identifier for the attachment. To set the name attribute: ▸ provide the argument attachment on the command line. This positional argument must be specified if any of the other arguments in this group are specified. --location=LOCATION Location of the attachment. To set the location attribute: ▸ provide the argument attachment on the command line with a fully specified name; ▸ provide the argument --location on the command line; ▸ set the property artifacts/location. --repository=REPOSITORY Repository of the attachment. To set the repository attribute: ▸ provide the argument attachment on the command line with a fully specified name; ▸ provide the argument --repository on the command line; ▸ set the property artifacts/repository. REQUIRED FLAGS --attachment-type=ATTACHMENT_TYPE Type of the attachment --files=[FILES,...] Comma-seperated list of files that are part of this attachment --target=TARGET Target of the attachment, should be fully qualified version name OPTIONAL FLAGS --attachment-namespace=ATTACHMENT_NAMESPACE Namespace of the attachment 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.