claude code
Claude Code Tutorial: Complete Beginner's Guide (2026)
Learn how to use Claude Code, Anthropic's AI coding CLI. Installation, essential commands, tool use, and real examples for developers.
Master Anthropic's AI coding CLI — from installation to advanced tool use and MCP integrations.
Claude Code is Anthropic's official command-line interface for Claude. It brings AI-assisted coding directly into your terminal — letting you write, edit, debug, and refactor code through natural language while Claude reads your actual project files and runs commands.
Unlike a chat interface where you paste code snippets back and forth, Claude Code is an agentic coding tool. It can:
Claude Code requires Node.js 18+ and an Anthropic API key.
# Install globally via npm
npm install -g @anthropic-ai/claude-code
# Verify installation
claude --version
# Start a session in your project directory
cd your-project
claude | Command | What it does |
|---|---|
claude | Start an interactive session in current directory |
claude "task description" | Run a one-shot task and exit |
claude --continue | Resume the most recent session |
claude --model claude-opus-4-8 | Use a specific model |
/help | Show available slash commands inside a session |
/compact | Summarise context to save tokens |
/cost | Show token usage and cost for the session |