.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-variable-get - Get a variable for a project or group. .SH SYNOPSIS \fBglab variable get [flags]\fP .SH DESCRIPTION Prints the value of a single variable by key. Use \fB--scope\fR to select a variable in a specific environment, or \fB--group\fR to read a group variable instead. .SH OPTIONS \fB-g\fP, \fB--group\fP="" Get variable for a group. .PP \fB--jq\fP="" Filter JSON output with a jq expression. .PP \fB-F\fP, \fB--output\fP="text" Format output as: text, json. .PP \fB-s\fP, \fB--scope\fP="\fI" The environment_scope of the variable. Values: all (\fP), or specific environments. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. .SH EXAMPLE .EX glab variable get VAR_KEY glab variable get -g GROUP VAR_KEY glab variable get -s SCOPE VAR_KEY .EE .SH SEE ALSO \fBglab-variable(1)\fP