Skip to content

Quick Start ​

Get up and running with Ghit in under 5 minutes.

Install ​

bash
pnpm add -g ghit
bash
npm install -g ghit
bash
yarn global add ghit

Authenticate ​

bash
ghit login

Follow the browser OAuth flow to grant access.

Set Default Repository ​

bash
ghit set-repo owner/repo

Common Workflows ​

Browse Issues Interactively ​

bash
ghit issues

Navigate through issues, view details, close/reopen, edit, or delete.

Create a Single Issue ​

bash
ghit issues:create --title "Bug found" --body "Description"

Seed Multiple Issues ​

Create a directory with markdown files (one per issue):

md
issues/
├── 001-setup-ci.md
├── 002-add-tests.md
└── 003-update-docs.md

Each file:

markdown
---
type: Issue Type (Feature, Task, Bug)
title: Setup CI Pipeline
labels: ['enhancement', 'ci']
assignees: ['username']
---

Add GitHub Actions workflow for automated testing.

Then seed:

bash
ghit issues:seed ./issues

Update Issues in Bulk ​

Modify your markdown files, then:

bash
ghit issues:update ./issues

Ghit uses smart diffing to update only changed content.

Delete Issues ​

Interactively multiselcet and delte issues

bash
ghit issues:delete

Generated Commands ​

Generate CLI commands from GitHub's OpenAPI spec:

bash
ghit generate:apis

Now use any GitHub REST endpoint:

bash
# List repos for authenticated user
ghit repos:list-for-authenticated-user --per_page 100

# Create a gist
ghit gists:create --description "My snippet" --public true

# Get user info
ghit users:get-authenticated

Command Discovery

Run ghit --help to see all available commands, including generated ones and their expected options and arguments.

Configuration Tips ​

Check Current Config ​

bash
ghit info

Enable Debug Mode ​

bash
ghit config --debug true

Switch Repositories Quickly ​

bash
ghit set-repo different-owner/different-repo

Next Steps ​

Released under the ISC License.