Skip to Content
ASE

gh (GitHub CLI)

GitHub's official command-line tool for issues, pull requests and releases.

Usage

.devcontainer/devcontainer.json
{
  "features": {
    "ghcr.io/hansehart/devcontainer-features/gh:1": {}
  }
}

Version 1.2.0, see the changelog for what changed.

Options

OptionDefaultDescription
versionlatestChannel (latest), a release line (major or major.minor), or an exact version (major.minor.patch).
stateDirIf 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:

HostPortsSecretFor
github.com443Sign-in
api.github.com443GH_TOKENThe REST and GraphQL APIs
uploads.github.com443GH_TOKENRelease asset uploads

The variables that set its defaults:

VariableValueFor
GH_TELEMETRYfalseWith false, telemetry stays off
GH_NO_UPDATE_NOTIFIER1With any value, the daily release check stays off
GH_NO_EXTENSION_UPDATE_NOTIFIER1With any value, the extension release checks stay off
GH_CONFIG_DIR${stateDir}gh's config and sign-in in the state dir

On this page