1glab(1)                                                                glab(1)
2
3
4

NAME

6       glab-repo-clone - Clone a GitLab repository/project
7
8
9

SYNOPSIS

11       glab repo clone  [flags] [] [-- [...]]
12
13
14

DESCRIPTION

16       Clone supports these shorthands
17
18
19              • repo
20
21              • namespace/repo
22
23              • org/group/repo
24
25              • project ID
26
27
28
29

OPTIONS

31       -g, --group=""      Specify group to clone repositories from
32
33
34       -p,  --preserve-namespace[=false]      Clone the repo in a subdirectory
35       based on namespace
36
37
38       -a, --archived[=false]      Limit by archived status. Used with --group
39       flag
40
41
42       -G,  --include-subgroups[=true]       Include  projects in subgroups of
43       this group. Default is true. Used with --group flag
44
45
46       -m, --mine[=false]      Limit by projects in the  group  owned  by  the
47       current authenticated user. Used with --group flag
48
49
50       -v, --visibility=""      Limit by visibility {public, internal, or pri‐
51       vate}. Used with --group flag
52
53
54       -I, --with-issues-enabled[=false]      Limit by  projects  with  issues
55       feature enabled. Default is false. Used with --group flag
56
57
58       -M,  --with-mr-enabled[=false]       Limit  by  projects with merge re‐
59       quests feature enabled. Default is false. Used with --group flag
60
61
62       -S, --with-shared[=false]      Include projects shared to  this  group.
63       Default is false. Used with --group flag
64
65
66       --paginate[=false]       Make  additional  HTTP  requests  to fetch all
67       pages of projects before cloning. Respects --per-page
68
69
70       --page=1      Page number
71
72
73       --per-page=30      Number of items to list per page
74
75
76

OPTIONS INHERITED FROM PARENT COMMANDS

78       --help[=false]      Show help for command
79
80
81

EXAMPLE

83       $ glab repo clone profclems/glab
84
85       $ glab repo clone https://gitlab.com/profclems/glab
86
87       $ glab repo clone profclems/glab mydirectory  # Clones repo into mydirectory
88
89       $ glab repo clone glab   # clones repo glab for current user
90
91       $ glab repo clone 4356677   # finds the project by the ID provided and clones it
92
93       # Clone all repos in a group
94       $ glab repo clone -g everyonecancontribute --paginate
95
96       # Clone from a self-hosted instance
97       $ GITLAB_HOST=salsa.debian.org glab repo clone myrepo
98
99
100
101
102

SEE ALSO

104       glab-repo(1)
105
106
107
108Auto generated by spf13/cobra      Nov 2023                            glab(1)
Impressum