Command-line toolkit that blends hand-crafted workflows with OpenAPI-generated commands for GitHub.
npm install ghit



Command-line toolkit for GitHub: authenticate once, set a repo, and work with issues in bulk or interactively. Includes a generator that syncs the CLI surface with the GitHub OpenAPI spec.
``bash`
pnpm add -g ghitor npm i -g ghit
- Login: ghit login (opens browser flow, stores token locally)ghit set-repo owner/name
- Set default repo: ghit info
- Inspect info: ghit issues
- Work with issues (interactive): to list, view, close/reopen, edit, or deleteghit issues:seed
- Seed/update/delete issues in bulk: , ghit issues:update, ghit issues:delete
The CLI can generate commands directly from the GitHub OpenAPI spec. This keeps available commands and params in sync with GitHub without hand-coding.
1. Generate commands (writes .ghit/apis.generated.js):`
bash`
ghit generate:apis
ghit issues:create --title "Bug" --owner org --repo repo
2. Use generated commands (examples):
- Create issue: ghit issues:list-for-repo --owner org --repo repo
- List issues: ghit issues:get --owner org --repo repo --issue_number 123
- Get single issue:
Notes
- The generator runs once and the CLI will auto-load .ghit/apis.generated.js on subsequent runs.
- Only the command usage matters; you do not need to edit the generated file by hand.
Contributions are welcome! Please follow these steps:
1. Fork the repository
2. Create a feature branch (git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature'
3. Commit your changes ()git push origin feature/amazing-feature`)
4. Push to the branch (
5. Open a Pull Request
- Write TypeScript with proper type definitions
- Follow existing code style
- Add tests for new features
- Update documentation for API changes
- Ensure all tests pass before submitting PR
This project is licensed under the ISC License - see the LICENSE file for details.
- Email: support@toneflix.net
- Issues: GitHub Issues
- Docs: Octokit Documentation
- Docs: Github REST API Documentation
- Built with H3ravel Musket
- Powered by Github
- Tunneling by ngrok (coming soon)
---
© Copyright 2026 - ToneFlix Technologies Limited