Skip to content

mw gitlab repo archive

Releasev0.35.0 · cfeceb67

mw gitlab repo archive <command> [flags]

Clone supports these shorthand references:

  • repo
  • namespace/repo
  • namespace/group/repo
-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.
-h, --help
Show help for this command.
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
$ 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
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.