Skip to main content
TerminalSync
All CLIs

GitHub CLI

GitHub's official CLI. Read and create issues, open PRs, run workflows, manage releases, all without leaving the terminal. TerminalSync has dedicated GitHub Auth Sync so your `gh` session can travel encrypted between Macs.

dev$ ghby GitHub
Install
brew install gh
Authenticate
gh auth login

What it does

gh is GitHub's official command line wrapper around the v3 REST and GraphQL APIs. Once authenticated it lets you create and review pull requests, file and triage issues, kick off Actions runs, manage releases and gists, and clone or fork repos — all without context-switching to the browser.

What TerminalSync adds

  • GitHub Auth Sync. TerminalSync asks gh for the active token, encrypts it with your master key, and reinstalls it through gh auth login --with-token on your other Mac. You control it from Settings.
  • Session memory. Your AI agent remembers which repo you're working in and which PRs are open — so when you say "review my open PR" it knows what you mean.
  • MCP bridge. Pair it with the GitHub MCP connector and Claude / Codex / Gemini can read commit history or open PRs through the same auth context.

Typical commands

gh pr create --fill
gh issue list --assignee @me --state open
gh release create v1.2.0 --generate-notes
gh workflow run deploy.yml --ref main
gh repo clone myorg/myrepo
How does sync work? Today TerminalSync syncs GitHub CLI through a dedicated Auth Sync flow. For the other CLIs, this page gives you install, login and recommended commands; project secrets that land in .env files can travel through the folder's encrypted vault. Automatic per-CLI auth sync is a future layer.