#Basic Usage
| Command | Description | |
|---|---|---|
claude | Start interactive mode | |
claude "..." | Ask once and exit | |
claude -p "..." | For pipeline/scripts (non-interactive) | |
claude --cwd /path | Start in specific directory | |
claude --version | Check version |
#Slash Commands
| Command | Description | |
|---|---|---|
/help | Show help | |
/clear | Clear conversation history | |
/compact | Compress context (save tokens) | |
/config | View/change settings | |
/cost | Check current session cost | |
/doctor | Diagnose settings | |
/init | Create CLAUDE.md file | |
/login | Login to account | |
/logout | Logout | |
/memory | Edit memory | |
/model | Change model | |
/permissions | View permissions | |
/review | Request code review | |
/terminal-setup | Terminal setup (Shift+Enter, etc.) | |
/vim | Toggle Vim mode |
#CLI Flags
| Command | Description | |
|---|---|---|
--model <model> | Specify model to use | |
--output-format text | Output text only | |
--output-format json | Output in JSON format | |
--output-format stream-json | Streaming JSON output | |
--system-prompt "..." | Add system prompt | |
--mcp-config <file> | Specify MCP config file | |
--allowedTools "..." | Specify allowed tools | |
--permission-mode plan | Read-only mode | |
--dangerouslySkipPermissions | Skip all permission checks (for CI) | |
--resume | Resume last conversation | |
--continue | Continue most recent conversation |
#Pipeline Usage
| Command | Description | |
|---|---|---|
cat file | claude "Analyze this" | Pass file content as input | |
git diff | claude "Review this" | Analyze/review git diff | |
git diff --staged | claude "Write commit message" | Generate commit message | |
npm test 2>&1 | claude "Analyze errors" | Analyze test errors | |
git log --oneline | claude "Write PR description" | Write PR description |
#Keyboard Shortcuts
| Command | Description | |
|---|---|---|
Shift+Enter | Multi-line input (setup required) | |
Tab | Autocomplete (filenames, etc.) | |
↑ / ↓ | Navigate previous/next input | |
Ctrl+C | Interrupt current response | |
Ctrl+D | End session | |
Escape | Cancel current input |
#Environment Variables
| Command | Description | |
|---|---|---|
ANTHROPIC_API_KEY | Anthropic API key | |
CLAUDE_MODEL | Default model setting | |
HTTP_PROXY | HTTP proxy setting | |
HTTPS_PROXY | HTTPS proxy setting |
#Frequently Asked Questions
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.