glab-snippet-create - Man Page

Create new snippet

Synopsis

glab snippet create [path] [flags]

Description

Create new snippet

Options

-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}

Options Inherited from Parent Commands

--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

Example

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

See Also

glab-snippet(1)

Referenced By

glab-snippet(1).

Apr 2024 Auto generated by spf13/cobra