CLI that makes it easier to work with github. Powered by commander and octokit.
Use this package directly with npx:
npx @holistic-web/github-tools list-repos --org holistic-web
List all repos for the authenticated user or an organisation
option | Description |
---|---|
-o, --org <org>' |
The organization to list repos for |
Environment Variable | Description |
---|---|
GITHUB_ACCESS_TOKEN |
Your github access token (see below) |
Personal access tokens in github are created here: https://github.com/settings/tokens/new. When creating a token you need to provide a scope. Here are the scopes required for each command, add whichever you'd like to use.
Command | Scopes |
---|---|
list-repos |
repo |
This project automatically publishes a new version to https://www.npmjs.com/package/@holistic-web/github-tools on merge to the master branch. It requires the secret NPM_TOKEN
to be set in github for this repository.