File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # How to Install the GitHub CLI (` gh ` )
2+
3+ The GitHub CLI is required for creating and connecting to GitHub Codespaces from the command line.
4+
5+ ## macOS
6+
7+ ``` bash
8+ brew install gh
9+ ```
10+
11+ ## Linux (Debian/Ubuntu)
12+
13+ ``` bash
14+ sudo apt update
15+ sudo apt install gh
16+ ```
17+
18+ ## Linux (Fedora/RHEL)
19+
20+ ``` bash
21+ sudo dnf install gh
22+ ```
23+
24+ ## Windows
25+
26+ Open ** PowerShell** (press ** Win + R** , type ` powershell ` , press Enter) and run:
27+
28+ ```
29+ winget install --id GitHub.cli
30+ ```
31+
32+ ## After Installation
33+
34+ Authenticate with your GitHub account:
35+
36+ ``` bash
37+ gh auth login
38+ ```
39+
40+ Add the Codespaces scope:
41+
42+ ``` bash
43+ gh auth refresh -h github.com -s codespace
44+ ```
45+
46+ You are now ready to create and connect to Codespaces.
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ cd ~/flashx/Flash-X/object
5656./flashx
5757```
5858
59- ** From the command line (GitHub CLI):**
59+ ** From the command line ([ GitHub CLI] ( HOWTO_install_gh.md ) ):**
6060
6161``` bash
6262# Create a codespace (prints the codespace name on success)
You can’t perform that action at this time.
0 commit comments