Skip to main content
This quickstart covers Claude Code in your terminal: installing the CLI, signing in from your first session, and using it for common development tasks in your own project.

Before you begin

Make sure you have:
These cases are covered on other pages:

Step 1: Install Claude Code

To install Claude Code, open a terminal and run the command for your system. If you haven’t used a terminal before, the terminal guide shows how to open one and paste the command.
You can also install with apt, dnf, or apk on Debian, Fedora, RHEL, and Alpine. To confirm the installation worked, run:
The command prints a version number followed by (Claude Code).

Step 2: Start your first session

Open your terminal in any project directory and start Claude Code:
Replace /path/to/your/project with the path to the project you want to work on. Claude Code prompts you to log in on first use. For Claude subscription or Console accounts, follow the prompts to complete authentication in your browser. If you’ve set the ANTHROPIC_API_KEY environment variable and you approve the key when Claude Code asks whether to use it, Claude Code skips the login prompt. You can log in using any of these account types: Once logged in, your credentials are stored and you won’t need to log in again. Learn more in Credential Management. The Claude Code prompt appears with the version, current model, and working directory shown above it. Type /help for available commands or /resume to continue a previous conversation. To switch accounts later or re-authenticate, type /login inside the running session.

Step 3: Ask your first question

Try one of these commands:
Claude will analyze your files and provide a summary. You can also ask more specific questions:
You can also ask Claude about its own capabilities:
Claude Code reads your project files as needed. You don’t have to manually add context.

Step 4: Make your first code change

Try a small task:
Claude Code finds the appropriate file and shows you the change. If it asks before making the change, select Yes to approve. The session’s permission mode sets which actions Claude can take without asking you first. Press Shift+Tab at any time to switch the permission mode of the session you’re in.

Step 5: Use Git with Claude Code

Claude Code makes Git operations conversational:
You can also prompt for more complex Git operations:

Step 6: Fix a bug or add a feature

Describe what you want in natural language:
Or fix existing issues:

Step 7: Test out other common workflows

Try a few more prompts. You can ask Claude to refactor code, write tests, update documentation, or review your changes:
Talk to Claude like you would a helpful colleague. Describe what you want to achieve, and it will help you get there.

Essential commands

Here are the most important commands for daily use, grouped by where you run them.

Shell commands

Run these from your terminal to start or resume Claude Code. See the CLI reference for the complete list of shell commands.

Session commands

Run these inside Claude Code after it starts. See the commands reference for the complete list of session commands.

Pro tips for beginners

For more, see best practices and common workflows.
Instead of: “fix the bug”Try: “fix the login bug where users see a blank screen after entering wrong credentials”
Break complex tasks into steps:
Before making changes, let Claude understand your code:
  • Type / to see the commands and skills available to you
  • Use Tab for command completion
  • Press ↑ for command history
  • Press Shift+Tab to cycle permission modes

What’s next?

Now that you’ve learned the basics, explore more advanced features: See advanced setup for installation options, manual updates, or uninstallation instructions.

Getting help

  • In Claude Code: type /help or ask a “how do I” question
  • Documentation: browse the other guides on this site
  • Courses: take Claude Code 101 and other free self-paced courses on Claude Academy
  • Community: join the Discord server for tips and support