GH-CONFIG(1) GitHub CLI manual GH-CONFIG(1)

# [NAME](#NAME)

gh-config - Manage configuration for gh

# [SYNOPSIS](#SYNOPSIS)

**gh config &lt;command&gt; \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Display or change configuration settings for gh.

Current respected settings: - **api\_host**: experimental: the hostname to use when making API requests for a GitHub host. Note: this is not a security boundary and requests to the canonical host will remain authenticated - **git\_protocol**: the protocol to use for git clone and push operations **{https | ssh}** (default **https**) - **editor**: the text editor program to use for authoring text - **prompt**: toggle interactive prompting in the terminal **{enabled | disabled}** (default **enabled**) - **prefer\_editor\_prompt**: toggle preference for editor-based interactive prompting in the terminal **{enabled | disabled}** (default **disabled**) - **expiring\_credentials**: toggle preference for expiring credentials that gh refreshes automatically when logging in **{enabled | disabled}** (default **disabled**) - **pager**: the terminal pager program to send standard output to - **http\_unix\_socket**: the path to a Unix socket through which to make an HTTP connection - **browser**: the web browser to use for opening URLs - **clipboard**: whether to copy one-time OAuth device codes to the clipboard **{enabled | disabled}** (default **enabled**) - **color\_labels**: whether to display labels using their RGB hex color codes in terminals that support truecolor **{enabled | disabled}** (default **disabled**) - **accessible\_colors**: whether customizable, 4-bit accessible colors should be used **{enabled | disabled}** (default **disabled**) - **accessible\_prompter**: whether an accessible prompter should be used **{enabled | disabled}** (default **disabled**) - **spinner**: whether to use an animated spinner as a progress indicator **{enabled | disabled}** (default **enabled**) - **telemetry**: whether telemetry is enabled, disabled, or logging **{enabled | disabled | log}** (default **enabled**)

# [AVAILABLE COMMANDS](#AVAILABLE_COMMANDS)

[**gh-config-clear-cache(1)**](#gh_config_clear_cache%281%29)

Clear the cli cache

[**gh-config-get(1)**](#gh_config_get%281%29)

Print the value of a given configuration key

[**gh-config-list(1)**](#gh_config_list%281%29)

Print a list of configuration keys and values

[**gh-config-set(1)**](#gh_config_set%281%29)

Update configuration with a value for the given key

# [EXIT CODES](#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.

# [SEE ALSO](#SEE_ALSO)

[**gh(1)**](/man/os/gh/gh.1)

Oct 2026

---

Document: gh-config(1) from gh 2.103.3-r0 (Chainguard OS)
Source: https://github.com/cli/cli
