# GitHub CLI (gh)

34 Hacker News commenters recommended GitHub CLI (gh) and 4 criticized it, November 2025 to November 2026. It was recommended in 11 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** People recommend gh for GitHub tasks in the terminal, especially with AI agents, which find it more token efficient than MCP. Critics note coarse token scopes.

## Why people recommend it

- Cheaper and simpler than MCP (6 comments): "it appears that using the gh cli is much more token efficient than MCP so that's a plus" ([source](https://news.ycombinator.com/item?id=49562684)) "I found claude was better (trained?) with the gh command line than with the github mcp." ([source](https://news.ycombinator.com/item?id=49785058)) "We started with the GitHub mcp but migrated to giving the gh cli to the agent directly." ([source](https://news.ycombinator.com/item?id=47729116))
- Agents already know how to use it (5 comments): "I found claude was better (trained?) with the gh command line than with the github mcp." ([source](https://news.ycombinator.com/item?id=49785058)) "agents tend to perform better with CLI tools since they've been heavily RL'd on them." ([source](https://news.ycombinator.com/item?id=46933348)) "all you need is the gh cli, which the agent already knows how to use" ([source](https://news.ycombinator.com/item?id=46562860))
- Handles authentication for you (3 comments): "gh seems much easier than installing and setting up an MCP server connection" ([source](https://news.ycombinator.com/item?id=47161316)) "The CLI is also nice because it abstracts away authentication." ([source](https://news.ycombinator.com/item?id=47757318)) "all are a simple “click ok” in the browser to log in" ([source](https://news.ycombinator.com/item?id=47257193))
- Faster than website or curl (4 comments): "Ever since I discovered `gh`, I stopped going on the website itself." ([source](https://news.ycombinator.com/item?id=49943239)) "AFAICT the gh command line tool makes this a bit smoother." ([source](https://news.ycombinator.com/item?id=47759611)) "gh works so much better for me than crafting curl requests" ([source](https://news.ycombinator.com/item?id=50192510))

## What people warn about

- Ties auth and pushes to gh (2 comments): "because i was dumb enough to use the `gh` cli to auth" ([source](https://news.ycombinator.com/item?id=48478784)) "instead a ”gh” CLI is now needed to push a commit" ([source](https://news.ycombinator.com/item?id=49119669))

## Alternatives hackers recommend

- [fzf](https://hackerapproved.com/p/fzf.md): 78 recommend
- [jq](https://hackerapproved.com/p/jq.md): 75 recommend
- [grep](https://hackerapproved.com/p/grep.md): 65 recommend
- [Atuin](https://hackerapproved.com/p/atuin.md): 63 recommend
- [GitHub CLI](https://hackerapproved.com/p/github-cli.md): 49 recommend

## Cite as

Hacker Approved, "GitHub CLI (gh)", https://hackerapproved.com/p/gh-cli/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
