Claude Code 치트시트 및 빠른 참고

설정 및 접속

$curl -fsSL https://claude.ai/install.sh | bash
$curl -fsSL https://claude.ai/install.sh | bash

macOS, Linux 또는 WSL에서 Claude Code를 기본적으로 설치하고 자동 백그라운드 업데이트를 실시합니다.

$irm https://claude.ai/install.ps1 | iex

Windows PowerShell에서 기본 설치 관리자를 사용하여 Claude Code를 설치하고 자동 백그라운드 업데이트를 실시합니다.

$curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Windows CMD에서 기본 설치 관리자를 사용하여 Claude Code를 설치하고 자동 백그라운드 업데이트를 실시합니다.

$brew install --cask claude-code
$brew install --cask claude-code

Homebrew를 사용하여 Claude Code를 설치합니다.

$brew upgrade claude-code
$brew upgrade claude-code

Homebrew 설치는 자동 업데이트되지 않습니다. 최신 기능과 보안 수정을 받으려면 이 명령을 실행하세요.

$winget install Anthropic.ClaudeCode

Windows에서 WinGet으로 Claude Code를 설치합니다.

$winget upgrade Anthropic.ClaudeCode

WinGet 설치는 자동 업데이트되지 않습니다. 최신 기능과 보안 수정을 받으려면 이 명령을 실행하세요.

$claude

현재 프로젝트에서 대화형 Claude Code 세션을 시작합니다.

$claude -v

설치된 Claude Code 버전을 표시합니다.

$claude update

Claude Code를 최신 버전으로 수동으로 업데이트합니다.

$claude --init

초기화 훅을 실행하고 대화형 모드를 시작합니다.

$claude auth login

터미널에서 Claude 계정으로 로그인합니다. --email을 사용하여 이메일 미리 입력 또는 --sso로 SSO 인증 강제.

$claude auth status --text

인증 상태를 JSON으로 표시합니다. 사람이 읽을 수 있는 출력을 위해 --text 사용. 로그인된 경우 코드 0으로, 그렇지 않은 경우 1로 종료.

$claude "write a test for this function"

일회용 작업을 실행하고 대화형 세션을 시작하지 않고 응답을 받습니다.

$claude commit

Claude Code가 커밋 메시지를 작성하는 Git 커밋을 생성합니다.

/init

현재 프로젝트에 대한 프로젝트 지침 파일을 초기화합니다.

/memory

세션 내부에서 Claude 메모리 관리를 엽니다.

/login

Anthropic 계정에 로그인합니다.

/logout

Anthropic 계정에서 로그아웃합니다.

/mobile
/ios
/android

Claude 모바일 앱을 다운로드할 QR 코드를 표시합니다.

/import codex
/import gemini
/import cursor

Bring configuration from OpenAI Codex, Google Gemini CLI, or Cursor into Claude Code, including instruction files, MCP servers, commands, subagents, and skills.

프롬프트 및 입력

$claude -p "explain this function"

Claude를 인쇄 모드에서 한 번 실행하고 단일 응답으로 종료합니다.

Ctrl + G
Ctrl + X then Ctrl + E

기본 텍스트 편집기에서 현재 프롬프트를 엽니다.

/btw what was the name of that config file again?

주 대화 기록에 추가하지 않고 부가 질문을 합니다. Claude가 작업 중일 때 실행 가능.

Ctrl + K

커서에서 줄의 끝까지 삭제합니다.

Ctrl + U

현재 줄 전체를 삭제합니다.

Ctrl + Y

readline kill 명령으로 삭제한 텍스트를 붙여넣습니다.

Alt + Y

붙여넣기 후 이전 kill-ring 항목을 순환합니다.

Alt + B

커서를 한 단어뒤로 이동합니다.

Alt + F

커서를 한 단어 앞으로 이동합니다.

Ctrl + V or Cmd + VAlt + VCtrl + V or Alt + V

클립보드의 이미지를 붙여넣습니다.

\ + Enter
Shift + Enter
Ctrl + J
Option + EnterShift + EnterShift + Enter

여러 줄 입력을 위해 새 줄을 삽입합니다.

/

프롬프트의 시작부터 슬래시 명령 선택기를 엽니다.

