glab(1) glab(1)

glab-snippet-create - Create new snippet

glab snippet create [path] [flags]

Create new snippet

-d, --description="" Description of the snippet

-f, --filename="" Filename of the snippet in GitLab

-t, --title="" Title of the snippet

-v, --visibility="private" Limit by visibility {public, internal, or private}

--help[=false] Show help for command

-R, --repo="" Select another repository using the OWNER/REPO or GROUP/NAMESPACE/REPO format or full URL or git URL

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

glab-snippet(1)

Apr 2024 Auto generated by spf13/cobra