You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome! In this chapter, you'll get GitHub Copilot CLI (Command Line Interface) installed, signed in with your GitHub account, and verified that everything works. This is a quick setup chapter. Once you're up and running, the real demos start in Chapter 01!
> ⏱️ **Estimated Time**: ~10 minutes (5 min reading + 5 min hands-on)
13
+
> ⏱️ **想定時間**: 約 10 分 (読む時間 5 分 + hands-on 5 分)
14
14
15
15
---
16
16
17
-
## ✅ Prerequisites
17
+
## ✅ 前提条件
18
18
19
-
-**GitHub Account**with Copilot access. [See subscription options](https://github.com/features/copilot/plans). Students/Teachers can access Copilot Pro for [free via GitHub Education](https://education.github.com/pack).
20
-
-**Terminal basics**: Comfortable with commands like `cd`and`ls`
GitHub Copilot CLI requires an active Copilot subscription. You can check your status at [github.com/settings/copilot](https://github.com/settings/copilot). You should see one of:
-**GitHub Education** - Free for verified students/teachers
30
30
31
-
If you see "You don't have access to GitHub Copilot," you'll need to use the free option, subscribe to a plan, or join an organization that provides access.
31
+
もし "You don't have access to GitHub Copilot" と表示された場合は、free option の利用、plan への subscription、または access を提供している organization への参加が必要です。
If you don't want to install any of the prerequisites you can use GitHub Codespaces, which has the GitHub Copilot CLI ready to go (you'll need to sign in), and pre-installs Python and pytest.
41
+
前提ソフトを local に install したくない場合は、GitHub Codespaces を利用できます。GitHub Copilot CLI がすぐ使える状態で用意されており、Python と pytest もあらかじめ install されています。必要なのは sign in だけです。
42
42
43
43
1.[Fork this repository](https://github.com/github/copilot-cli-for-beginners/fork) to your GitHub account
44
44
2. Select **Code** > **Codespaces** > **Create codespace on main**
@@ -49,7 +49,7 @@ If you don't want to install any of the prerequisites you can use GitHub Codespa
49
49
50
50
### Local Installation
51
51
52
-
Follow these steps if you'd like to run Copilot CLI on your local machine with the course samples.
52
+
course sample を使いながら local machine 上で Copilot CLI を動かしたい場合は、次の手順に従ってください。
53
53
54
54
1. Clone the repo to get the course samples on your machine:
55
55
@@ -91,7 +91,7 @@ Follow these steps if you'd like to run Copilot CLI on your local machine with t
91
91
92
92
## Authentication
93
93
94
-
Open a terminal window at the root of the `copilot-cli-for-beginners` repository, start the CLI and allow access to the folder.
<img src="images/auth-device-flow.png" alt="Device Authorization Flow - showing the 5-step process from terminal login to signed-in confirmation" width="800"/>
119
119
120
-
*The device authorization flow: your terminal generates a code, you verify it in the browser, and Copilot CLI is authenticated.*
The course provides a sample app that you'll explore and improve throughout the course using the CLI *(You can see the code for this in /samples/book-app-project)*. Check that the *Python book collection terminal app* works before you get started. Run `python` or `python3` depending on your system.
> **Note:** The primary examples shown throughout the course use Python (`samples/book-app-project`) so you'll need to have [Python 3.10+](https://www.python.org/downloads/) available on your local machine if you chose that option (the Codespace already has it installed). JavaScript (`samples/book-app-project-js`) and C# (`samples/book-app-project-cs`) versions are also available if you prefer to work with those languages. Each sample has a README with instructions forrunning the appin that language.
162
162
@@ -165,9 +165,9 @@ cd samples/book-app-project
165
165
python book_app.py list
166
166
```
167
167
168
-
**Expected output**: A list of 5 books including "The Hobbit", "1984", and "Dune".
168
+
**期待される出力**: "The Hobbit"、"1984"、"Dune" を含む 5 冊の本の一覧が表示されます。
169
169
170
-
### Step 3: Try Copilot CLI with the Book App
170
+
### Step 3: Book App と一緒に Copilot CLI を試す
171
171
172
172
Navigate back to the repository root first (if you ran Step 2):
173
173
@@ -177,9 +177,9 @@ copilot
177
177
> What does @samples/book-app-project/book_app.py do?
178
178
```
179
179
180
-
**Expected output**: A summary of the book app's main functions and commands.
180
+
**期待される出力**: book app の主な機能と command を要約した説明が返ってきます。
181
181
182
-
If you see an error, check the [troubleshooting section](#troubleshooting) below.
1. **A GitHub Codespace is a quick way to get started** - Python, pytest, and GitHub Copilot CLI are all pre-installed so you can jump right into the demos
255
-
2. **Multiple installation methods** - Choose what works for your system (Homebrew, WinGet, npm, or install script)
256
-
3. **One-time authentication** - Login persists until token expires
257
-
4. **The book app works** - You'll use `samples/book-app-project`throughout the entire course
0 commit comments