!

프롬프트의 시작부터 bash 모드로 진입합니다.

@

파일 경로 자동완성을 트리거합니다.

Tab

편집할 프롬프트 제안을 수락합니다.

Enter

프롬프트 제안을 수락하고 즉시 제출합니다.

Escape
Backspace
Ctrl + U

프롬프트가 비어있을 때 bash 모드를 종료합니다.

/voice

푸시-투-톡 음성 받아쓰기를 전환합니다.

Space
Enter
Escape

/btw 부가 질문 오버레이를 닫고 주 프롬프트로 돌아갑니다.

/goal all tests passing
/goal clear

Set a goal: Claude keeps working across turns until the condition is met. Pass clear to remove an active goal early.

/loop 5m check if the deploy finished

Run a prompt repeatedly while the session stays open, with an interval such as 5m, or let Claude self-pace. Alias: /proactive.

/schedule

Create, update, list, or run routines, which execute in the cloud on a schedule. Alias: /routines.

/deep-research compare state of the art RAG approaches

Fan out web searches on a question, fetch and cross-check sources, and synthesize a cited report.

Ctrl + S

Stash the current prompt for later. With text in the input, stashes it and clears the prompt; pressed again on an empty prompt, restores the stashed text.

Ctrl + A

Move the cursor to the start of the current line. In multiline input, moves to the start of the current logical line.

Ctrl + E

Move the cursor to the end of the current line. In multiline input, moves to the end of the current logical line.

Ctrl + W

Delete back to the previous whitespace. One press removes a whole path or --flag=value.

Alt + D

Delete to the end of the current word, or to the end of the next word when the cursor is between words.

Ctrl + _
Ctrl + Shift + -

Undo the last input edit, restoring the previous input text and cursor position.

Ctrl + Enter
Ctrl + X then Ctrl + S

Send your queued messages, and your draft with them, right away while Claude is still working.

$claude -p "query" --output-format json

Get JSON output from print mode for scripts and automation.

$claude -p --fallback-model sonnet "query"

Enable automatic fallback to a specified model when the default model is overloaded (print mode only).

$claude -p --max-turns 3 "query"
$claude -p --max-budget-usd 5.00 "query"

Limit agentic turns or set a spending cap for print mode runs.

세션 및 컨텍스트

$claude -c
$claude --continue

현재 디렉토리에서 가장 최근 대화를 계속합니다.

$claude --resume auth-refactor
$claude -r

ID 또는 이름으로 특정 세션을 재개하거나 세션을 선택하기 위한 대화형 선택기를 표시합니다.

/clear
/reset
/new

현재 세션을 지우고 새로운 대화를 시작합니다.

/compact "keep only the important parts"

현재 대화를 압축하여 중요한 컨텍스트만 유지합니다.

/resume
/continue

현재 세션 내부에서 다른 대화를 재개합니다.

/rename feature-auth

현재 대화의 이름을 바꿉니다.

/fork bug-investigation

Copy the current conversation into a new background session and keep working here. Pass a prompt to start the copy on it immediately. To switch into a branch yourself, use /branch; to hand a task to a subagent that reports back, use /subtask.

/context

현재 사용 중인 컨텍스트의 양을 표시합니다.

/plan fix the auth bug

Enter plan mode, optionally passing a task description to start planning immediately.

/tasks

현재 세션의 작업 목록을 엽니다.

/copy

Copy the last assistant response to the clipboard. Pass a number N to copy the Nth-latest response, or pick individual code blocks from the interactive picker.

/export notes.txt

현재 응답을 파일로 내보냅니다.

/desktop
/app

터미널 세션을 데스크톱 앱 또는 웹으로 전송하여 시각적 diff 검토 및 계속 작업합니다.

/add-dir <path>

현재 세션에 새로운 작업 디렉토리를 추가합니다.

/branch feature-auth
/fork

이 시점에서 현재 대화의 분기를 생성합니다.

/remote-control
/rc

claude.ai에서 현재 세션의 원격 제어를 활성화합니다.

Esc + Esc

키보드에서 되감기 또는 요약합니다.

/background

