The interface is localized. Skill descriptions and documents are machine-translated by AI into your language; code, commands, paths and technical terms stay in the original, and the author's document governs.
Explore skills
Development · SKILL.md

glab-snippet

glab-snippet

Create, view, update, and manage GitLab code snippets (gists). Use when sharing code snippets, creating quick examples, or managing reusable code blocks. Triggers on snippet, gist, code snippet, share code, create snippet.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill documentation

GitHub

name: glab-snippet description: Create, view, update, and manage GitLab code snippets (gists). Use when sharing code snippets, creating quick examples, or managing reusable code blocks. Triggers on snippet, gist, code snippet, share code, create snippet.

glab snippet

Overview


  Create, view and manage snippets.                                                                                     
         
  USAGE  
         
    glab snippet <command> [command] [--flags]                                 
            
  EXAMPLES  
            
    $ glab snippet create --title "Title of the snippet" --filename "main.go"  
            
  COMMANDS  
            
    create  -t <title> <file1>                                        [<file2>...] [--flags]  Create a new snippet.
    glab snippet create  -t <title> -f <filename>  # reads from stdin                                              
         
  FLAGS  
         
    -h --help                                                                                 Show help for this command.
    -R --repo                                                                                 Select another repository. Can use either `OWNER/REPO` or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.

Quick start

glab snippet --help

Subcommands

See references/commands.md for full --help output.

Saved skills