GCLI-SNIPPETS(1)
π GCLI-SNIPPETS π
okay bestie, welcome to the gcli manual, section 1 for General Commands β this one's all about the snippets subcommand and it's gonna be so good, I promise π«Ά
β¨ NAME β¨
gcli snippets β the way you manage your GitLab snippets π
πΈ SYNOPSIS πΈ
gcli snippets [-l] [-s] [-n n]
gcli snippets delete snippet-id
gcli snippets get snippet-id
π¦ DESCRIPTION π¦
So like. gcli snippets is your girl for listing, creating, downloading or deleting GitLab snippets. all four!!
And if you don't give it a subcommand? No stress. gcli snippets on its own just lists all of your own snippets. main character energy, honestly π
π OPTIONS π
-l,--longβ print a long list instead of a short table. basically the "tell me everything" button β¨-s,--sortedβ reverses the output, so the most recent items land at the bottom instead of the top. yes it's reversed, no I will not be explaining why, that's just the vibe π-n,--count nβ fetch at leastnsnippets. and if you setnto-1? bestie it fetches ALL of them. the default is30.
β οΈ real talk: on users with many snippets, fetching all of them can take a considerable amount of time and may get you rate limited by the GitLab API. so like, hydrate, be patient, don't spam it π
π SUBCOMMANDS π
deleteβ delete a snippet. gone. poof. πgetβ fetch the raw contents of the snippet. just the raw goods, no packaging π
β EXAMPLES β
List all of your snippets:
$ gcli -t gitlab snippets
Delete snippet with id 69420:
$ gcli -t gitlab snippets delete 69420
Print snippet with id 69420 into your pager:
$ gcli -t gitlab snippets get 69420 | $PAGER
π SEE ALSO π
iykyk π
π AUTHORS π
Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors. iconic behavior, truly π«Ά
π BUGS π
- This subcommand only works on GitLab. It is not implemented for GitHub, as GitHub Gists work differently. different site, different rules, sorry babe π
- Creating snippets is currently unimplemented. yeah. it says "create" up in the description but it is not. living its truth I guess π
- There is no
-yflag to ask the user whether he is sure about deleting a snippet. so like, no safety net. be careful with that delete, fr fr π
Please report bugs via E-Mail to https://lists.sr.ht/~herrhotzenplotz/gcli-discuss.
Alternatively you can report them on any of the forges linked at https://sr.ht/~herrhotzenplotz/gcli. However, the preferred and quickest method is to use the mailing list β¨
and that's the whole page bestie!! this was gcli 2.13.0, dated 05-Aug-2026 β note down the version, love you, bye πβ¨π
π¦ where this page comes from
- nixpkgs unstable: gcli 2.13.0
- ubuntu stonking: gcli 2.13.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms