๐Your Journey Starts Here
What is Claude Code?
Imagine having a super-smart coding assistant that lives in your computer's terminal. You just talk to Claude in plain English, and it builds websites, apps, games, and digital projects for you!
Real Example:
"Claude, help me build a website for my photography business"
โ
Claude creates a complete professional website with gallery, contact form, and booking system!
๐ ๏ธQuick Setup (5 minutes)
Install Claude Code
Don't have npm? Download Node.js from nodejs.org first - it's like getting the toolkit that helps install Claude Code.
Test Installation
See a version number? Perfect! You're ready to go.
Start Your First Chat
This opens a conversation with Claude. Try saying: "Hi! I'm new to this. What can you help me build?"
๐Build Your First Website (15 minutes)
Complete Tutorial
Follow this exact conversation to build a real website:
Result: A professional website you built just by chatting!
๐กThe Only 5 Commands You Need
| Command | What It Does | When to Use |
|---|---|---|
claude |
Start chatting with Claude | Beginning any project or asking for help |
claude -p "question" |
Quick question, fast answer | Need quick help without long conversation |
claude -c |
Continue yesterday's work | Picking up where you left off |
/help |
Show all available options | When stuck or need to see what's possible |
/clear |
Start fresh conversation | When chat gets confusing or switching topics |
๐ฏProject Ideas
- Personal portfolio website
- Business website with contact form
- Photo gallery for vacation pics
- Recipe collection website
- Simple calculator or to-do app
- Interactive quiz about your hobby
๐ฌHow to Talk to Claude
- Be specific: "Make the text bigger and blue" not "make it better"
- Ask questions: "What colors would look good for a bakery website?"
- Request explanations: "Can you explain what this code does?"
- Don't worry about mistakes! Claude is very patient
โกComplete Command Reference
Master All Commands
From basic conversations to advanced automation - every command explained with examples.
๐คBasic Commands
| Command | Description | Example |
|---|---|---|
claude |
Start interactive REPL session | claude |
claude "prompt" |
Start with initial message | claude "build me a website" |
claude -p "query" |
Print mode - quick answer and exit | claude -p "explain CSS flexbox" |
claude -c |
Continue most recent conversation | claude -c |
claude -r "session-id" |
Resume specific session by ID | claude -r "abc123" |
claude update |
Update Claude Code to latest version | claude update |
claude --version |
Show version information | claude --version |
claude --help |
Show help and all available options | claude --help |
๐ก๏ธSecurity & Permission Flags
| Flag | Description | Example |
|---|---|---|
--dangerously-skip-permissions |
โ ๏ธ Skip all permission prompts (use carefully!) | claude --dangerously-skip-permissions |
--allowedTools |
Pre-approve specific tools without prompting | claude --allowedTools "Read" "Write" "Bash(git:*)" |
--disallowedTools |
Block specific tools completely | claude --disallowedTools "Edit" "Write" |
--permission-mode |
Start with specific permission mode | claude --permission-mode plan |
--add-dir |
Add additional working directories | claude --add-dir ../frontend ../backend |
โ ๏ธSecurity Warning
--dangerously-skip-permissions bypasses all safety prompts. Only use in trusted environments or CI/CD pipelines where human oversight isn't practical. For daily use, prefer --allowedTools to pre-approve specific safe operations.
โ๏ธConfiguration & Output Flags
| Flag | Description | Example |
|---|---|---|
--verbose |
Enable detailed logging for debugging | claude --verbose |
--output-format |
Specify output format: text, json, stream-json | claude -p "help" --output-format json |
--input-format |
Specify input format: text, stream-json | claude -p --input-format stream-json |
--max-turns |
Limit conversation length in non-interactive mode | claude -p "build app" --max-turns 5 |
--model |
Choose AI model: sonnet, opus, or full model name | claude --model opus |
--permission-prompt-tool |
Use MCP tool for permission prompts | claude --permission-prompt-tool auth_tool |
๐ฌInteractive Slash Commands
๐Help & Navigation
/help- Show all available commands/status- View account and system status/cost- Show token usage statistics/doctor- Check installation health
๐Session Management
/clear- Clear conversation history/compact [instructions]- Compact conversation/model- Switch AI model/login- Switch Anthropic accounts/logout- Sign out from account
๐Project & Memory
/init- Initialize project with CLAUDE.md/memory- Edit CLAUDE.md memory files/add-dir- Add working directories/permissions- View/update permissions
๐งDevelopment Tools
/review- Request code review/pr_comments- View pull request comments/vim- Enter vim editing mode/terminal-setup- Configure terminal for Claude/bug- Report bugs to Anthropic
๐Integrations
/mcp- Manage MCP server connections/config- View/modify configuration
๐Piping & File Operations
๐คAdvanced Command Combinations
๐งAdvanced Features & Techniques
Power User Territory
These features unlock Claude Code's full potential for complex development workflows, automation, and team integration.
๐ง Memory System Deep Dive
๐Global Memory
Location: ~/.claude/CLAUDE.md
Personal preferences, coding standards, and patterns used across all projects.
๐Project Memory
Location: ./CLAUDE.md
Team conventions, project architecture, and shared context.
๐Local Memory
Location: ./CLAUDE.local.md
Personal project notes, sensitive info (not committed to git).
๐Advanced Permission Management
Team Usage: Commit this file to ensure consistent permissions across team members.
Personal Override: These settings override project settings for security.
๐ฏCustom Slash Commands
Create Project Command
Usage: /deploy "version 2.1.0"
Create Personal Command
Usage: /security-audit "payment system"
๐MCP (Model Context Protocol) Integration
What is MCP?
MCP extends Claude Code with external tools and services - browser automation, databases, APIs, file systems, and more.
Usage: MCP commands become available as /mcp__server__command
๐Automation & CI/CD Integration
๐Performance & Debugging
๐Token Usage Monitoring
๐Debug Mode
๐ขTeam & Enterprise Features
Team Collaboration Setup
1. Shared Configuration: Commit .claude/settings.json with team permissions
2. Memory Management: Use project CLAUDE.md for shared context, local CLAUDE.local.md for personal notes
3. Custom Commands: Share team-specific slash commands in .claude/commands/
4. Security Policies: Enforce permission boundaries with disallowedTools
๐กPro Tips for Advanced Users
- Session Management: Use meaningful session IDs for parallel development workflows
- Context Optimization: Use
/compactstrategically to maintain focus while reducing token usage - Security First: Always prefer
--allowedToolsover--dangerously-skip-permissions - Automation Best Practices: Set
--max-turnsin scripts to prevent infinite loops - MCP Integration: Create custom MCP servers for organization-specific tools and APIs
๐ Daily Development Workflows
Real Developer Workflows
Practical, copy-paste workflows for common development tasks. These are battle-tested patterns used by developers daily.
๐ Morning Startup Routine
๐ปFeature Development Workflow
๐Code Review & Refactoring
๐Pre-Commit Review
โป๏ธLegacy Code Refactoring
๐ขDeployment & Release Workflow
๐งชTesting & Quality Assurance
๐Documentation Workflow
๐งMaintenance & Monitoring
๐ฅHealth Checks
๐Automated Maintenance
๐ฅTeam Collaboration Workflows
๐จEmergency Response Workflows
๐ฅProduction Incident Response
๐ฏProductivity Optimization
โกSpeed Up Common Tasks
๐ง Context Management
๐กWorkflow Optimization Tips
- Session Strategy: Use
-cfor related work, start fresh withclaudefor new topics - Batch Operations: Process multiple files with piping:
find . -name "*.js" -exec cat {} \; | claude -p "analyze" - Template Commands: Create custom slash commands for repeated workflows
- Permission Presets: Set up project-specific
.claude/settings.jsonto avoid repeated prompts - Output Formatting: Use
--output-format jsonfor scriptable workflows