gh-config-set1
Update configuration with a value for the given key
Usage
gh config
set
<key>
<value>
[flags]
Options
-
-h, --host <string> -
Set per-host setting
Exit status
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.
Examples
$ gh config set editor vim $ gh config set editor "code --wait" $ gh config set git_protocol ssh --host github.com $ gh config set api_host api-gateway.example.com --host example.com $ gh config set prompt disabled
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.