{{tag>[claude]}} ====== claude code ====== ===== CLI ===== * ''**claude** [options] [command] [prompt]'' * ''**--continue**'' 이전 세션 이이서 시작 * ''**--resume**'' 과거 특정 세션 선택해서 재개 * ''**-p** "PROMPT"'' 비대화형 모드. CI/CD 자동화등에 사용 * ''**--model** MODEL'' 모델 지정 * ''**--doctor**'' 설치 상태 진단 * ''**--dangerously-skip-permmisions**'' 권한 요청 생략. 자동화용. * ''**claude** **auth login**'' * ''**claude** **auth status**'' * ''**claude** **auth logout**'' ==== HELP ==== ++++ cladue --help | Usage: claude [options] [command] [prompt] Claude Code - starts an interactive session by default, use -p/--print for non-interactive output Arguments: prompt Your prompt Options: --add-dir Additional directories to allow tool access to --agent Agent for the current session. Overrides the 'agent' setting. --agents JSON object defining custom agents (e.g. '{"reviewer": {"description": "Reviews code", "prompt": "You are a code reviewer"}}') --allow-dangerously-skip-permissions Enable bypassing all permission checks as an option, without it being enabled by default. Recommended only for sandboxes with no internet access. --allowedTools, --allowed-tools Comma or space-separated list of tool names to allow (e.g. "Bash(git:*) Edit") --append-system-prompt Append a system prompt to the default system prompt --bare Minimal mode: skip hooks, LSP, plugin sync, attribution, auto-memory, background prefetches, keychain reads, and CLAUDE.md auto-discovery. Sets CLAUDE_CODE_SIMPLE=1. Anthropic auth is strictly ANTHROPIC_API_KEY or apiKeyHelper via --settings (OAuth and keychain are never read). 3P providers (Bedrock/Vertex/Foundry) use their own credentials. Skills still resolve via /skill-name. Explicitly provide context via: --system-prompt[-file], --append-system-prompt[-file], --add-dir (CLAUDE.md dirs), --mcp-config, --settings, --agents, --plugin-dir. --betas Beta headers to include in API requests (API key users only) --brief Enable SendUserMessage tool for agent-to-user communication --chrome Enable Claude in Chrome integration -c, --continue Continue the most recent conversation in the current directory --dangerously-skip-permissions Bypass all permission checks. Recommended only for sandboxes with no internet access. -d, --debug [filter] Enable debug mode with optional category filtering (e.g., "api,hooks" or "!1p,!file") --debug-file Write debug logs to a specific file path (implicitly enables debug mode) --disable-slash-commands Disable all skills --disallowedTools, --disallowed-tools Comma or space-separated list of tool names to deny (e.g. "Bash(git:*) Edit") --effort Effort level for the current session (low, medium, high, max) --fallback-model Enable automatic fallback to specified model when default model is overloaded (only works with --print) --file File resources to download at startup. Format: file_id:relative_path (e.g., --file file_abc:doc.txt file_def:img.png) --fork-session When resuming, create a new session ID instead of reusing the original (use with --resume or --continue) --from-pr [value] Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term -h, --help Display help for command --ide Automatically connect to IDE on startup if exactly one valid IDE is available --include-hook-events Include all hook lifecycle events in the output stream (only works with --output-format=stream-json) --include-partial-messages Include partial message chunks as they arrive (only works with --print and --output-format=stream-json) --input-format Input format (only works with --print): "text" (default), or "stream-json" (realtime streaming input) (choices: "text", "stream-json") --json-schema JSON Schema for structured output validation. Example: {"type":"object","properties":{"name":{"type":"string"}},"required":["name"]} --max-budget-usd Maximum dollar amount to spend on API calls (only works with --print) --mcp-config Load MCP servers from JSON files or strings (space-separated) --mcp-debug [DEPRECATED. Use --debug instead] Enable MCP debug mode (shows MCP server errors) --model Model for the current session. Provide an alias for the latest model (e.g. 'sonnet' or 'opus') or a model's full name (e.g. 'claude-sonnet-4-6'). -n, --name Set a display name for this session (shown in /resume and terminal title) --no-chrome Disable Claude in Chrome integration --no-session-persistence Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print) --output-format Output format (only works with --print): "text" (default), "json" (single result), or "stream-json" (realtime streaming) (choices: "text", "json", "stream-json") --permission-mode Permission mode to use for the session (choices: "acceptEdits", "bypassPermissions", "default", "dontAsk", "plan", "auto") --plugin-dir Load plugins from a directory for this session only (repeatable: --plugin-dir A --plugin-dir B) (default: []) -p, --print Print response and exit (useful for pipes). Note: The workspace trust dialog is skipped when Claude is run with the -p mode. Only use this flag in directories you trust. --replay-user-messages Re-emit user messages from stdin back on stdout for acknowledgment (only works with --input-format=stream-json and --output-format=stream-json) -r, --resume [value] Resume a conversation by session ID, or open interactive picker with optional search term --session-id Use a specific session ID for the conversation (must be a valid UUID) --setting-sources Comma-separated list of setting sources to load (user, project, local). --settings Path to a settings JSON file or a JSON string to load additional settings from --strict-mcp-config Only use MCP servers from --mcp-config, ignoring all other MCP configurations --system-prompt System prompt to use for the session --tmux Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux. --tools Specify the list of available tools from the built-in set. Use "" to disable all tools, "default" to use all tools, or specify tool names (e.g. "Bash,Edit,Read"). --verbose Override verbose mode setting from config -v, --version Output the version number -w, --worktree [name] Create a new git worktree for this session (optionally specify a name) Commands: agents [options] List configured agents auth Manage authentication auto-mode Inspect auto mode classifier configuration doctor Check the health of your Claude Code auto-updater. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust. install [options] [target] Install Claude Code native build. Use [target] to specify version (stable, latest, or specific version) mcp Configure and manage MCP servers plugin|plugins Manage Claude Code plugins setup-token Set up a long-lived authentication token (requires Claude subscription) update|upgrade Check for updates and install if available ++++ ===== command ====== * 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**'' ==== SHORTCUT ==== * ''shift + Tab'' 일반/자동승인/PlanMode 순환 * ''Esc'' 현재 실행 중단 * ''@FILENAME'' 파일을 컨텍스트에 즉시 추가 * ''!COMMAND'' 쉘 명령 직접 실행(토큰 절약)