The DevImpact CLI securely connects your local GitHub activity to the DevImpact dashboard. It uses your local GitHub authentication (via the GitHub CLI) and only accesses the repositories you explicitly provide.
Before installing, make sure you have:
• Node 18+
• GitHub CLI (gh) installed and authenticated
gh auth status
Install globally from npm
npm install -g @devimpact/cliVerify installation
devimpact --version- Go to your DevImpact account and generate a CLI token.
- Run:
devimpact init --cli-token <YOUR_CLI_TOKEN>This securely links your CLI to your DevImpact account. The token is hashed locally and never stored in plain text.
Use the sync command to fetch GitHub pull request data and push it to your DevImpact account:
devimpact sync --repo owner/repoYou can provide multiple repositories
devimpact sync --repo org/frontend --repo org/api --repo org/mobileIf you use the same repos regularly, the CLI will remember them.
The CLI uses your local GitHub CLI authentication, so DevImpact never sees your PAT or OAuth token.
When you run devimpact sync:
- It uses your existing
gh authsession to callgh apion your machine. - It only accesses the repos you explicitly pass
- It fetches metadata about your PRs, reviews, commits, and files for the repos you specify.
- It strips diffs, commit messages, and code blocks from data.
- It sends a sanitized JSON payload to the DevImpact backend to power your personal dashboard.
No other GitHub data is accessed.
👉 For a detailed list of APIs and fields, see DATA & SECURITY.
You can inspect or delete your local DevImpact config at:
~/.config/devimpact/config.jsonTo remove the CLI:
npm uninstall -g @devimpact/cliMIT