gh — Environment Profile
Generated: 2026-05-07
OS
- Platform: darwin
- Version: 25.2.0
Runtime
- Language: Go (compiled binary)
- Version: n/a (native binary)
- Toolchain: homebrew
Binary
- Entry point:
gh - Version: 2.88.1 (2026-03-12)
- Resolved path: /opt/homebrew/bin/gh
Non-Interactive Flags
GH_PROMPT_DISABLED=1: disables all interactive prompting in the terminal--yes: available on select commands (e.g.gh repo delete --yes) to skip confirmation prompts
Output Format Flags
--json <fields>: returns JSON output for supported commands (comma-separated field list)--jq <query>: filters JSON output using jq syntax--template <string>: formats JSON output using Go template syntax
Config
GH_TOKEN/GITHUB_TOKEN: authentication token (in precedence order); avoids auth promptsGH_ENTERPRISE_TOKEN/GITHUB_ENTERPRISE_TOKEN: token for GitHub Enterprise ServerGH_HOST: override default GitHub hostnameGH_REPO: specify repo in HOST/OWNER/REPO format for commands that infer from git contextGH_PAGER/PAGER: paging program for output; set tocator empty to suppress pagingGH_NO_UPDATE_NOTIFIER: set to any value to suppress update notificationsGH_NO_EXTENSION_UPDATE_NOTIFIER: set to any value to suppress extension update notificationsNO_COLOR: set to any value to suppress ANSI color codes
Timeout Method
- macOS: no GNU
timeout; useperl -e 'alarm(30); exec(@ARGV)' -- gh <args>or subprocess timeout in Python
Source
- Docs read:
gh --help,gh help environment,gh help exit-codes,gh help formatting,gh config list - No AGENTS.md or CODING_AGENTS.md found (not a gh source checkout)