- NAME
-
- gcloud artifacts files download - download an Artifact Registry file
- SYNOPSIS
-
-
gcloud artifacts files download
(FILE
:--location
=LOCATION
--repository
=REPOSITORY
)--destination
=DESTINATION
[--allow-overwrite
] [--local-filename
=LOCAL_FILENAME
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Downloads an Artifact Registry file based on file name.
- EXAMPLES
-
To download a file named
myfile
in projectmy-project
under repositorymy-repo
inus-central1
to the local path~/
:gcloud artifacts files download --location=us-central1 --project=my-project --repository=my-repo --destination=~/ myfile
To download a file named
myfile
in projectmy-project
under repositorymy-repo
inus-central1
to the local path~/
with file overwriting enabled:gcloud artifacts files download --location=us-central1 --project=my-project --repository=my-repo --destination=~/ myfile --allow-overwrite
- POSITIONAL ARGUMENTS
-
-
File resource - The Artifact Registry file 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
file
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.
FILE
-
ID of the file or fully qualified identifier for the file.
To set the
name
attribute:-
provide the argument
file
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location
=LOCATION
-
Location of the file.
To set the
location
attribute:-
provide the argument
file
on the command line with a fully specified name; -
provide the argument
--location
on the command line; -
set the property
artifacts/location
.
-
provide the argument
--repository
=REPOSITORY
-
Repository of the file.
To set the
repository
attribute:-
provide the argument
file
on the command line with a fully specified name; -
provide the argument
--repository
on the command line; -
set the property
artifacts/repository
.
-
provide the argument
-
provide the argument
-
File resource - The Artifact Registry file 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.
- REQUIRED FLAGS
-
--destination
=DESTINATION
- The path where you want to download the file.
- OPTIONAL FLAGS
-
--allow-overwrite
- If specified, the command overwrites an existing file
--local-filename
=LOCAL_FILENAME
- If specified, the name of the downloaded file on the local system is set to the value you use for LOCAL_FILENAME. Otherwise the name of the downloaded file is based on the file name in the registry.
- 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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.