.nh .TH "glab" "1" "Apr 2024" "Auto generated by spf13/cobra" "" .SH NAME .PP glab-snippet-create - Create new snippet .SH SYNOPSIS .PP \fBglab snippet create [path] [flags]\fP .SH DESCRIPTION .PP Create new snippet .SH OPTIONS .PP \fB-d\fP, \fB--description\fP="" Description of the snippet .PP \fB-f\fP, \fB--filename\fP="" Filename of the snippet in GitLab .PP \fB-t\fP, \fB--title\fP="" Title of the snippet .PP \fB-v\fP, \fB--visibility\fP="private" Limit by visibility {public, internal, or private} .SH OPTIONS INHERITED FROM PARENT COMMANDS .PP \fB--help\fP[=false] Show help for command .PP \fB-R\fP, \fB--repo\fP="" Select another repository using the \fB\fCOWNER/REPO\fR or \fB\fCGROUP/NAMESPACE/REPO\fR format or full URL or git URL .SH EXAMPLE .PP .RS .nf glab snippet create script.py --title "Title of the snippet" echo "package main" | glab snippet new --title "Title of the snippet" --filename "main.go" glab snippet create main.go -t Title -f "different.go" -d Description .fi .RE .SH SEE ALSO .PP \fBglab-snippet(1)\fP