From 75e37cc7f0de080824dea408623065fe2eace88c Mon Sep 17 00:00:00 2001 From: Jerry Chae Date: Tue, 2 Jun 2026 11:31:45 +0900 Subject: [PATCH] =?UTF-8?q?claude=20code=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 +++++++++++++++++++- install-claude-code.ps1 | 74 +++++++++++++++++++++++++++++++++++++++++ install-claude-code.sh | 43 ++++++++++++++++++++++++ 3 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 install-claude-code.ps1 create mode 100644 install-claude-code.sh diff --git a/README.md b/README.md index e724fd2..58a1c05 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ ### πŸ€– 4. AI 개발 μ—μ΄μ „νŠΈ (AI Agents) * **[Antigravity CLI (agy)](https://antigravity.google)** - Antigravity 2.0 ν”Œλž«νΌμ˜ κ²½λŸ‰ν™” 터미널 μ½”λ”© μ—μ΄μ „νŠΈ CLI +* **[Claude Code](https://code.claude.com/)** - Anthropic의 μ°¨μ„ΈλŒ€ 터미널 기반 λŒ€ν™”ν˜• AI μ½”λ”© μ–΄μ‹œμŠ€ν„΄νŠΈ CLI * **[pi](https://pi.dev/)** - λŒ€ν™”ν˜• CLI AI μ½”λ”© μ–΄μ‹œμŠ€ν„΄νŠΈ 및 μΆ”μ²œ ν”ŒλŸ¬κ·ΈμΈ νŒ¨ν‚€μ§€ 일괄 μ„€μΉ˜ 도ꡬ --- @@ -100,6 +101,11 @@ curl -fsSL "https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-agy.sh?ref_type=heads" | bash ``` +* **Claude Code:** + ```bash + curl -fsSL "https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-claude-code.sh?ref_type=heads" | bash + ``` + * **pi (Pi Coding Agent + μΆ”μ²œ νŒ¨ν‚€μ§€):** ```bash curl -fsSL "https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-pi.sh?ref_type=heads" | bash @@ -226,6 +232,16 @@ $t="$env:TEMP\install-agy.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-agy.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` +* **Claude Code:** + * **CMD μ°½μ—μ„œ μ„€μΉ˜ μ‹œ:** + ```cmd + powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-claude-code.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-claude-code.ps1' -OutFile $t; & $t" + ``` + * **νŒŒμ›Œμ‰˜ μ°½μ—μ„œ μ„€μΉ˜ μ‹œ:** + ```powershell + $t="$env:TEMP\install-claude-code.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-claude-code.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t + ``` + * **pi (Pi Coding Agent + μΆ”μ²œ νŒ¨ν‚€μ§€):** * **CMD μ°½μ—μ„œ μ„€μΉ˜ μ‹œ:** ```cmd @@ -464,7 +480,25 @@ agy -p "μš”μ²­μ‚¬ν•­" # μ§€μ • μš”μ²­ 과업에 λŒ€ν•œ 단일 μ‹€ν–‰ 및 λΆ„ agy --help # 도움말 및 λͺ…λ Ήμ–΄ λͺ…μ„Έ λ‘œλ“œ ``` -#### 4.2. Pi Coding Agent +#### 4.2. Claude Code +Anthropicμ‚¬μ—μ„œ κ°œλ°œν•œ 곡식 터미널 기반 AI 개발 μ–΄μ‹œμŠ€ν„΄νŠΈ νˆ΄ν‚·μž…λ‹ˆλ‹€. npm이 κΉ”λ €μžˆμ§€ μ•Šμ€ μ‹œμŠ€ν…œμ—μ„œλ„ curl(macOS/Linux) 및 winget(Windows) λ„€μ΄ν‹°λΈŒ μ„€μΉ˜ 방식을 μ‚¬μš©ν•˜μ—¬ μ¦‰μ‹œ CLI μ½”λ”© ν™˜κ²½μ— μ ‘λͺ©ν•  수 μžˆμŠ΅λ‹ˆλ‹€. + +* **고속 μ»¨ν…μŠ€νŠΈ μΆ”λ‘ ** β€” Anthropic Claude 3.5 Sonnet λ“±μ˜ κ³ μ„±λŠ₯ AI μΆ”λ‘  엔진을 터미널 λ‚΄μ—μ„œ λ°”λ‘œ 가동 +* **λ„€μ΄ν‹°λΈŒ μ‹€ν–‰ μ œμ–΄** β€” μ‹œμŠ€ν…œ μ•„ν‚€ν…μ²˜ ν™˜κ²½κ³Ό 둜컬 파일 ꡬ쑰λ₯Ό 깊이 μ΄ν•΄ν•˜κ³  μ¦‰μ‹œ λΉŒλ“œ 및 λ¦¬μ„œμΉ˜ μˆ˜ν–‰ +* **μ•ˆμ „μ„± 확보** β€” κ°•λ ₯ν•œ 둜컬 μƒŒλ“œλ°•μŠ€ μ •μ±… 및 κΆŒν•œ 승인 λͺ¨λ“œλ₯Ό 톡해 μ•ˆμ „ν•œ μžλ™ μ½”λ”© 보μž₯ + +```bash +claude # 가동 λͺ…λ Ήμ–΄ (둜그인 ν›„ μ„Έμ…˜ μ‹œμž‘) +``` + +##### [Claude Code κΈ°λ³Έ μ‚¬μš©λ²•] +```bash +claude # λŒ€ν™”ν˜• μ½”λ”© μ„Έμ…˜ μ‹œμž‘ (OAuth 둜그인 연동) +claude -p "질문/μž‘μ—…" # 터미널 창을 μ—΄μ§€ μ•Šκ³  μ¦‰μ‹œ μ§€μ‹œ μˆ˜ν–‰ 및 κ²°κ³Ό 좜λ ₯ (λ‹¨λ°œ μ‹€ν–‰) +claude --help # 도움말 및 μ‚¬μš©λ²• λ‘œλ“œ +``` + +#### 4.3. Pi Coding Agent CLI 기반의 μ΅œμ²¨λ‹¨ AI μ½”λ”© νŒŒνŠΈλ„ˆμž…λ‹ˆλ‹€. λ³Έ μ €μž₯μ†Œμ˜ `install-pi` μ„€μΉ˜ 도ꡬλ₯Ό ν™œμš©ν•˜λ©΄ μ—μ΄μ „νŠΈ 본체뿐 μ•„λ‹ˆλΌ μ„±λŠ₯ κ·ΉλŒ€ν™”λ₯Ό μ§€μ›ν•˜λŠ” 핡심 ν”ŒλŸ¬κ·ΈμΈ μ—μ½”μ‹œμŠ€ν…œ 15쒅을 λ‹¨λ²ˆμ— 일괄 μ…‹μ—…ν•  수 μžˆμŠ΅λ‹ˆλ‹€. ##### [일괄 μ„€μΉ˜λ˜λŠ” μΆ”μ²œ νŒ¨ν‚€μ§€ 리슀트] diff --git a/install-claude-code.ps1 b/install-claude-code.ps1 new file mode 100644 index 0000000..db92912 --- /dev/null +++ b/install-claude-code.ps1 @@ -0,0 +1,74 @@ +#Requires -Version 5.1 +<# +.SYNOPSIS + Installs Claude Code (Anthropic's command-line AI assistant) on Windows using WinGet. + +.DESCRIPTION + Installs Claude Code natively via winget (Anthropic.ClaudeCode). + This native installation method is recommended for Windows. + +.EXAMPLE + .\install-claude-code.ps1 + + # One-liner install from remote (works on Windows 10+): + powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-claude-code.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-claude-code.ps1' -OutFile $t; & $t" + +.NOTES + If execution policy error occurs: + Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser +#> + +[CmdletBinding()] +param() + +# μ΅œμ‹  μœˆλ„μš° ν™˜κ²½ 및 μ—λŸ¬ λ°œμƒ μ‹œ μ¦‰μ‹œ 쀑단 μ„€μ • +Set-StrictMode -Version Latest +$ErrorActionPreference = 'Stop' + +# HTTPS λ‹€μš΄λ‘œλ“œλ₯Ό μœ„ν•œ TLS 1.2 κ°•μ œ (PowerShell 5.1 ν˜Έν™˜μ„± 보μž₯) +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + +# ──────────────────────────────────────────── +# μœ ν‹Έλ¦¬ν‹° ν•¨μˆ˜ μ •μ˜ (λͺ¨λ“  μ•ˆλ‚΄ λ¬Έκ΅¬λŠ” 영문으둜 μž‘μ„±) +# ──────────────────────────────────────────── +function Write-Info { param([string]$msg) Write-Host "[INFO] $msg" -ForegroundColor Cyan } + # 정보 좜λ ₯ +function Write-Warn { param([string]$msg) Write-Host "[WARN] $msg" -ForegroundColor Yellow } + # κ²½κ³  좜λ ₯ +function Write-Success { param([string]$msg) Write-Host "[OK] $msg" -ForegroundColor Green } + # 성곡 좜λ ₯ +function Write-Err { param([string]$msg) Write-Host "[ERROR] $msg" -ForegroundColor Red; exit 1 } + # μ—λŸ¬ 좜λ ₯ 및 슀크립트 κ°•μ œ μ’…λ£Œ + +# ──────────────────────────────────────────── +# 메인 μ„€μΉ˜ ν”„λ‘œμ„ΈμŠ€ +# ──────────────────────────────────────────── +function Main { + Write-Info "===== Claude Code install script (Windows PowerShell) =====" + Write-Info "Installing Claude Code (command-line AI assistant) natively..." + + # 1) winget λͺ…λ Ήμ–΄ κ°€μš©μ„± 확인 + if (-not (Get-Command winget -ErrorAction SilentlyContinue)) { + Write-Err "winget is required to install Claude Code. Please install it from the Microsoft Store or https://learn.microsoft.com/en-us/windows/package-manager/winget/" + } + + # 2) winget을 ν†΅ν•œ Anthropic.ClaudeCode μ„€μΉ˜ 가동 + try { + Write-Info "Running winget installer..." + # λΌμ΄μ„ΌμŠ€ 및 μ†ŒμŠ€ ν˜‘μ•½ μžλ™ 수락 μ²˜λ¦¬μ™€ ν•¨κ»˜ μ„€μΉ˜ μ‹€ν–‰ + winget install --id Anthropic.ClaudeCode --accept-package-agreements --accept-source-agreements 2>&1 | Out-Null + + Write-Success "Claude Code has been successfully installed!" + Write-Info "Please restart your terminal window or refresh your PATH environment variable." + Write-Info "Run command: claude" + } catch { + Write-Err "Failed to install Claude Code via winget: $_" + } +} + +# 예기치 λͺ»ν•œ 전체 ν”„λ‘œμ„ΈμŠ€ μ—λŸ¬ 감지λ₯Ό μœ„ν•œ Trap μ„€μ • +trap { + Write-Err "An unexpected error occurred during installation: $_" +} + +Main diff --git a/install-claude-code.sh b/install-claude-code.sh new file mode 100644 index 0000000..ea8cbc3 --- /dev/null +++ b/install-claude-code.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash +# shellcheck disable=SC2086 + +# Anthropic Claude Code λ„€μ΄ν‹°λΈŒ μ„€μΉ˜ 슀크립트 +# +# macOS, Linux, WSL ν™˜κ²½μ—μ„œ curl을 μ‚¬μš©ν•˜μ—¬ 곡식 μ„€μΉ˜ 슀크립트λ₯Ό λ‹€μš΄λ‘œλ“œν•˜κ³  bash둜 μ‹€ν–‰ν•©λ‹ˆλ‹€. +# 곡식 κ°€μ΄λ“œ: https://code.claude.com/docs/ko/quickstart#native-install-recommended + +set -euo pipefail + +# ──────────────────────────────────────────── +# μœ ν‹Έλ¦¬ν‹° ν•¨μˆ˜ (λͺ¨λ‘ stderr 좜λ ₯) +# ──────────────────────────────────────────── +info() { echo "[INFO] $*" >&2; } +warn() { echo "[WARN] $*" >&2; } +error() { echo "[ERROR] $*" >&2; exit 1; } +success() { echo "[OK] $*" >&2; } + +# ──────────────────────────────────────────── +# ν•„μˆ˜ λͺ…λ Ήμ–΄ 확인 +# ──────────────────────────────────────────── +if ! command -v curl &>/dev/null; then + error "'curl' λͺ…λ Ήμ–΄κ°€ ν•„μš”ν•©λ‹ˆλ‹€. λ¨Όμ € μ„€μΉ˜ν•΄ μ£Όμ„Έμš”." +fi + +# ──────────────────────────────────────────── +# 메인 μ„€μΉ˜ 둜직 +# ──────────────────────────────────────────── +main() { + info "Anthropic Claude Code λ„€μ΄ν‹°λΈŒ μ„€μΉ˜λ₯Ό μ‹œμž‘ν•©λ‹ˆλ‹€..." + info "곡식 μ„€μΉ˜ 슀크립트 μ‹€ν–‰ 쀑: curl -fsSL https://claude.ai/install.sh | bash" + + # 곡식 슀크립트 직접 호좜 + if curl -fsSL https://claude.ai/install.sh | bash; then + success "Claude Code μ„€μΉ˜κ°€ μ„±κ³΅μ μœΌλ‘œ μ™„λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€!" + info "μƒˆλ‘œμš΄ 터미널 창을 μ—΄κ±°λ‚˜ ν™˜κ²½ λ³€μˆ˜λ₯Ό λ°˜μ˜ν•œ λ’€ μ•„λž˜ λͺ…λ Ήμ–΄λ₯Ό 톡해 μ‹€ν–‰ν•˜μ„Έμš”:" + info " claude" + else + error "Claude Code 곡식 μ„€μΉ˜ 슀크립트 가동 쀑 μ—λŸ¬κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€." + fi +} + +main "$@"