File: //snap/google-cloud-cli/396/help/man/man1/gcloud_artifacts_versions_export.1
.TH "GCLOUD_ARTIFACTS_VERSIONS_EXPORT" 1
.SH "NAME"
.HP
gcloud artifacts versions export \- export an Artifact Registry package version
.SH "SYNOPSIS"
.HP
\f5gcloud artifacts versions export\fR (\fIVERSION\fR\ :\ \fB\-\-location\fR=\fILOCATION\fR\ \fB\-\-package\fR=\fIPACKAGE\fR\ \fB\-\-repository\fR=\fIREPOSITORY\fR) \fB\-\-gcs\-destination\fR=\fIGCS_DESTINATION\fR [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Export files of an Artifact Registry package version to a Google Cloud Storage
path.
.SH "EXAMPLES"
To export version \f51.0.0\fR of package \f5my\-pkg\fR to a Google Cloud Storage
path \f5gs://my\-bucket/sub\-folder\fR under the current project, repository,
and location, run:
.RS 2m
$ gcloud artifacts versions export 1.0.0 \-\-package=my\-pkg \e
\-\-gcs\-destination=gs://my\-bucket/sub\-folder
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Version resource \- The Artifact Registry version 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 \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5version\fR on the command line 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
This must be specified.
.RS 2m
.TP 2m
\fIVERSION\fR
ID of the version or fully qualified identifier for the version.
To set the \f5name\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5version\fR on the command line.
.RE
.sp
This positional argument must be specified if any of the other arguments in this
group are specified.
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
Location of the version.
To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5version\fR on the command line 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\-\-package\fR=\fIPACKAGE\fR
Package of the version.
To set the \f5package\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5version\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-package\fR on the command line.
.RE
.sp
.TP 2m
\fB\-\-repository\fR=\fIREPOSITORY\fR
Repository of the version.
To set the \f5repository\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5version\fR on the command line with a fully specified
name;
.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 "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-gcs\-destination\fR=\fIGCS_DESTINATION\fR
Google Cloud Storage path to export the artifact to.
.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.