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

# gh-config-get(1)

Print the value of a given configuration key

## NAME

gh-config-get - Print the value of a given configuration key

## SYNOPSIS

**gh config get \<key\> \[flags\]**

## OPTIONS

- **-h**, **--host** **\<string\>**

  Get per-host setting

## EXIT CODES

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

## EXAMPLE

```
$ gh config get git_protocol
```

## SEE ALSO

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