LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gh-config

manage GitHub CLI settings and preferences

TLDR

Get config value
$ gh config get [key]
copy
Set config value
$ gh config set [key] [value]
copy
List all configuration
$ gh config list
copy
Set default editor
$ gh config set editor [vim]
copy
Set default browser
$ gh config set browser [firefox]
copy

SYNOPSIS

gh config command [options]

DESCRIPTION

gh config manages configuration for the GitHub CLI. It controls behavior settings like preferred editor, browser, default prompts, and protocol preferences.Configuration is stored per-host, allowing different settings for github.com and GitHub Enterprise instances. Settings can be environment-specific or global.Common settings include git_protocol (https/ssh), editor, browser, and pager.

PARAMETERS

get KEY

Get a configuration value.
set KEY VALUE
Set a configuration value.
list
List all configuration settings.
--host HOSTNAME
Apply to specific GitHub host.
--help
Display help information.

CONFIGURATION

~/.config/gh/config.yml

Main configuration file storing user preferences, default settings, and per-host configurations.

INSTALL

sudo apt install gh
copy
sudo dnf install gh
copy
sudo pacman -S github-cli
copy
sudo apk add github-cli
copy
sudo zypper install gh
copy
brew install gh
copy
nix profile install nixpkgs#gh
copy

CAVEATS

Config stored in ~/.config/gh/config.yml. Environment variables may override settings. Some settings require reauthentication to take effect.

HISTORY

gh config is part of the GitHub CLI, providing user customization following XDG Base Directory conventions on Unix systems.

SEE ALSO

gh(1), gh-auth(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid