CLI to list all repos a user has access to, and report on their configuration in aggregate.
npm installto install all dependencies- create
.envfile and initializeGH_TOKENorGITHUB_TOKEN(in order of precedence) with your Github token
- Go to GitHub Tokens Settings.
- Click Generate new token.
- Give it a descriptive name (e.g., "my repo-report token").
- Select the
reposcope. - Generate the token and copy it.
- You can set your token as an environment variable in your terminal:
- run
export GH_TOKEN=<your_personal_access_token>
OR you can add it to a .env file in the project root:
- run
GH_TOKEN=your_personal_access_token
- After you generated your PAT you can open terminal then do the following:
- on the terminal run
export GH_TOKEN=<the personal access token generated> - run
npx repo-report
- execute
./bin/runto get a report of all your repositories in the terminal
--help
- Show all available flags and usage examples.
--unactionable
- Shows metrics you can’t change
--actual
- Shows raw values instead of a ✅ or ❌
--goodness
- Shows if a metric is "good" (✅) or "bad" (❌)
-m, --metrics
- Lists available metrics.
--all
- Shows ALL metrics (Even ones that aren't actionable)
-p, --pick
- Lets you select specific metrics
-f, --focus
- Filters by repo type such as sources, forks, templates, private or public
--names
- Shows repo names alongside their owners
-s, --sort
- Sorts by "last updated date" by default; can be set to
nameorcreatedinstead.
-desc
- Sorts descending instead of ascending.
--cache
- Saves API request data in
--cacheDir.
- If you would like an extended and more detailed view of your repos you can use:
npx repo-report --all --actual- If you would like to have this be the default view whenever you run repo-report, you can run with:
alias repo-report='npx repo-report --all --actual- then run
source ~/.bashrc
The following shows an example output of repo-report --all --actual for my repositories. It shows important repository settings like issues, projects, branch protection, and allowed merge strategies. Additional details such as auto-merge, branch deletion on merge, and license information are also included in the full output as seen by the extended table below.

