GitHub CLI Power Tricks

gh CLI tricks beyond the basics.

PR commands

The gh CLI's PR commands are faster than the web UI for routine actions. Create, review, check status, merge: all from the terminal without context-switching to a browser tab.

Scripting

The gh CLI exposes the full GitHub API as a scriptable surface. Build custom workflows the web UI cannot do: bulk PR queries, repository audits, label management, GraphQL traversal, all using your already-authenticated session.

Aliases

Aliases turn the gh CLI into a personal shortcut layer. Frequent commands compress to a few keystrokes; team-shared alias sets bring onboarding consistency; dotfiles-tracked aliases survive machine moves.