Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.3 KB

File metadata and controls

53 lines (38 loc) · 1.3 KB
title `glab repo archive`
stage Create
group Code Review
info To determine the technical writer assigned to the Stage/Group associated with this page, see <https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments>

Get an archive of the repository.

Synopsis

Clone supports these shorthand references:

  • repo
  • namespace/repo
  • namespace/group/repo
glab repo archive <command> [flags]

Examples

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

Options

  -f, --format string   Optional. Specify format if you want a downloaded archive: tar.gz, tar.bz2, tbz, tbz2, tb2, bz2, tar, zip. (default "zip")
  -s, --sha string      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   Show help for this command.