by Njengah
Ultimate collection of Claude Code tips, tricks, hacks, and workflows that you can use to master Claude Code in minutes
# Add to your Claude Code skills
git clone https://github.com/Njengah/claude-code-cheat-sheet
Your complete guide to mastering Claude Code - from zero to hero in minutes!
After testing Claude Code extensively, I've developed this comprehensive cheat sheet that will take you from basic to advanced user without wasting time. Whether you're completely new to Claude Code or looking to master advanced features, this guide has you covered.
# Windows users
wsl
# Install Claude Code
npm install -g @anthropic-ai/claude-code
# Launch interactive REPL
claude
# Check version
claude --version
Essential commands to get started
# Install Claude Code
curl -sL https://install.anthropic.com | sh
# Start interactive REPL
claude
# Start with initial prompt
claude "summarize this project"
# Check version
claude --version
# Update to latest version
claude update
No comments yet. Be the first to share your thoughts!
/help # Show help and available commands
/exit # Exit the REPL
/clear # Clear conversation history
/config # Open config panel
/doctor # Check Claude Code installation health
# Print mode (SDK) - execute and exit
claude -p "explain this function"
# Process piped content
cat logs.txt | claude -p "explain"
# Continue most recent conversation
claude -c
# Continue via SDK
claude -c -p "Check for type errors"
# Resume session by ID
claude -r "abc123" "Finish this PR"
# Resume with flag
claude --resume abc123 "query"
# Continue session
claude --continue
Ctrl+C # Cancel current operation
Ctrl+D # Exit Claude Code
Tab # Auto-complete
Up/Down # Navigate command history
Configuration and model management
# Switch models
claude --model sonnet # Use Sonnet model
claude --model opus # Use Opus model
claude --model claude-sonnet-4-20250514 # Use specific model version
# Add additional working directories
claude --add-dir ../apps ../lib
# Validate directory paths
claude --add-dir /path/to/project
# Different output formats
claude -p "query" --output-format json
claude -p "query" --output-format text
claude -p "query" --output-...