File: //snap/google-cloud-cli/396/help/man/man1/gcloud_artifacts_generic_download.1
.TH "GCLOUD_ARTIFACTS_GENERIC_DOWNLOAD" 1
.SH "NAME"
.HP
gcloud artifacts generic download \- download a generic artifact from a generic artifact repository
.SH "SYNOPSIS"
.HP
\f5gcloud artifacts generic download\fR \fB\-\-destination\fR=\fIDESTINATION\fR \fB\-\-package\fR=\fIARTIFACT\fR \fB\-\-version\fR=\fIVERSION\fR [\fB\-\-chunk\-size\fR=\fICHUNK_SIZE\fR] [\fB\-\-name\fR=\fINAME\fR] [\fB\-\-parallelism\fR=\fIPARALLELISM\fR] [\fB\-\-location\fR=\fILOCATION\fR\ \fB\-\-repository\fR=\fIREPOSITORY\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Download a generic artifact from a generic artifact repository.
.SH "EXAMPLES"
To download version v0.1.0 of myfile.txt located in a repository in
"us\-central1" to /path/to/destination/:
.RS 2m
$ gcloud artifacts generic download \-\-location=us\-central1 \e
\-\-project=myproject \-\-repository=myrepo \-\-package=mypackage \e
\-\-version=v0.1.0 \-\-destination=/path/to/destination/ \e
\-\-name=myfile.txt
.RE
To download version v0.1.0 of myfile.txt located in a repository in
"us\-central1" to /path/to/destination/ using parallel multipart download with 4
threads:
.RS 2m
$ gcloud artifacts generic download \-\-location=us\-central1 \e
\-\-project=myproject \-\-repository=myrepo \-\-package=mypackage \e
\-\-version=v0.1.0 \-\-destination=/path/to/destination/ \e
\-\-name=myfile.txt \-\-parallelism=4
.RE
To download version v0.1.0 of myfile.txt in 8000 byte chunks located in a
repository in "us\-central1" to /path/to/destination/:
.RS 2m
$ gcloud artifacts generic download \-\-location=us\-central1 \e
\-\-project=myproject \-\-repository=myrepo \-\-package=mypackage \e
\-\-version=v0.1.0 \-\-destination=/path/to/destination/ \e
\-\-name=myfile.txt \-\-chunk\-size=8000
.RE
To download all files of version v0.1.0 and package mypackage located in a
repository in "us\-central1" to /path/to/destination/ while maintaining the
folder hierarchy:
.RS 2m
$ gcloud artifacts generic download \-\-location=us\-central1 \e
\-\-project=myproject \-\-repository=myrepo \-\-package=mypackage \e
\-\-version=v0.1.0 \-\-destination=/path/to/destination/
.RE
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-destination\fR=\fIDESTINATION\fR
The path where you want to save the downloaded file.
.TP 2m
\fB\-\-package\fR=\fIARTIFACT\fR
The artifact to download.
.TP 2m
\fB\-\-version\fR=\fIVERSION\fR
The version of the artifact to download.
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-chunk\-size\fR=\fICHUNK_SIZE\fR
If specified, the chunk size (bytes) to use for downloading the package.
.TP 2m
\fB\-\-name\fR=\fINAME\fR
If specified, the file name within the artifact to download.
.TP 2m
\fB\-\-parallelism\fR=\fIPARALLELISM\fR
Specifies the number of threads to use for downloading the file in parallel.
.TP 2m
Repository resource \- The Artifact Registry repository. If not specified, the
current artifacts/repository is used. 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 \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5\-\-repository\fR on the command line with a fully
specified name;
.IP "\(em" 2m
set the property \f5artifacts/repository\fR with a fully specified name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
.RS 2m
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
Location of the repository.
To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-repository\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
set the property \f5artifacts/repository\fR with a fully specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-location\fR on the command line;
.IP "\(bu" 2m
set the property \f5artifacts/location\fR.
.RE
.sp
.TP 2m
\fB\-\-repository\fR=\fIREPOSITORY\fR
ID of the repository or fully qualified identifier for the repository.
To set the \f5repository\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-repository\fR on the command line;
.IP "\(bu" 2m
set the property \f5artifacts/repository\fR.
.RE
.sp
.RE
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha artifacts generic download
.RE
.RS 2m
$ gcloud beta artifacts generic download
.RE