mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-13 16:37:00 +00:00
84 lines
3 KiB
Text
84 lines
3 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
|
|
|
|
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
|
|
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.
|