Detach the current session to run as a background agent and free your terminal. Pass a prompt to send one more instruction before detaching. Alias: /bg.

/subtask refactor the auth module

Spawn a forked subagent that inherits the full conversation and works on the task while you keep working. Its result returns to this conversation when it finishes.

/cd ../other-project

Move the session to a new working directory while keeping the conversation.

/recap

Generate a one-line summary of the current session on demand.

/teleport

Pull a cloud session from claude.ai into this terminal. Opens a picker, then fetches the branch and conversation. Alias: /tp.

/autocompact 500k
/autocompact auto

Set the auto-compact window: how full the context window gets before Claude Code compacts automatically. Pass a size such as 500k, or auto for the model-tuned default.

$claude -w feature-auth
$claude --worktree

Start Claude in an isolated git worktree at .claude/worktrees/<name> so parallel sessions do not conflict. If no name is given, one is auto-generated.

$claude -n "my-feature-work"

Set a display name for the session, shown in /resume and the terminal title. Resume it later with claude --resume <name>.

$claude --resume abc123 --fork-session

When resuming, create a new session ID instead of reusing the original, keeping the original conversation untouched.

$claude --from-pr 123

Resume sessions linked to a specific GitHub PR (auto-linked when created via gh pr create).

$claude --teleport

Resume a web session from claude.ai in your local terminal.

$claude --remote "Fix the login bug"

Create a new web session on claude.ai with the provided task description.

$claude --remote-control "My Project"

Start an interactive session with Remote Control enabled so you can also control it from claude.ai or the Claude app.

네비게이션 및 제어

Ctrl + C

현재 입력 또는 생성을 취소합니다.

Ctrl + F

모든 백그라운드 에이전트를 종료합니다.

Ctrl + D

Claude Code 세션을 종료합니다.

/exit
/quit

명령 프롬프트에서 Claude Code를 종료합니다.

Ctrl + L

대화 기록을 유지하면서 터미널 화면을 지웁니다.

Ctrl + O

도구 실행 세부 정보를 위한 상세 출력을 전환합니다.

Ctrl + B

백그라운드에서 작업을 실행합니다. Tmux 사용자는 Ctrl+B를 두 번 누르세요.

Ctrl + T

작업 목록을 표시하거나 숨깁니다.

대화 상자 및 메뉴의 탭을 순환합니다.

명령 기록을 탐색합니다.

Ctrl + Z

Suspend Claude Code to your shell (Unix only). Run fg to resume.

검토 및 진단

/diff

Claude 내부에서 현재 diff를 표시합니다.

/rewind
/checkpoint
/undo

대화를 이전 체크포인트로 되감기합니다.

/doctor
/checkup

Run a setup checkup that diagnoses installation, settings, extension, and CLAUDE.md problems and proposes fixes Claude applies after you confirm.

/status

현재 Claude 세션 및 계정 상태를 표시합니다.

/stats

세션 기록 및 연속 기록을 포함한 자세한 대화 및 사용 통계를 표시합니다.

/insights

Claude Code 세션, 상호 작용 패턴 및 마찰 지점을 분석하는 보고서를 생성합니다.

/usage

현재 사용 정보를 표시합니다.

/cost

현재 지출 및 비용 정보를 표시합니다.

/security-review

보안 문제에 대해 현재 분기를 검토합니다.

Cmd + ClickCtrl + ClickCtrl + Click

바닥글에서 연결된 풀 요청을 엽니다.

/code-review
/code-review high 1234
/code-review ultra --fix
/review

Review the current diff, or a PR number, branch, or path, for correctness bugs. Pass --fix to apply findings, --comment to post them on the PR, or ultra for a deep multi-agent cloud review. Alias: /review.

/simplify

Review the changed code for cleanup opportunities and apply the fixes. Four agents run in parallel covering reuse, simplification, efficiency, and abstraction level. Does not look for correctness bugs; use /code-review for those.

/verify

Confirm a code change does what it should by building the app, running it, and observing the result, rather than relying on tests or type checks.

/debug login fails on safari

Enable debug logging for the current session and troubleshoot issues by reading the session debug log. Optionally describe the issue to focus the analysis.

역방향 검색

Ctrl + R

