Delv
Claude Code
Getting Started Guide

How to Use Claude Code

A practical guide to get you up and running with Claude Code. Written by Delv Editorial, Delv Team.

Getting started with Claude Code

In this guide, you’ll learn to set up Claude Code, execute commands, and manage files directly from your terminal. By the end, you'll be able to enhance your coding efficiency using this AI coding assistant.

Step 1: Sign up and set up

  1. Visit the Claude Code website.
  2. Click on the "Get Started" button to sign up for Claude Pro ($20/month) or Max ($100/month). You may also opt for API access if needed.
  3. Follow the prompts to create your account and enter your payment information.
  4. Once signed up, download the CLI tool by following the installation instructions provided in the documentation.

Step 2: Your first command

  1. Open your terminal.
  2. Type claude-code to launch the assistant.
  3. To edit a file, use the command: claude-code edit <filename>. Replace <filename> with the path to your file.
  4. You can run a command by typing claude-code run <command>. For example, claude-code run ls to list directory contents.
  5. To manage a Git repository, use claude-code git <git-command>. For instance, claude-code git status to check the status of your repository.

Step 3: Get better results

  1. Familiarise yourself with the various commands available by typing claude-code help.
  2. Use clear and specific prompts for file editing, such as claude-code edit <filename> <action>, where <action> describes what you want to change.
  3. For complex tasks, break down your requests into smaller steps. This can lead to more accurate results.
  4. Regularly check for updates in the documentation to discover new features and improvements.

Pro tip

Instead of typing out long commands repeatedly, create aliases in your shell configuration file (like .bashrc or .zshrc). For example: alias cc='claude-code' allows you to simply type cc edit <filename>.

Common mistake to avoid

Avoid using vague prompts or commands. For example, instead of asking Claude Code to "fix the code," specify exactly what needs changing. This will ensure you get the precise help you need without confusion.