.nh .TH "glab" "1" "Oct 2024" "Auto generated by spf13/cobra" "" .SH NAME .PP glab-repo-archive - Get an archive of the repository. .SH SYNOPSIS .PP \fBglab repo archive [flags]\fP .SH DESCRIPTION .PP Clone supports these shorthand references: .RS .IP \(bu 2 repo .IP \(bu 2 namespace/repo .IP \(bu 2 namespace/group/repo .RE .SH OPTIONS .PP \fB-f\fP, \fB--format\fP="zip" Optional. Specify format if you want a downloaded archive: tar.gz, tar.bz2, tbz, tbz2, tb2, bz2, tar, zip. .PP \fB-s\fP, \fB--sha\fP="" 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. .SH OPTIONS INHERITED FROM PARENT COMMANDS .PP \fB--help\fP[=false] Show help for this command. .SH EXAMPLE .EX $ 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 .EE .SH SEE ALSO .PP \fBglab-repo(1)\fP