1glab(1) glab(1)
2
3
4
6 glab-snippet-create - Create new snippet
7
8
9
11 glab snippet create [path] [flags]
12
13
14
16 Create new snippet
17
18
19
21 -d, --description="" Description of the snippet
22
23
24 -f, --filename="" Filename of the snippet in GitLab
25
26
27 -t, --title="" Title of the snippet
28
29
30 -v, --visibility="private" Limit by visibility {public, internal,
31 or private}
32
33
34
36 --help[=false] Show help for command
37
38
39 -R, --repo="" Select another repository using the OWNER/REPO or
40 GROUP/NAMESPACE/REPO format or full URL or git URL
41
42
43
45 glab snippet create script.py --title "Title of the snippet"
46 echo "package main" | glab snippet new --title "Title of the snippet" --filename "main.go"
47 glab snippet create main.go -t Title -f "different.go" -d Description
48
49
50
51
52
54 glab-snippet(1)
55
56
57
58Auto generated by spf13/cobra Nov 2023 glab(1)