# บิลด์จากซอร์สโค้ด


ต้องมี Git และ Go 1.27.4 และบน macOS ต้องมี Xcode Command Line Tools พร้อมเปิดใช้ CGO เพื่อรองรับ Keychain ด้วย

บน macOS หรือ Linux:

```sh
git clone https://github.com/kongesque/line-cli.git
cd line-cli
./install.sh
```

บน Windows ใน PowerShell:

```powershell
git clone https://github.com/kongesque/line-cli.git
Set-Location line-cli
$env:CGO_ENABLED = "0"
go build -trimpath -o .\bin\line.exe ./cmd/line
.\bin\line.exe help
```

ดูวิธีรันชุดตรวจสอบสำหรับนักพัฒนา ข้อมูลจำลองสำหรับทดสอบ การเชื่อมต่อกับระบบของแต่ละแพลตฟอร์ม และขั้นตอนออกรีลีสได้ที่
[คู่มือการพัฒนา](https://github.com/kongesque/line-cli/blob/main/docs/DEVELOPMENT.md) การทดสอบทั่วไปใช้ข้อมูลสังเคราะห์และ API จำลอง ส่วนการทดสอบกับ LINE จริงต้องได้รับอนุญาตอย่างชัดเจน


---
Source: https://kongesque.github.io/line-cli/th/reference/build/
