glab(1)

πŸ“¦
version 1.128.0 Β· 3 versions
, in arch rolling

πŸ’… 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 --path names 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 --path at 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, -n is 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 either OWNER/REPO or GROUP/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