glab(1)

πŸ’… glab-variable-list β€” like, the whole manual, bestie

okay so real quick: this is a page from the glab manual (that's glab(1) if you're being fancy ✨), and it's all about one specific little command. Buckle up, it's short and it ate.

🌸 NAME 🌸

glab-variable-list β€” lists the variables for a project or a group. that's it, that's the whole job, and it does it flawlessly πŸ’…

✨ SYNOPSIS ✨

glab variable list [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

so by default this bad boy goes off and lists the variables for your current project β€” no flags needed, it just knows 🫢

but wait, there's range. use --group if you wanna list variables for a group instead, or --instance if you're feeling main-character and want the instance variables. literally pick your vibe ✨

πŸŽ€ OPTIONS πŸŽ€

  • -g, --group="" β€” picks a group or subgroup to work with. important heads up though: this gets ignored if a repository argument is set. so like, don't fight yourself, bestie 😭
  • -i, --instance[=false] β€” display instance variables. defaults to false, so you gotta opt in.
  • --jq="" β€” filter that JSON output through a jq expression. iykyk πŸ”₯
  • -F, --output="text" β€” formats the output as: text, json. default is text, obviously πŸ’…
  • -p, --page=1 β€” page number. defaults to 1, starting from the top like a good girlie.
  • -P, --per-page=20 β€” how many items to list per page. default is 20. you can absolutely crank this up (see the examples, they go to 100 πŸ‘€).
  • -R, --repo="" β€” selects another repository entirely. you can use either OWNER/REPO or GROUP/NAMESPACE/REPO. and yes, the full URL or Git URL is also accepted β€” flexible queen 🌈

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

  • -h, --help[=false] β€” show help for this command. defaults to false but honestly? sometimes you need it, no shame πŸ’–

πŸ“ EXAMPLE πŸ“

here's the entire mood board, copy-paste ready:

glab variable list
glab variable list -i
glab variable list --per-page 100 --page 1
glab variable list --group gitlab-org
glab variable list --group gitlab-org --per-page 100

see how the last two are basically twins but one of them went to --per-page 100? growth 🌱

πŸ’œ SEE ALSO πŸ’œ


ngl, that's the whole page. every flag, every default, every example β€” all accounted for. no cap πŸ’€βœ¨

and that's a wrap, bestie!! this little icon was auto generated by spf13/cobra back in Nov 2026, and it lives in the glab(1) manual β€” so if you ever forget, just remember: it's giving cobra, it's giving glab, periodt πŸŽ€πŸ’…

πŸ“¦ where this page comes from