Week 1 of 12 🚀

Introduction to Claude Code

แนะนำ Claude Code

Claude Code 入门

Introduction to Claude Code

1. Introduction / บทนำ / 简介

Claude Code คือเครื่องมือบรรทัดคำสั่ง (CLI) อย่างเป็นทางการของ Anthropic สำหรับ Claude AI ช่วยให้คุณทำงานกับ Claude ในเทอร์มินัลได้โดยตรง — อ่านไฟล์ เขียนโค้ด รันคำสั่ง และจัดการโปรเจกต์ทั้งหมดผ่านการสนทนาด้วยภาษาธรรมชาติ
Claude Code 是 Anthropic 为 Claude AI 推出的官方命令行工具(CLI)。它让你直接在终端里与 Claude 一起工作——读取文件、编写代码、运行命令,并通过自然语言对话管理整个项目。
Claude Code is Anthropic's official command-line interface (CLI) for Claude AI. It lets you work with Claude directly in your terminal — reading files, writing code, running commands, and managing entire projects through natural language conversation.

Fun Facts / ข้อเท็จจริงที่น่าสนใจ / 趣味知识

  • Claude Code supports macOS, Windows, and Linux!
  • You can install it with just one command.
  • It works with Pro, Max, Teams, and Enterprise accounts.
A DEC VT100 computer terminal from 1978, beige with a black screen full of text
A DEC VT100 (1978) — the classic terminal. Today’s terminal apps still imitate it. — Photo: Jason Scott, CC BY 2.0, via Wikimedia Commons

2. Vocabulary / คำศัพท์ / 词汇

Click a card to flip it. คลิกการ์ดเพื่อพลิก 点击卡片翻面。

install
ติดตั้ง
安装
To set up software on a computer
terminal
เทอร์มินัล
终端
A text-based interface to interact with a computer
command
คำสั่ง
命令
An instruction given to a computer
prompt
พรอมต์
提示词
A message asking for input
version
เวอร์ชัน
版本
A specific release of software
run
รัน / เรียกใช้
运行
To execute a program or command
setup
ตั้งค่า
设置
To prepare something for use
login
เข้าสู่ระบบ
登录
To sign in to an account
account
บัญชี
账户
A user profile for a service
session
เซสชัน
会话
A period of working with the tool
output
ผลลัพธ์
输出
The result produced by a command
CLI
ซีแอลไอ
命令行界面
Command Line Interface — a text-based tool

3. Grammar Focus / ไวยากรณ์ / 语法焦点

Imperative Sentences (Install, Run, Open) / ประโยคคำสั่ง (Install, Run, Open) / 祈使句(Install、Run、Open)

Thai:
ประโยคคำสั่งใช้สั่งหรือให้คำแนะนำ เริ่มต้นด้วยกริยาและไม่มีประธาน (ประธาน 'you' ถูกละไว้) ตัวอย่าง: 'Install Claude Code.' 'Run the command.' 'Open your terminal.'
中文:
祈使句用来发出命令或给出指示。它以动词开头,没有主语(主语 'you' 被省略)。例如:'Install Claude Code.'(安装 Claude Code。)'Run the command.'(运行这条命令。)'Open your terminal.'(打开你的终端。)
English:
Imperative sentences give commands or instructions. They start with a verb and have no subject (the subject 'you' is implied). Examples: 'Install Claude Code.' 'Run the command.' 'Open your terminal.'
ติดตั้ง Claude Code บนคอมพิวเตอร์ของคุณ
在你的电脑上安装 Claude Code。
Install Claude Code on your computer.
รัน 'claude' ในเทอร์มินัล
在终端里运行 'claude'。
Run 'claude' in the terminal.
เปิดเซสชันใหม่
打开一个新会话。
Open a new session.

Section Check 1

What command starts a Claude Code session?

คำสั่งอะไรเริ่มเซสชัน Claude Code?

哪个命令可以开始一个 Claude Code 会话?

Section Check 2

Which sentence is imperative?

ประโยคไหนเป็นประโยคคำสั่ง?

哪个句子是祈使句?

Section Check 3

What does CLI stand for?

CLI ย่อมาจากอะไร?

CLI 是什么的缩写?

4. Tutorial Steps / ขั้นตอนการเรียนรู้ / 教程步骤

1
Open your terminal / เปิดเทอร์มินัลของคุณ / 打开你的终端
On Windows, press Win+R and type 'cmd' or open PowerShell. On Mac, open Terminal from Applications.

How to do it

  • Windows: press Win+R, type cmd, press Enter. Or right-click the Start button and choose Terminal.
  • Mac: press Cmd+Space, type Terminal, press Enter.
  • You should see a line that ends with > or $. That is the prompt — the computer is waiting for you to type.
2
Install Claude Code / ติดตั้ง Claude Code / 安装 Claude Code
Run: curl -fsSL https://claude.ai/install.sh | bash (Mac/Linux) or irm https://claude.ai/install.ps1 | iex (Windows PowerShell)

How to do it

  • Copy the one install command for your system and paste it into the terminal, then press Enter.
  • Mac/Linux: curl -fsSL https://claude.ai/install.sh | bash  ·  Windows PowerShell: irm https://claude.ai/install.ps1 | iex
  • The installer downloads everything itself. Wait until you see a success message.
  • If the terminal says "command not found" afterwards, close the terminal and open a new one — the new command is loaded on start.
3
Verify installation / ตรวจสอบการติดตั้ง / 验证安装
Run: claude --version to see the installed version number.

How to do it

  • Type claude --version and press Enter.
  • A version number (for example 2.1.0) means the install worked.
  • No version? Open a fresh terminal window and try again before re-installing.
4
Start your first session / เริ่มเซสชันแรก / 开始你的第一个会话
Navigate to your project folder and type: claude

How to do it

  • Move into a project folder first: cd Documents\my-project (Windows) or cd ~/my-project (Mac). Claude works on the folder you start it in.
  • Type claude and press Enter. The Claude Code welcome screen appears.
  • You can now type instructions in normal English (or Thai) — no special commands needed.
5
Login to your account / เข้าสู่ระบบบัญชีของคุณ / 登录你的账户
A browser window will open. Sign in with your Anthropic account.

How to do it

  • The first time, a browser window opens automatically. Sign in with the same account you use for your Claude subscription.
  • After signing in, go back to the terminal — it now says you are logged in.
  • You only do this once. Next sessions start straight away.

5. Hands-On Activity / กิจกรรมลงมือทำ / 动手练习

แบบฝึกหัด: เปิดเทอร์มินัลและติดตั้ง Claude Code จากนั้นเริ่มเซสชันและขอให้ Claude 'พูดสวัสดีเป็นภาษาไทย'
练习:打开终端并安装 Claude Code。然后开始一个会话,让 Claude "用中文说你好"。
Practice: Open your terminal and install Claude Code. Then start a session and ask Claude to 'say hello in Thai'.

Step by step

  1. Open your terminal and go to any folder (cd Documents is fine).
  2. Type claude and press Enter to start a session.
  3. Type: say hello in Thai and press Enter.
  4. Read the answer, then try: now say it in English and explain the Thai words.

✓ You did it right if: Claude answers with a Thai greeting like สวัสดี and can explain it.

📜 A complete first session / ตัวอย่างคำตอบ / 示例答案
# Lines starting with > are what YOU type.

C:\Users\student> claude --version
2.1.0 (Claude Code)

C:\Users\student> cd Documents\my-first-project
C:\Users\student\Documents\my-first-project> claude

 * Welcome to Claude Code!
   /help for help - /status for your session

> say hello in Thai
* Swasdi khrap! (sawasdee krap) - "Hello!" in Thai.
  Polite endings: "krap" for a male speaker, "ka" for a female speaker.

> now say it in English and explain the Thai words
* Hello! "Sawasdee" is the all-purpose Thai greeting...

6. Reference Table / ตารางอ้างอิง / 参考表

Command / ToolEnglishภาษาไทย中文
claude --versionCheck installed versionตรวจสอบเวอร์ชัน查看已安装的版本
claudeStart interactive sessionเริ่มเซสชันแบบโต้ตอบ开始交互式会话
claude doctorDiagnose issuesวินิจฉัยปัญหา诊断问题
claude --helpShow help informationแสดงข้อมูลช่วยเหลือ显示帮助信息

7. Summary / สรุป / 总结

Claude Code คือเครื่องมือ CLI ที่นำ AI เข้ามาในเทอร์มินัลของคุณ ติดตั้งได้ด้วยคำสั่งเดียวและเริ่มเซสชันโดยพิมพ์ 'claude' ประโยคคำสั่งเช่น 'Install', 'Run' และ 'Open' ใช้สำหรับให้คำแนะนำ
Claude Code 是把 AI 带进终端的 CLI 工具。一条命令即可安装,输入 'claude' 就能开始会话。像 'Install'、'Run' 和 'Open' 这样的祈使句用于给出指示。
Claude Code is a CLI tool that brings AI into your terminal. You install it with one command and start sessions by typing 'claude'. Imperative sentences like 'Install', 'Run', and 'Open' are used for giving instructions.

Homework / การบ้าน / 作业

1. ติดตั้ง Claude Code บนคอมพิวเตอร์ของคุณ
2. เริ่มเซสชันและถามคำถาม 3 ข้อ
3. เขียนประโยคคำสั่ง 5 ประโยคเกี่ยวกับการใช้คอมพิวเตอร์
1. 在你的电脑上安装 Claude Code。
2. 开始一个会话并提出 3 个问题。
3. 写 5 个关于使用电脑的祈使句。
1. Install Claude Code on your computer.
2. Start a session and ask three questions.
3. Write 5 imperative sentences about using a computer.