glab(1)

πŸ’– glab variable export πŸ’–

okay bestie, welcome to the glab(1) manual page for glab variable export β€” like, the actual official Unix manual page, just with ✨personality✨. this is the one that scoops up all your CI/CD variables and lets you carry them somewhere else. main character energy fr fr.

glab variable export [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: by default this command exports the variables of your current project. that's it, that's the default. no cap.

want a whole group instead? slay, just use --group to export variables for a group. πŸ’…

and to control what format you get back, hit up --output. the options are:

  • json β€” the default, iconic, structured
  • env β€” KEY=VALUE pairs, for when you just want the lines
  • export β€” shell export statements, plug it straight into your shell and go πŸ‘‘

✨ OPTIONS ✨

  • -g, --group="" β€” pick a group or subgroup to export from. heads up: this gets ignored if a repository argument is set. like, the repo wins, no debate πŸ™ˆ
  • --jq="" β€” filter that JSON output with a jq expression. chef's kiss for slicing and dicing
  • -F, --output="json" β€” format the output as: json, export, env. defaults to json
  • -p, --page=1 β€” page number. defaults to 1
  • -P, --per-page=100 β€” how many items to list per page. defaults to 100
  • -R, --repo="" β€” select another repository entirely. you can pass either OWNER/REPO or GROUP/NAMESPACE/REPO, and the full URL or Git URL is also accepted 🫢
  • -s, --scope="" β€” the environment_scope of the variables. values: '' (the default) or specific environments

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

  • -h, --help[=false] β€” show help for this command. the classic. the blueprint. default is false

🌸 EXAMPLE 🌸

here's the whole mood board of usage, straight up:

glab variable export
glab variable export --per-page 1000 --page 1
glab variable export --group gitlab-org
glab variable export --group gitlab-org --per-page 1000 --page 1
glab variable export --output json
glab variable export --output env
glab variable export --output export

πŸŽ€ SEE ALSO πŸŽ€


ngl bestie, that's the whole page. every flag, every default, every example β€” nothing dropped, nothing invented. periodt. 🧚

⭐ cute sign-off: this page is Auto generated by spf13/cobra, dated Nov 2026, and it's the glab(1) manual β€” mwah, go export some variables πŸ’œ

πŸ“¦ where this page comes from