glab(1) glab(1)

glab-snippet - Create, view and manage snippets.

glab snippet [flags]

Snippets store and share small pieces of code or text. A snippet can belong to a project, or to your personal account when you pass --personal.

-R, --repo="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.

-h, --help[=false] Show help for this command.

glab snippet create --title "Title of the snippet" --filename "main.go"

glab(1), glab-snippet-create(1)

Jun 2026 Auto generated by spf13/cobra