If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.
This add-on integrates GH CLI into your DDEV project.
ddev add-on get plopesc/ddev-gh-cli
ddev restart
If your GitHub token is already stored in ~/.config/gh/hosts.yml, no additional configuration is required. Otherwise, you must set either the GH_TOKEN or GITHUB_TOKEN environment variable with a valid token.
To retrieve your token, run the following command on your host machine:
gh auth token
| Command | Description |
|---|---|
ddev exec gh --version |
Check the installed version |
ddev exec gh --help |
View available commands |
The full documentation about GH CLI can be found at the GH CLI documentation page.
GH CLI telemetry is disabled by default in this add-on via the GH_TELEMETRY=false environment variable.
To enable telemetry, add the following to your project’s .ddev/config.yaml:
web_environment:
- GH_TELEMETRY=true
Then run ddev restart for the change to take effect.
Contributed and maintained by @plopesc
If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.