
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
- Visit the Claude Code website.
- 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.
- Follow the prompts to create your account and enter your payment information.
- Once signed up, download the CLI tool by following the installation instructions provided in the documentation.
Step 2: Your first command
- Open your terminal.
- Type
claude-codeto launch the assistant. - To edit a file, use the command:
claude-code edit <filename>. Replace<filename>with the path to your file. - You can run a command by typing
claude-code run <command>. For example,claude-code run lsto list directory contents. - To manage a Git repository, use
claude-code git <git-command>. For instance,claude-code git statusto check the status of your repository.
Step 3: Get better results
- Familiarise yourself with the various commands available by typing
claude-code help. - Use clear and specific prompts for file editing, such as
claude-code edit <filename> <action>, where<action>describes what you want to change. - For complex tasks, break down your requests into smaller steps. This can lead to more accurate results.
- 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>.