DOKK / manpages / debian 12 / gh / gh-config-set.1.en
GH-CONFIG-SET(1) GitHub CLI manual GH-CONFIG-SET(1)

gh-config-set - Update configuration with a value for the given key

gh config set <key> <value> [flags]

-h, --host <string>
Set per-host setting

$ gh config set editor vim
$ gh config set editor "code --wait"
$ gh config set git_protocol ssh --host github.com
$ gh config set prompt disabled

gh-config(1)

Feb 2023