Skip to content

mw gitlab securefile download

Releasev0.35.0 · cfeceb67

mw gitlab securefile download <fileID> [flags]

Download a secure file for a project.

--all
Download all (limit 100) of a project's secure files. Files are downloaded with their original name and file extension.
--force-download
Force download file(s) even if checksum verification fails. Warning: when enabled, this setting allows the download of files that are corrupt or tampered with.
--id <int>
ID of the secure file to download.
--name <string>
Name of the secure file to download. Saves the file with this name, or to the path specified by --path.
--no-verify
Do not verify the checksum of the downloaded file(s). Warning: when enabled, this setting allows the download of files that are corrupt or tampered with.
--output-dir <string>
Output directory for files downloaded with --all. Default: ..
-p, --path <string>
Path to download the secure file to, including filename and extension. Default: ./downloaded.tmp.
-h, --help
Show help for this command.
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-R, --repo <OWNER/REPO>
Select another repository. Can use either OWNER/REPO or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
# Download a project's secure file using the file's ID by argument or flag.
$ glab securefile download 1
$ glab securefile download --id 1
# Download a project's secure file using the file's ID to a given path.
$ glab securefile download 1 --path="securefiles/file.txt"
# Download a project's secure file without verifying its checksum.
$ glab securefile download 1 --no-verify
# Download a project's secure file even if checksum verification fails.
$ glab securefile download 1 --force-download
# Download a project's secure file using the file's name to the current directory.
$ glab securefile download --name my-secure-file.pem
# Download a project's secure file using the file's name to a given path.
$ glab securefile download --name my-secure-file.pem --path=securefiles/some-other-name.pem
# Download all (limit 100) of a project's secure files.
$ glab securefile download --all
# Download all (limit 100) of a project's secure files to a given directory.
$ glab securefile download --all --output-dir secure_files/
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.