Skip to main content

Quick Start

1 min read

Get up and running with Claude Code in minutes


title: Quick Start description: Get up and running with Claude Code in minutes

Your First Session

After installing Claude Code, start your first session:

Bash
claude

You'll see Claude's prompt waiting for your input. Try asking it to help you understand your current project:

Bash
claude "What does this project do?"

Basic Commands

Interactive Mode

Start an interactive session where you can have a conversation:

Bash
claude

Single Query

Ask a single question and get a response:

Bash
claude "Explain this function: $(cat myfile.js)"

Working with Files

Claude Code can read and modify files in your project:

Bash
claude "Read the README and summarize it"
claude "Add a new feature to handle user authentication"

Project Context with CLAUDE.md

Create a CLAUDE.md file in your project root to give Claude context about your project:

Markdown
# Project Overview

This is a Next.js application for managing tasks.

## Key Files

- `src/app/page.tsx` - Main homepage
- `src/lib/db.ts` - Database utilities

## Conventions

- Use TypeScript strict mode
- Follow the existing code style

Claude will automatically read this file and use it to provide better assistance.

Common Workflows

Code Review

Bash
claude "Review the changes in my last commit"

Bug Fixing

Bash
claude "There's a bug where the form doesn't submit. Can you help debug it?"

Refactoring

Bash
claude "Refactor this component to use React hooks instead of class components"

Documentation

Bash
claude "Add JSDoc comments to the functions in src/utils/"

Tips for Better Results

  1. Be specific: Instead of "fix the bug", describe what's happening and what you expect.

  2. Provide context: Share relevant error messages, logs, or code snippets.

  3. Use the filesystem: Claude can read files directly, so reference them by path.

  4. Iterate: If the first response isn't quite right, provide feedback and ask for adjustments.

Next Steps

Generated with AI using Claude AI by Anthropic

Model: Claude Opus 4.5 · Generated: 2025-12-09 · Build: v0.9.0-b4563d6