Plan
It researches and proposes a plan. It touches nothing until you approve it.
claude --permission-mode planBest for big tasks and for your first times
Learn from scratch · Guide 1
How to install it, how to start it and what to ask it the first time. Step by step, on Windows, Mac or Linux, even if you have never opened a terminal.
Commands checked in the official documentationOct 28, 2026Claude Code 2.1.312
Press the Windows key, type PowerShell and press Enter. A window opens with something like PS C:\Users\yourname>. You do not need to open it as administrator.
Press Cmd + Space, type Terminal and press Enter.
On most distributions it opens with Ctrl + Alt + T. If not, look for "Terminal" in your apps.
The terminal is a window where you type commands instead of clicking. To paste into it: right click or Ctrl + VCmd + VCtrl + Shift + V.
Copy this command, paste it in the terminal and press Enter.
irm https://claude.ai/install.ps1 | iexcurl -fsSL https://claude.ai/install.sh | bashNo progress bar shows while it downloads. Wait until the line to type appears again.
You are in CMD (the line starts with C:\ without PS). Open PowerShell as in step 1, or use this command, which is the CMD one:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdOptional: if you install Git for Windows, Claude can use Git Bash. Without it, it works the same, with PowerShell.
brew install --cask claude-code also works, but this way it does not update itself: you will have to run brew upgrade claude-code from time to time. With the command above it updates without you doing anything.
Close the terminal, open a new one and type:
claude --versionIf a number appears, like 2.1.312 (Claude Code), you have it. If it says it does not recognize claude, see "If something fails" at the end.
Claude works inside the folder you open it from. For the first time, an empty folder is best. Type these two commands, one after the other:
mkdir claude-testcd claude-testThe first creates the folder and the second takes you inside.
claudeThe first time it asks a few setup questions, like which colors you prefer. Choose what you like.
Then the browser opens so you can sign in with your Claude account. If it does not open by itself, copy the link shown in the terminal and paste it in the browser.
At the end it asks if you trust the files in that folder. Since you just created it, say yes.
You type like in a chat, in your own words and in your own language, and send it with Enter. Try one of these:
In recent versions it starts in auto mode: it does the task without asking your permission at each step, and another model checks in the background what it is about to do and stops anything risky. If you would rather it ask before every change, switch modes. You can see how right below.
To go one step further
Claude has five modes. They change only one thing: how much it does on its own before asking your permission. You switch with Shift + Tab while you use it, or when you start it with the command on each card.
It researches and proposes a plan. It touches nothing until you approve it.
claude --permission-mode planBest for big tasks and for your first times
It reads without asking, but it asks permission before almost any change or command.
claude --permission-mode manualTo learn by seeing every step it takes
It edits files and creates, moves or copies inside your folder without asking. For everything else, it asks.
claude --permission-mode acceptEditsWhen you already trust what it does in that folder
It does everything without asking and another model checks each action in the background. This is the mode it starts in.
claude --permission-mode autoThe default. Good for everyday use
It asks nothing and nobody checks. If it makes a mistake, or if a trick text fools it, it runs it anyway.
claude --dangerously-skip-permissionsAvoid it on your own computer. Only for isolated environments, like a virtual machine
You type them in the terminal instead of plain claude. You can combine them: claude -c --permission-mode plan.
claudeIt opens Claude in the folder you are in.
The usual.
claude "explain what's in this folder"It starts and asks that as soon as it opens.
To get straight to the point.
claude -cIt continues the last conversation in this folder.
You closed it and want to continue where you left off.
claude -rIt shows your earlier conversations so you can pick one.
To pick up something from another day.
claude -n "rome-trip"It gives the conversation a name. You come back to it with claude -r "rome-trip".
Projects that last several days.
claude --model sonnetIt picks the model: sonnet, opus, haiku or fable. They do not all use your limit the same. Inside, /model shows them to you.
When you want to try another one.
claude -p "summarize this in 3 sentences: ..."It answers in the terminal and closes, with no conversation.
A quick question.
claude --add-dir ../DownloadsIt lets it work with another folder too.
When it needs files from somewhere else.
claude as it is, in your test folder, and see what it does.claude -c, or give it a name with -n from the start.--dangerously-skip-permissions on your everyday computer.| Esc | Stops Claude while it works. Useful if you see it going the wrong way. |
| Shift + Tab | Switches mode while you use it: manual, accept changes, plan and auto. They are explained above. |
/clear | Starts a new conversation, from zero. |
claude -c | Typed when you open it, it continues the last conversation in that folder. Inside, /resume lets you pick an earlier one. |
@file | Points to a specific file in what you ask. When you type @ it suggests the ones that are there. |
/init | Creates a CLAUDE.md file with notes about your project, which Claude reads every time you open it there. |
/usage | How much of your plan limit you have used. |
/help | The list of all commands. |
/exit | Quit. Pressing Ctrl + C twice also works. |
It updates itself, so you never have to reinstall it.
Close the terminal and open a new one: the one you had open does not know about the installation. If it still fails, follow the "Fix your PATH" part of the official troubleshooting guide.
You pasted the CMD command into PowerShell. Use the PowerShell one from step 2.
Claude's free plan does not include Claude Code. You need Pro, Max, Team, Enterprise or a Console account.
Type claude doctor in the terminal: it checks the installation and tells you what is wrong and how to fix it. If it still does not make sense, ask me.
Glad to hear it. Would you send it to someone who could use it?
Thanks for telling me. Tell me where you got stuck and I will fix it for everyone.
Tell you where I got stuckGot a question? Ask me and I will answer by email.