1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-09 19:06:53 +00:00
gcloud-help/gcloud/artifacts/attachments/download
2025-05-07 10:56:18 +00:00

104 lines
3.9 KiB
Text

NAME
gcloud artifacts attachments download - download an Artifact Registry
attachment from a repository
SYNOPSIS
gcloud artifacts attachments download
[ATTACHMENT : --location=LOCATION --repository=REPOSITORY]
--destination=DESTINATION [--chunk-size=CHUNK_SIZE]
[--oci-version-name=OCI_VERSION_NAME] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Download an Artifact Registry attachment from a repository.
EXAMPLES
To download the attachment my-attachment to /path/to/destination/:
$ gcloud artifacts attachments download my-attachment \
--destination=/path/to/destination/
To download the attachment my-attachment in 8000 byte chunks to
/path/to/destination/:
$ gcloud artifacts attachments download my-attachment \
--destination=/path/to/destination/ --chunk-size=8000
For Docker-format repositories only: to download the attachment stored in
the OCI version
projects/my-project/locations/us/repositories/my-repo/packages/my-package/versions/sha256:123
to /path/to/destination/:
$ gcloud artifacts attachments download \
--oci-version-name=projects/my-project/locations/us/\
repositories/my-repo/packages/my-package/versions/sha256:123 \
--destination=/path/to/destination/
For Docker-format repositories only: to download the attachment stored in
the OCI version with URI
us-docker.pkg.dev/my-project/my-repo/my-package@sha256:123 to
/path/to/destination/:
$ gcloud artifacts attachments download \
--oci-version-name=us-docker.pkg.dev/my-project/my-repo/\
my-package@sha256:123 --destination=/path/to/destination/
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.
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
--destination=DESTINATION
Path where you want to save the downloaded attachment files.
OPTIONAL FLAGS
--chunk-size=CHUNK_SIZE
If specified, the chunk size (bytes) to use for downloading the
package.
--oci-version-name=OCI_VERSION_NAME
For Docker-format repositories only. The version name of the OCI
artifact to download.
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.