glab(1)
π
glab-packages-download β the page for glab(1), bestie edition
okay so you opened the glab(1) manual and landed on this one β welcome, this is the page about pulling a single file out of a project's package registry, and honestly it's giving "I just need my zip file" main character energy. let's go β¨
πΈ NAME
glab-packages-download β download a file from a project's package registry. that's it, that's the vibe π
π¦ SYNOPSIS
glab packages download --name --version --filename [flags]
β¨ DESCRIPTION
so you wanna download a generic package file. you find it by its package name, its version, and its file name β those three are the whole personality of the thing. periodt.
now, where does it land? that's --path's job, and it's lowkey the most interesting part:
- if
--pathnames a directory (it ends with a separator, or it already exists as one), the file gets saved in there under its original name β no rebranding, she keeps her identity π - otherwise it's saved as that exact path, which means you can totally rename the file. slay.
- and if you don't pass
--pathat all? default is the current directory, original name. iconic, no notes.
by default the downloaded file gets verified against the checksum stored in the registry. heads up though β this costs extra API calls to look up the file's metadata. so if you're in a rush, --no-verify skips it. but bestie... that can let corrupted or tampered files through. use with caution, fr fr π
also! if the target file already exists, the download just fails. no silent overwriting, she's not like that. use --force if you actually want to overwrite it.
and if you're not downloading from your current project β use --repo to target another one. easy π«Ά
π OPTIONS
--filename=""β the name of the file inside the package that you wanna download. like, the actual thing you're grabbing π--force[=false]β overwrite the target file if it's already chillin' there. without this, existing file = download fails.-n,--name=""β the name of the package. yes,-nis the short one, you're welcome π--no-verify[=false]β nope out of the checksum verification entirely. β οΈ warning: when enabled, this allows the download of files that are corrupt or tampered with. like, actually think about this one before you flip it.-p,--path=""β directory to save the file in (keeps its original name) or a full file path to rename it. defaults to the original name in the current directory. she's flexible like that π¦--version=""β the version of the package. not optional vibes, you need it.
π§ OPTIONS INHERITED FROM PARENT COMMANDS
these come from the parent command, they're not this command's own but you get them anyway:
-h,--help[=false]β show help for this command. the classic.-R,--repo=""β select another repository. you can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO. the full URL or Git URL is also accepted β so many options, all valid π
π₯ EXAMPLE
okay these are the actual moves, copy-paste away:
# Download a package file to the current directory
glab packages download --name my-package --version 1.0.0 --filename app.zip
# Download into a directory, keeping the original file name
glab packages download -n my-package --version 1.0.0 --filename app.zip --path ./downloads/
# Download to an exact path, renaming the file
glab packages download -n my-package --version 1.0.0 --filename app.zip --path ./downloads/renamed.zip
# Download to an absolute path
glab packages download -n my-package --version 1.0.0 --filename app.zip --path /tmp/downloads/app.zip
# Download without verifying the checksum
glab packages download -n my-package --version 1.0.0 --filename app.zip --no-verify
# Overwrite an existing file
glab packages download -n my-package --version 1.0.0 --filename app.zip --force
# Use the 'dl' alias and target another project
glab packages dl -n my-package --version 1.0.0 --filename app.zip -R owner/repo
see that last one? glab packages dl β yeah there's an alias, it's short, it's cute, it ate π
π SEE ALSO
glab-packages(1)β the parent page, go say hi to the rest of the packages crew π
that's the whole page bestie, go forth and download responsibly π
auto generated by spf13/cobra β yeah, a robot wrote the original, but I rewrote it with β¨flavorβ¨.
version/date check: Nov 2026, and the footer says glab(1) β so this page is from the glab manual, section 1. mwah π
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms