GitHub CLI
GitHub CLI (Work With GitHub Without Leaving the Terminal)
Good engineers donβt constantly switch between browser β terminal β browser.
They use GitHub CLI.
What Is GitHub CLI?
GitHub CLI (gh) lets you use GitHub directly from the terminal.
You can:
- create repositories
- manage pull requests
- review issues
- authenticate securely
All without opening a browser.
Why Engineers Use GitHub CLI
β‘ Faster Workflow
No tab switching.
You stay in the terminal and:
- push code
- create PRs
- check CI status
Flow stays unbroken.
π§ Less Cognitive Load
The terminal is where engineers already work.
GitHub CLI keeps:
- code
- version control
- collaboration
in one place.
π Secure & Professional
- Uses official GitHub authentication
- No copying tokens manually
- Trusted by GitHub itself
ποΈ Used in Real Projects
GitHub CLI is common in:
- open-source contributions
- company workflows
- CI/CD automation
Learning it early builds real-world habits.
Beginner Mental Model
Think of GitHub CLI as:
βGitHub, but typed instead of clicked.β
Same actions β faster execution.
One Simple Example
Create a repo and push code:
GitHub is ready in seconds.
How Top Engineers Use It
- Create pull requests from terminal
- Review PRs without opening a browser
- Manage issues and releases
- Automate workflows with scripts
Same tool, more power.