---
name: "gh-config"
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"
---

# gh-config(1)

Manage configuration for gh

## NAME

gh-config - Manage configuration for gh

## SYNOPSIS

**gh config \<command\> \[flags\]**

## 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**) - **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

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

  Clear the cli cache

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

  Print the value of a given configuration key

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

  Print a list of configuration keys and values

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

  Update configuration with a value for the given key

## 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

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