gh (GitHub CLI)
GitHub's official command-line tool for issues, pull requests and releases.
Usage
{
"features": {
"ghcr.io/hansehart/devcontainer-features/gh:1": {}
}
}Version 1.2.0, see the changelog for what changed.
Options
| Option | Default | Description |
|---|---|---|
version | latest | Channel (latest), a release line (major or major.minor), or an exact version (major.minor.patch). |
stateDir | If set, puts this feature's data at this path, which must be inside the remote user's home. Mount a volume there to persist it across rebuilds. |
Customizations
Open Secure Software Suite
The hosts the tool reaches:
| Host | Ports | Secret | For |
|---|---|---|---|
github.com | 443 | Sign-in | |
api.github.com | 443 | GH_TOKEN | The REST and GraphQL APIs |
uploads.github.com | 443 | GH_TOKEN | Release asset uploads |
The variables that set its defaults:
| Variable | Value | For |
|---|---|---|
GH_TELEMETRY | false | With false, telemetry stays off |
GH_NO_UPDATE_NOTIFIER | 1 | With any value, the daily release check stays off |
GH_NO_EXTENSION_UPDATE_NOTIFIER | 1 | With any value, the extension release checks stay off |
GH_CONFIG_DIR | ${stateDir} | gh's config and sign-in in the state dir |