repl-git
v1.0.2
Published
Headless remote API GitHub client for the terminal
Maintainers
Readme
repl-git
GitHub CLI client that uses the REST API from your terminal.
Install
npm install -g repl-gitCommands
| Command | Description |
|---------|-------------|
| repl search <query> | Search GitHub repositories |
| repl fetch <file> <repo> | Fetch a file from a repository |
| repl find <pattern> <repo> | Find files matching a glob pattern |
| repl list <repo> | List files in a repository |
| repl readme <repo> | Fetch and display README |
| repl structure <repo> | Show directory tree |
| repl download <file> <repo> | Download a file to ~/Downloads |
| repl token <token> | Save GitHub token |
| repl whoami | Show authenticated user |
Options
| Flag | Description |
|------|-------------|
| -r, --repos <n> | Limit search results (default: 10) |
| -b, --branch <name> | Target specific branch |
| -p, --path <path> | Target subdirectory |
| --json | Output raw JSON |
Usage
repl search typescript -r 5
repl fetch README.md vercel/next.js
repl find "*.ts" anomalyco/opencode
repl list vercel/next.js
repl readme anomalyco/opencode
repl structure vercel/next.js
repl download README.md vercel/next.js
repl token ghp_xxxxxxxxxxxx
repl whoamiAuthentication
Unauthenticated requests work but have lower rate limits. To raise them:
repl token ghp_xxxxxxxxxxxxYou can also set the GITHUB_TOKEN environment variable instead.
License
MIT
