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
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.
$ 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)