Cli/ref/mw gitlab repo archive

< Cli | ref

mw gitlab repo archive

edit

Get an archive of the repository.

Synopsis

edit

Clone supports these shorthands

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

Examples

edit
glab repo archive profclems/glab
glab repo archive  # Downloads zip file of current repository
glab repo archive profclems/glab mydirectory  # Downloads repo zip file into mydirectory
glab repo archive profclems/glab --format=zip   # Finds repo for current user and download in zip format

Options

edit
  -f, --format string   Optionally 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. This defaults to the tip of the default branch if not specified

Options inherited from parent commands

edit
      --help             Help for this command
      --no-interaction   Do not ask any interactive questions
  -v, --verbose count    Increase output verbosity. Example: --verbose=2 or -vv

SEE ALSO

edit