Environment variables

GITHUB_TOKEN

An authentication token for API requests. Setting this avoids being prompted to authenticate and overrides any previously stored credentials.

GITHUB_ENTERPRISE_TOKEN

An authentication token for API requests to GitHub Enterprise.

GH_REPO

Specify the GitHub repository in the [HOST/]OWNER/REPO format for commands that otherwise operate on a local repository.

GH_HOST

Specify the GitHub hostname for commands that would otherwise assume the “github.com” host when not in a context of an existing repository.

GH_EDITOR, GIT_EDITOR, VISUAL, EDITOR

Listed in order of precedence. The editor tool to use for authoring text.

BROWSER

The web browser to use for opening links.

DEBUG

Set to any value to enable verbose output to standard error. Include values “api” or “oauth” to print detailed information about HTTP requests or authentication flow.

PAGER

A terminal paging program to send standard output to, e.g. “less”.

GLAMOUR_STYLE

The style to use for rendering Markdown. Learn more here.

NO_COLOR

Avoid printing ANSI escape sequences for color output.

CLICOLOR

Set to “0” to disable printing ANSI colors in output.

CLICOLOR_FORCE

Set to a value other than “0” to keep ANSI colors in output even when the output is piped.