mw gitlab snippet create
Releasev0.35.0 · cfeceb67
mw gitlab snippet create [flags] -t <title> <file1> [<file2>...]glab snippet create [flags] -t <title> -f <filename> # reads from stdinCreate a new snippet.
Options
Section titled “Options”Global options
Section titled “Global options”Examples
Section titled “Examples”$ 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 -t Title -f "different.go" -d Description main.go$ glab snippet create -t Title -f "different.go" -d Description --filename different.go main.go$ glab snippet create --personal --title "Personal snippet" script.pySee also
Section titled “See also”Page views: —Sessions: —