← All posts

September 23, 2026

By Farhan Ahmad

How to Set Up Claude Code and Use It From the Terminal

How to Set Up Claude Code and Use It From the Terminal

Claude Code · Terminal Setup Guide

Claude in your terminal.

A practical guide to installing Claude Code, opening the right project folder, understanding what it can access and starting your first real AI-assisted development session.

Zoave Guide Beginner Friendly Windows · macOS · Linux 10 Minute Setup
my-project — terminal

PS C:\Projects\my-site> claude

✦ Welcome to Claude Code

Working directory:

C:\Projects\my-site

Claude: What would you like to work on?


> Explain this project and show me how to run it locally.

01 Understand the environment

Before installing anything

The folder where you start Claude becomes its working environment.

Claude Code is not simply a chatbot inside a black terminal window. It is an AI coding agent that can read a project, search through its files, edit code and run development commands.

When you open a terminal, move into a project folder and run claude, that folder becomes the center of the session. Claude can understand the project as a connected system instead of seeing only the single file you paste into a chat.

This is why opening the correct directory matters. If your website is inside a folder called my-site, start Claude inside that folder—not from your entire drive or home directory.

Simple rule: the terminal is the interface, the current folder is the workspace and your permission choices control what Claude is allowed to change or execute.

The mental model

Three parts make the whole system work.

01 / TERMINAL

The doorway

PowerShell, Terminal or another command-line application is where you launch Claude and where Claude runs project commands.

02 / PROJECT

The context

The active folder contains the code, assets, configuration and instructions Claude uses to understand what you are building.

03 / PERMISSION

The boundary

Claude can propose edits and commands, but permission settings determine which actions happen automatically and which require your approval.

Code displayed on a developer workstation

The important shift

Stop sending files one by one.

Give the agent a real project environment and it can follow relationships between files, run the application and verify its own work.

Photo: Emile Perron / Unsplash

Installation

From an empty terminal to your first Claude session.

01

Prepare your machine

You need a supported Claude account, an internet connection and a terminal. Claude Code supports current versions of Windows, macOS and several Linux distributions.

On Windows, installing Git for Windows is recommended. It gives Claude access to Git and a Bash environment. Claude can also use PowerShell when Git Bash is unavailable.

Optional checksgit --version node --version npm --version

Node.js is useful for JavaScript and React projects, but the current native Claude Code installer does not require a global npm installation.

02

Install Claude Code

Choose the command for your operating system. These commands use Anthropic’s official native installer.

Windows PowerShell
irm https://claude.ai/install.ps1 | iex
macOS · Linux · WSL
curl -fsSL https://claude.ai/install.sh | bash

If Windows shows an irm is not recognized message, check that you opened PowerShell rather than Command Prompt.

03

Verify the installation

Close and reopen the terminal so the updated command path is available, then check the installation.

Verificationclaude --version claude doctor

claude doctor performs a read-only health check and reports installation, update or configuration problems.

04

Open your project folder

Use cd to move into the folder you want Claude to understand. Quotation marks are useful when a folder name contains spaces.

Windows examplecd "C:\Users\YourName\Documents\my-project" claude
macOS or Linux examplecd ~/Documents/my-project claude
05

Sign in and begin

The first launch opens an authentication flow. Sign in using your eligible Claude subscription or Anthropic Console account, then return to the terminal.

A strong first promptFirst inspect this project without changing anything. Explain: 1. What the project does 2. How the folders are organized 3. How to run it locally 4. Any obvious setup problems Wait for my approval before editing files.

Access and permissions

Claude does not automatically receive unlimited access to your computer.

01 / CURRENT FOLDER

Project access

Claude starts with the folder where you launched it. It can inspect the files and relationships inside that workspace.

02 / ACTIONS

Permission prompts

Editing files and running some terminal commands may require your approval. Read the requested action before accepting it.

03 / EXTRA FOLDERS

Explicit access

When a project depends on another directory, add it intentionally instead of starting Claude from a huge parent folder.

Add another required directoryclaude --add-dir ../shared-components
Do not launch Claude from the root of your drive.

Start inside the smallest folder that contains the project. This gives Claude focused context, reduces unnecessary searching and avoids exposing unrelated personal files.

Your first real workflow

Treat Claude like an engineer working inside the project.

01 Describe the outcome
02 Let Claude inspect
03 Review the plan
04 Approve changes
05 Run tests
06 Review the diff
Understand a project

“Inspect this codebase and explain the architecture in simple language. Do not change anything yet.”

Run the application

“Find the correct development command, start the application and tell me where I can preview it.”

Fix a problem

“Reproduce this error, identify the root cause and explain your proposed fix before editing the code.”

Build a feature

“Create a short implementation plan for this feature. Preserve the existing visual style and verify the result after building it.”

Project memory

Give Claude instructions that survive every new session.

A CLAUDE.md file lives inside your project and explains how Claude should work there.

Add the project purpose, important commands, design rules and things Claude must never change. Claude reads these instructions when a new session begins.

You can ask Claude to create a starting version by running /init inside the session.

CLAUDE.md
# Project instructions ## Goal Maintain and improve the Zoave website. ## Commands - Development: npm run dev - Type check: npm run typecheck - Production build: npm run build ## Design rules - Preserve the established visual language. - Make every section responsive. - Keep images lightweight. - Do not add dependencies without approval. ## Working rules - Inspect existing code before editing. - Explain risky changes first. - Test important changes before finishing. - Never publish or deploy without permission.

Useful commands

The small command list worth remembering.

claude

Start an interactive Claude Code session in the current folder.

claude -c

Continue the most recent conversation for the current project.

claude --resume

Choose and reopen an earlier Claude Code session.

claude doctor

Check the installation and configuration without starting a session.

/init

Create initial project instructions for Claude inside CLAUDE.md.

/help

Display the commands available in your current Claude Code version.

/permissions

Review or update the actions Claude is allowed to perform.

/context

See what is using space in the current conversation context.

/compact

Summarize a long conversation and free space for continued work.

The terminal is the interface. The project is the context. Git is the safety net.

The final thought

Start small. Stay in control. Let the agent earn more trust.

Your first Claude Code session does not need an advanced automation system, dozens of tools or a perfect configuration.

Start inside one real project. Ask Claude to inspect it. Review the plan, approve changes carefully and check the result.

Once that basic loop becomes familiar, the terminal stops feeling like a technical barrier. It becomes a direct interface between your idea and the system capable of building it.

Idea → Terminal → Working software — Zoave

0 comments

Sign in to leave a comment.