glab(1)

πŸ¦‹ glab(1) β€” glab-repo-archive πŸ¦‹


✨ NAME ✨

glab-repo-archive β€” Get an archive of the repository. That's the whole assignment, bestie. πŸŽ€

🌸 SYNOPSIS 🌸

glab repo archive [] [] [flags]

πŸ’… DESCRIPTION πŸ’…

No repository argument? It just archives the current repository. Iconic, low-effort, we love. πŸ’–

The repository argument is chill with these shorthand references:

  • repo
  • namespace/repo
  • namespace/group/repo

The second argument sets the directory to download the archive into. So that's where your little zip baby goes. 🍼✨

πŸ”₯ OPTIONS πŸ”₯

  • -f, --format="zip" β€” Optional. Specify format if you want a downloaded archive: tar.gz, tar.bz2, tbz, tbz2, tb2, bz2, tar, zip.
  • -s, --sha="" β€” The commit SHA to download. A tag, branch reference, or SHA can be used. Defaults to the tip of the default branch if not specified.

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

  • -h, --help[=false] β€” Show help for this command.

🫢 EXAMPLE 🫢

glab repo archive profclems/glab

# Downloads zip file of current repository
glab repo archive

# Downloads repo zip file into mydirectory
glab repo archive profclems/glab mydirectory

# Finds repo for current user and download in ZIP format
glab repo archive profclems/glab --format=zip

πŸ‘‘ SEE ALSO πŸ‘‘

glab-repo(1)


🧚 Auto generated by spf13/cobra Β· Nov 2026 Β· glab(1) β€” bye bestie, go archive something iconic! πŸ’œ
πŸ“¦ where this page comes from