claude

Anthropic Claude Code CLI. Terminal에서 codebase를 분석하고 파일 수정, command 실행, Git workflow, MCP 및 agent 작업을 수행한다.

  • claude를 인자 없이 실행하면 현재 directory에서 interactive session을 시작한다.
  • -p/–print는 prompt를 non-interactive 방식으로 실행해 script나 CI에서 사용한다.
  • 기존 CLI, slash command, shortcut 기록을 보존하고 2026-07-19 기준 공식 Claude Code 문서의 설치 및 update 흐름을 반영했다.
공식 문서는 native installer를 권장한다. 원격 설치 스크립트를 실행하기 전에 URL이 공식 claude.ai 도메인인지 확인한다.
# macOS / Linux / WSL: native installer (권장)
curl -fsSL https://claude.ai/install.sh | bash
 
# macOS: Homebrew stable channel
brew install --cask claude-code
 
# npm 대안: Node.js 18 이상, sudo 사용 금지
npm install -g @anthropic-ai/claude-code
 
# 설치 확인 및 진단
claude --version
claude doctor
# Windows PowerShell: native installer (권장)
irm https://claude.ai/install.ps1 | iex
 
# Windows Package Manager
winget install Anthropic.ClaudeCode
 
# 설치 확인 및 진단
claude --version
claude doctor
  • native install의 기본 실행 파일 위치는 macOS/Linux에서 ~/.local/bin/claude, Windows에서 %USERPROFILE%\.local\bin\claude.exe다.
  • native installation은 background auto-update를 지원한다. 즉시 확인하려면 claude update를 실행한다.
  • Homebrew는 brew upgrade claude-code, WinGet은 winget upgrade Anthropic.ClaudeCode로 수동 update한다.
  • 설치 후 claude를 실행해 browser login을 진행하거나 claude auth login을 사용한다. 상태 확인은 claude auth status다.
  • native Windows에서는 Git for Windows가 권장되며, 없으면 PowerShell을 shell tool로 사용한다.
  • claude [options] [command] [prompt]
    • –continue 이전 세션 이어서 시작
    • –resume 과거 특정 세션 선택해서 재개
    • -p "PROMPT" 비대화형 모드. CI/CD 자동화등에 사용
    • –model MODEL 모델 지정
    • –doctor 설치 상태 진단
    • –dangerously-skip-permissions 권한 요청 생략. 외부에서 격리된 환경에서만 사용한다.
  • claude auth login
  • claude auth status
  • claude auth logout

claude --help

  • Session/Context
    • /context** 토큰량 확인**
    • /compact 컨텍스트 압축. 80% 도달시 사용 권장. 인자로 보존할 내용 지정 가능
    • /clear 대화 기록 완전 초기화. 새작업시 사용
    • /resume 대화복원
    • /fork NAME 현재 대화 복사본 생성. 실험적 변경시 원본 보호
    • /rollback 특정 대화 시점으로 되돌리기
    • /export 다른 모델에서 사용하기 위해 내보내기
    • /output-style 대화스타일(defalut, explanatory, leaning)
  • Model / Behavior
    • /model MODEL 모델 전환
    • /effort LEVEL 모델 추론 노력 수준. low, medium, high, max(Opus 4.6+)
    • /fast Fast Mode 토글. 빠른 반복 작업에 적합(비용주의)
    • /config 설정 편집. 자동 업데이트 채널 등 조정
  • Project
    • /init 프로젝트 분석 후 CLAUDE.md 자동 생성
    • /hooks 훅 설정 메뉴. 파일 저장시 자동 실행 규칙 구성
    • /mcp MCP 서버 연결관리
    • /keybindings 단축키 커스터마이징 (~/.claude/keybindings.json)
  • Workflow (bundle)
    • /debug 오류 진단 및 디버깅 워크플로우 실행
    • /simplify 복잡한 코드 단순화 제안
    • /loop TIME COMMAND 명령 반복 실행(/loop 5m /test)
    • /btw 현재 작업 중 부수적인 제안 전달
  • PR / GIT
    • /review #NUMBER PR 코드 리뷰 실행
    • /pr-comments 현재 브랜치의 PR 코멘트 표시
    • /security-review 미커밋 변경사항 보안 감사
    • /install-github-app Github 앱 연동. PR 자동 리뷰 활성화
  • ETC
    • /doctor 설치 상태 진단.
    • /insights 사용량 및 토큰 소비 통계 보고서 생성. (.claude/usage-data/report.html)
    • /help
    • /exit
  • shift + Tab 일반/자동승인/PlanMode 순환
  • Esc 현재 실행 중단
  • @FILENAME 파일을 컨텍스트에 즉시 추가
  • !COMMAND 쉘 명령 직접 실행(토큰 절약)
  • claude: command not found가 나오면 새 terminal을 열고 ~/.local/binPATH에 포함되었는지 확인한다.
  • 여러 설치가 충돌하면 macOS/Linux에서 which -a claude, Windows에서 where.exe claude로 중복 binary를 찾는다.
  • npm 설치 시 optional dependency를 제외하면 platform native binary를 찾지 못할 수 있다. –omit=optional이나 .npmrcoptional=false 설정을 제거한다.
  • npm global 설치에 sudo를 사용하지 않는다. permission 문제가 있으면 native installer로 전환한다.
  • codex:: 2026-07-19 Migrated to claude:ko and added native, Homebrew, WinGet, npm, verification, authentication, update, and troubleshooting guidance from official docs.
  • /home/u613600155/domains/cli.zerotymer.net/public_html/data/pages/claude/ko.txt
  • 마지막으로 수정됨: 2026/07/19 02:41
  • (바깥 편집)