.nh .TH "glab" "1" "Apr 2024" "Auto generated by spf13/cobra" "" .SH NAME .PP glab-repo-clone - Clone a GitLab repository/project .SH SYNOPSIS .PP \fBglab repo clone [flags] [] [-- [\&...]]\fP .SH DESCRIPTION .PP Clone supports these shorthands .RS .IP \(bu 2 repo .IP \(bu 2 namespace/repo .IP \(bu 2 org/group/repo .IP \(bu 2 project ID .RE .SH OPTIONS .PP \fB-g\fP, \fB--group\fP="" Specify group to clone repositories from .PP \fB-p\fP, \fB--preserve-namespace\fP[=false] Clone the repo in a subdirectory based on namespace .PP \fB-a\fP, \fB--archived\fP[=false] Limit by archived status. Use with -a=false to exclude archived repositories. Used with --group flag .PP \fB-G\fP, \fB--include-subgroups\fP[=true] Include projects in subgroups of this group. Default is true. Used with --group flag .PP \fB-m\fP, \fB--mine\fP[=false] Limit by projects in the group owned by the current authenticated user. Used with --group flag .PP \fB-v\fP, \fB--visibility\fP="" Limit by visibility {public, internal, or private}. Used with --group flag .PP \fB-I\fP, \fB--with-issues-enabled\fP[=false] Limit by projects with issues feature enabled. Default is false. Used with --group flag .PP \fB-M\fP, \fB--with-mr-enabled\fP[=false] Limit by projects with merge requests feature enabled. Default is false. Used with --group flag .PP \fB-S\fP, \fB--with-shared\fP[=false] Include projects shared to this group. Default is false. Used with --group flag .PP \fB--paginate\fP[=false] Make additional HTTP requests to fetch all pages of projects before cloning. Respects --per-page .PP \fB--page\fP=1 Page number .PP \fB--per-page\fP=30 Number of items to list per page .SH OPTIONS INHERITED FROM PARENT COMMANDS .PP \fB--help\fP[=false] Show help for command .SH EXAMPLE .PP .RS .nf $ glab repo clone profclems/glab $ glab repo clone https://gitlab.com/profclems/glab $ glab repo clone profclems/glab mydirectory # Clones repo into mydirectory $ glab repo clone glab # clones repo glab for current user $ glab repo clone 4356677 # finds the project by the ID provided and clones it # Clone all repos in a group $ glab repo clone -g everyonecancontribute --paginate # Clone all non-archived repos in a group $ glab repo clone -g everyonecancontribute --archived=false --paginate # Clone from a self-hosted instance $ GITLAB_HOST=salsa.debian.org glab repo clone myrepo .fi .RE .SH SEE ALSO .PP \fBglab-repo(1)\fP