📘 Basics

Claude Code: From Zero to Productive in 20 Minutes

Anthropic's official CLI coding agent. Set up Claude Code, understand its key commands, and ship your first feature with it.

📅 June 30, 2026 📊 Level: beginner 📦 GitHub: anthropics/claude-code

Sponsored

Claude Code: From Zero to Productive in 20 Minutes

Claude Code is Anthropic’s official CLI for AI-assisted development. It runs in your terminal, reads your repo, and can edit files + run commands.

Install

npm install -g @anthropic-ai/claude-code
# Or: brew install claude-code

# Authenticate
claude login

Core concepts

ConceptWhat it does
claude (no args)Interactive REPL
claude -p "..."One-shot prompt (non-interactive)
claude "fix the bug in auth.ts"Repo-aware task
/commandSlash commands inside REPL

Your first session

cd ~/projects/my-app
claude
> /help
> read package.json and explain what this app does
> find all TODO comments in src/
> refactor the validateEmail function to use zod

The CLAUDE.md pattern

Drop a CLAUDE.md in your project root:

# Project: MyApp
- Stack: Next.js 15 + Postgres + Clerk auth
- Conventions:
  - Use Server Actions, not API routes
  - All forms use react-hook-form
  - Never commit to main directly
- Test command: npm test
- Deploy: vercel --prod

Claude reads this on every session. This is the highest-leverage thing you can do.

Key shortcuts

Key takeaways

📦 开源项目

本教程基于开源项目 anthropics/claude-code 整理。

⭐ View on GitHub →

Sponsored

🛠️ Related Tools & Resources

Mechanical Keyboards →
For coding & writing tutorials
USB-C Hubs →
Multi-monitor dev setup
Noise-Cancelling Headphones →
Focus while learning
Laptop Stands →
Ergonomics for long tutorials