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, structuredenvβKEY=VALUEpairs, for when you just want the linesexportβ shellexportstatements, 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 ajqexpression. chef's kiss for slicing and dicing-F,--output="json"β format the output as:json,export,env. defaults tojson-p,--page=1β page number. defaults to1-P,--per-page=100β how many items to list per page. defaults to100-R,--repo=""β select another repository entirely. you can pass eitherOWNER/REPOorGROUP/NAMESPACE/REPO, and the full URL or Git URL is also accepted π«Ά-s,--scope=""β theenvironment_scopeof 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 isfalse
πΈ 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 π
glab-variable(1)β the parent command, go say hi π
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
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms