Skip to content

Commit 923a0b4

Browse files
rtfisherclaude
andcommitted
Add GitHub CLI installation guide and link from README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3d5cde5 commit 923a0b4

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

HOWTO_install_gh.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)