Claude Code cheatsheet

Claude Code: Install and start

6 common Claude Code tasks.

Install Claude Code

Install the CLI with npm. A native installer is also available; see the quickstart.

npm install -g @anthropic-ai/claude-code

Start a session

Start an interactive session in the current project. You are asked to sign in on first use.

claude

Start with a prompt

Open a session that begins with your question.

claude "explain this project"

Check the version

Print the installed version.

claude --version

Update Claude Code

Update to the latest release.

claude update

Diagnose problems

Check the installation and configuration for common problems. Inside a session, /doctor does the same.

claude doctor

Was this page helpful?