- 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] [--parallelism=PARALLELISM] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Downloads an Artifact Registry file based on file name.
- EXAMPLES
-
To download a file named
myfilein projectmy-projectunder repositorymy-repoinus-central1to the local path~/:gcloud artifacts files download --location=us-central1 --project=my-project --repository=my-repo --destination=~/ myfileTo download a file named
myfilein projectmy-projectunder repositorymy-repoinus-central1to the local path~/using parallel multipart download with 4 threads:gcloud artifacts files download --location=us-central1 --project=my-project --repository=my-repo --destination=~/ --parallelism=4 myfileTo download a file named
myfilein projectmy-projectunder repositorymy-repoinus-central1to 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
projectattribute:-
provide the argument
fileon the command line with a fully specified name; -
provide the argument
--projecton 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
nameattribute:-
provide the argument
fileon 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
locationattribute:-
provide the argument
fileon the command line with a fully specified name; -
provide the argument
--locationon the command line; -
set the property
artifacts/location.
-
provide the argument
--repository=REPOSITORY-
Repository of the file.
To set the
repositoryattribute:-
provide the argument
fileon the command line with a fully specified name; -
provide the argument
--repositoryon 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.
--parallelism=PARALLELISM- Specifies the number of threads to use for downloading the file in parallel.
- 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 helpfor details.
gcloud artifacts files download
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 2025-08-19 UTC.