---
name: "glab-config-get"
section: "1"
platform: "linux"
package: "glab"
version: "1.126.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/glab-config-get"
---

# glab-config-get(1)

Prints the value of a given configuration key.

## NAME

glab-config-get - Prints the value of a given configuration key.

## SYNOPSIS

**glab config get  \[flags\]**

## DESCRIPTION

By default, the lookup order is: environment variables, then the local repository configuration, then the global configuration. Use **--global** to read only from the global configuration file, or **--host** to read a per-host setting.

If the key is not set, nothing is printed.

## OPTIONS

**-g**, **--global**\[=false\]\
 	Read from global config file (~/.config/glab-cli/config.yml). (default checks 'Environment variables → Local → Global')

**--host**=""\
 	Get per-host setting.

## OPTIONS INHERITED FROM PARENT COMMANDS

**-h**, **--help**\[=false\]\
 	Show help for this command.

## EXAMPLE

```
$ glab config get editor
vim
$ glab config get glamour_style
notty
```

## SEE ALSO

**[glab-config(1)](/glab-config/1.md)**
