https://github.com/ayan4m1/gh-list-repos
List GitHub repositories for yourself and/or your organizations
https://github.com/ayan4m1/gh-list-repos
cli github nodejs utility
Last synced: about 2 months ago
JSON representation
List GitHub repositories for yourself and/or your organizations
- Host: GitHub
- URL: https://github.com/ayan4m1/gh-list-repos
- Owner: ayan4m1
- License: mit
- Created: 2024-06-12T03:38:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T15:11:18.000Z (over 1 year ago)
- Last Synced: 2025-06-16T10:00:23.508Z (about 1 year ago)
- Topics: cli, github, nodejs, utility
- Language: TypeScript
- Homepage:
- Size: 262 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-list-repos
[](https://badge.fury.io/js/@ayan4m1%2Fgh-list-repos)
## features
- Written in TypeScript
- Small footprint
## requirements
- Node 18+
## installation
> npm i -g @ayan4m1/gh-list-repos
## options
**todo:** document all the options
## config file
The config file for list-gh-repos is `~/.ghreporc.yml`. If you use interactive authentication, then gh-list-repos will manage this file for you. If you want to use a GitHub Personal Access Token (PAT), here is an example:
```yml
username: ayan4m1
token: 'omg123hax456'
```
If you are trying to authenticate an organization, use the YAML key `organization` instead of `username`.
## usage
> gh-list-repos -u ayan4m1 -v public -n "gh-\*-repos"
Will list all public repos for the user `ayan4m1` matching the glob `gh-*-repos`.
> gh-list-repos -o powerprof -v all
Will list all public and private repos belonging to the `powerprof` organization. An authorization token will be obtained interactively if it is not specified with the `-t, --token` option.