명령 기록을 통해 역방향 검색을 시작하거나 이전 일치 항목을 순환합니다.

Tab
Esc

편집을 위해 현재 역방향 검색 일치를 수락합니다.

Enter

현재 역방향 검색 일치를 수락하고 실행합니다.

Backspace

쿼리가 비어있을 때 역방향 검색을 종료합니다.

Ctrl + C

역방향 검색을 취소하고 원래 입력을 복원합니다.

설정 및 통합

/config
/settings
/config theme=dark

Open the Settings interface, or pass key=value pairs to set a setting directly, such as /config thinking=false or /config model=sonnet.

/theme

테마 선택기를 엽니다.

/color orange

인터페이스 색상 테마를 설정합니다.

/keybindings

키 바인딩 설정을 엽니다.

/terminal-setup

Shift+Enter 지원과 같은 터미널별 바인딩을 설치합니다.

/model

현재 세션 내부에서 모델을 전환합니다.

/effort high

현재 추론 노력 수준을 변경합니다.

/fast on

현재 세션에서 빠른 모드를 전환합니다.

/permissions
/allowed-tools

권한 설정을 엽니다.

/sandbox

샌드박스 설정을 엽니다.

/mcp

MCP 서버 통합을 관리합니다.

/plugin

세션 내부에서 플러그인을 관리합니다.

/reload-plugins

설치된 플러그인을 다시 로드합니다.

/ide

Claude Code를 IDE에 연결합니다.

/agents

에이전트 및 팀원 옵션을 엽니다.

/hooks

도구 이벤트 및 자동화에 대한 훅 구성을 봅니다.

/config

Toggle between Vim and Normal editing modes from the Settings interface. Removed as the /vim command in v2.1.92.

/statusline

셸 프롬프트에서 Claude Code의 상태 줄 표시를 구성합니다.

Shift + Tab
Alt + M

권한 모드를 전환합니다.

Option + PAlt + PAlt + P

현재 프롬프트를 지우지 않고 모델을 전환합니다.

Option + TAlt + TAlt + T

확장 사고 모드를 전환합니다.

Ctrl + T

테마 선택기 내부에서 구문 강조를 전환합니다.

/usage-credits

Configure usage credits, or request them from your admin, when you hit a rate limit. Previously /extra-usage.

/output-style concise

List output styles or switch to one.

/update-config allow npm test without prompting

Describe a settings change, such as allowing a command or adding a hook, and Claude edits the matching settings.json file. For theme and model, use /config instead.

/fewer-permission-prompts

Scan your transcripts for common read-only Bash and MCP tool calls, then add a prioritized allowlist to project settings to reduce permission prompts.

/skill-doctor

Show what each of your skills costs in context and how often it gets used, so you can find skills to turn off.

/list-agents
/peers

List the subagents, agent team teammates, and other Claude Code sessions Claude can message, with the name to use for each. Alias: /peers.

Option + OAlt + OAlt + O

Toggle fast mode on or off.

$claude --agents '{"reviewer":{"description":"Reviews code","prompt":"You are a code reviewer"}}'

Define custom subagents dynamically at launch via JSON, using the same fields as subagent frontmatter plus a prompt field.

$claude --tools "Bash,Edit,Read"

Restrict which built-in tools Claude can use. Use "" to disable all, "default" for all, or list tool names.

$claude --effort high

Set the effort level for the session at launch: low, medium, high, or max (Opus only, session-scoped).

$claude --add-dir ../apps ../lib

Add additional working directories for Claude to access at launch.

$claude --permission-mode plan

Begin the session in a specified permission mode, such as plan.

$claude --mcp-config ./mcp.json
$claude --strict-mcp-config --mcp-config ./mcp.json

Load MCP servers from JSON files or strings, optionally ignoring all other MCP configuration.

도움말 및 발견

/help

기본 제공 슬래시 명령 도움말을 엽니다.

/skills

사용 가능한 기술 목록을 엽니다.

/release-notes

최근 버전 업데이트가 포함된 전체 변경 로그를 보세요.

/feedback
/bug

Claude Code에 대한 피드백을 제출하거나 버그를 보고합니다.

?

현재 환경의 단축키 범례를 엽니다.