Official Docs Breakdown: Quickstart
💬 hippo: This is the second post in the Claude Code Official Docs Breakdown series. Quickstart is the first page to read after installation—the sole goal is to complete one real task in 5–10 minutes and build an intuition for the workflow.
1. What This Page Covers
The Quickstart is not the same as the Setup guide. Setup answers “can I get it installed?”; Quickstart answers “how do I actually use it once it’s installed?” It walks you through the shortest deliberate path from installation and login to asking questions, editing code, and creating a Git commit.
Why does this page matter? After installing Claude Code, most developers fall into one of two traps: either they jump straight into the deep end (“refactor the entire project”) and hit a wall, or they run claude once, glance at the prompt, close it, and walk away underwhelmed. The official 8-step walkthrough is designed to steer you clear of both extremes.
2. Official Guide Breakdown
2.1 Installation and Login
Comparison of the three installation methods:
| Method | Supported Platforms | Recommendation | Notes |
|---|---|---|---|
| Native installer | macOS / Linux / WSL / Windows | Recommended | Officially recommended, fastest updates, single command |
| Homebrew | macOS | Optional | brew install --cask claude-code; lags the native release by a few days |
| WinGet | Windows | Optional | winget install Anthropic.ClaudeCode; clean OS integration |
Native installation commands:
1 | # macOS / Linux / WSL |
Verify the installation:
1 | claude --version |
Note for Windows users: Claude Code depends on Git, so install Git for Windows first.
Five account types:
| Account Type | Best For | Notes |
|---|---|---|
| Pro / Max / Teams / Enterprise | Individual developers, teams | Recommended; full feature set |
| Console | Pay-as-you-go users | Prepaid API credits; automatically creates a workspace on first login |
| Amazon Bedrock | Enterprise AWS teams | Uses existing AWS infrastructure |
| Google Vertex AI | Enterprise GCP teams | Uses existing GCP infrastructure |
| Microsoft Foundry | Enterprise Azure teams | Uses existing Azure infrastructure |
After signing in, credentials are stored in ~/.claude/config.json, so you do not need to re-authenticate on every run. Use /login to switch accounts.
2.2 Your First Conversation and Code Edit
Navigate to your project directory and launch Claude Code:
1 | cd /path/to/your/project |
You will see the welcome screen displaying session info and recent conversation history. From here, you are in an interactive session.
Core CLI commands:
| Command | Purpose | Typical Use Case |
|---|---|---|
claude |
Start interactive mode | Day-to-day development with back-and-forth iteration |
claude "task" |
Run a one-shot task and exit | claude "fix the build error" |
claude -p "query" |
Print mode; output result and exit | Scripts and shell pipelines |
claude -c |
Continue the most recent session in this directory | Pick up right where you left off |
claude -r |
Pick and resume a past session from history | Revisit a conversation from a few days ago |
claude commit |
Create a Git commit quickly | Analyzes the diff and generates a commit message |
When asking Claude to edit code, the loop is straightforward: describe what you want in plain language → it inspects the codebase → it proposes concrete edits → it applies the changes only after you approve. Every step asks for confirmation; nothing is modified behind your back.
2.3 Git Operations and Common Workflows
One of the standout features of Claude Code is conversational Git. You do not need to recall git add or git commit -m flags:
1 | "Create a commit" # Analyzes the diff and writes the commit message |
Common workflows at a glance:
| Scenario | What You Say | What Claude Does |
|---|---|---|
| Understand code | “What does this function do?” | Explains the logic and traces call sites |
| Fix a bug | “Fix this TypeError” | Locates the root cause and generates a fix |
| Add a feature | “Add pagination” | Designs the approach and implements it |
| Refactor | “Convert callbacks to async/await” | Applies batch edits while preserving behavior |
| Write tests | “Write unit tests for the utils directory” | Generates test files targeting coverage |
| Code review | “Review recent changes” | Checks style, bugs, performance, and security |
3. Hippo’s Field Notes
💬 hippo: Here are the pitfalls I ran into and the lessons that stuck from real usage.
3.1 Installation Pitfalls in Mainland China
The most frequent failure when installing from mainland China is curl failing to fetch install.sh with Connection refused or a timeout, because access to claude.ai is unstable without a proxy.
Workarounds (in order of reliability):
- Configure a terminal proxy: This is the cleanest approach. Export your proxy environment variables before running the installer:
1 | export https_proxy=http://127.0.0.1:7890 |
- Download the installer manually: Open
https://claude.ai/install.shin your browser, save it locally, and run it:
1 | bash ~/Downloads/install.sh |
- Permission errors: If you hit
Permission deniedon macOS or Linux, avoid blindly prependingsudo. Check whether the target directory is writable first, or fix directory ownership withsudo chown -R $(whoami) /usr/local/bin.
Even after installation succeeds, the login step can hang if your proxy cannot reach claude.ai. Once authenticated, the token is saved to ~/.claude/config.json with file mode 600.
3.2 Day-One Takeaways
For your first day, skip toy prompts like “write a hello world.” Instead, open a small repository you already know well and ask Claude Code to run a code review or add missing tests. Both tasks give you immediate judgment over output quality without risking breakage to production code.
claude -p shines in CI scripts:
1 | # Automatically review code quality in CI |
Print mode (-p) skips the interactive TUI and writes plain text to stdout, making it easy to pipe into other Unix tools.
claude commit is another pleasant surprise. It reads git diff, determines what changed, and produces a Conventional Commits message—such as feat: add user profile page or fix: resolve login timeout issue. It is consistently cleaner than writing commit messages by hand.
3.3 Advice for First-Time Users
- Start small: Ask Claude to tweak a single function, fix a lint error, or document a helper. Do not open with “refactor the entire authentication module.”
- Practice on a codebase you know: You can only evaluate Claude’s suggestions if you understand the project. If it touches an unfamiliar file, you have no reliable way to tell whether the edit is sound.
- Use
/helpliberally: When unsure about a command or capability, run/helpdirectly inside interactive mode—it is faster than hunting through the docs.
4. FAQ
Q: The install script fails with Connection refused. What should I do?
A: This is a network issue. Configure a terminal proxy and retry, or download the installer script in your browser and execute it locally.
Q: It says “unauthenticated” even after logging in?
A: Verify that ~/.claude/config.json exists and has 600 permissions. If the file is present and the error persists, re-authenticate with /login.
Q: Why is Claude responding slowly?
A: Usually network latency or upstream load. Run a trivial check (such as claude -p "1+1") to measure baseline latency and rule out local network bottlenecks.
Q: How well does it handle non-English prompts (such as Chinese)?
A: It understands Chinese well, but keeping technical terms in English produces sharper results. For example, prompting “refactor the auth module” in English tends to yield more accurate output than a fully localized phrasing.
Q: Can I use an enterprise cloud account?
A: Yes. Amazon Bedrock, Google Vertex AI, and Microsoft Foundry are all supported—select your provider during login.
5. Summary
The Quickstart boils down to three steps: install, sign in, and finish one small task. Resist the urge to tackle a massive feature on your first run—spending ten minutes on small, verifiable tasks builds an intuition that pays off across every session afterward.
Series Navigation
- Series Index: Claude Code Complete Guide · Series Index
- Previous: Official Docs Breakdown: Claude Code Overview
- Next: Official Docs Breakdown: Set Up Claude Code
Based on the Claude Code Official Docs — Quickstart
Last updated: 2026-03-31




