Claude Code for Beginners: A Step-by-Step Terminal Guide
2026.11.30
This Claude Code tutorial takes you from a clean Windows 11 PC to your first commit. You install Claude Code with one PowerShell line, open a terminal in your project, type claude, and describe what you want in plain English. Claude reads your project, edits files, runs commands and checks its own work, and it asks before it does anything risky. Below you will install it, fix a real bug, build a small feature with plan mode, and learn the keys that keep you in control.
Everything here was done with Claude Code 2.1.330 on Windows 11 (November 2026).
Claude Code is Anthropic's AI coding agent, and it lives in your terminal. Unlike a chat window, there is no copy and paste: Claude works directly in your project folder.
It is not free. Claude Code is included in the paid Claude plans: Pro, Max, Ultra, Team and Enterprise. Pro is 20 dollars a month (US prices, which can change), and Max and Ultra give you a lot more usage. The other option is an Anthropic Console account, where you pay for API usage as you go. The free Claude plan does not include Claude Code. For learning, Pro is the simplest start.
Right-click the Start button and choose Terminal. That opens PowerShell. Type the official install command and press Enter. You don't need administrator rights.
irm https://claude.ai/install.ps1 | iex
It shows no progress while it downloads, so give it a moment. When it's done, it tells you where it put claude.exe, inside your user folder.
Close the window and open a new terminal so it picks up the new PATH. Then check the install:
claude --version
If you see a version number, you are ready. Two more commands are worth knowing:
claude update
claude doctor
claude update gets the newest version right now, and claude doctor runs a full health check of your install.
Install Git too. Git for Windows is optional but recommended:
winget install Git.Git
With Git, Claude runs its commands in Git Bash, and you get version control to undo anything. Without it, Claude simply uses PowerShell. Node.js is not needed with the native installer.
A winget package (Anthropic.ClaudeCode) also exists, but it doesn't update on its own. The native installer does, so stick with it.
Claude Code always works inside a folder, so go to your project first. The example here is a tiny web app, a bill splitter:
cd projects\bill-splitter
claude
Tip: in File Explorer you can also right-click inside any folder and choose Open in Terminal.
The first time, Claude Code asks three things:
A text style. Pick one with the arrow keys and press Enter.
How you want to log in: with your Claude subscription, or with a Console account for API billing. Your browser opens. Sign in, click Authorize and go back to the terminal. If the browser doesn't open, press C to copy the login link.
Whether you trust the files in this folder. Claude can read, edit and run things here, so only say yes to projects you know.
You only do this once. Next time, typing claude takes you straight in. To switch accounts later, use /login.
At the top is the welcome box: the version, your model (Opus 5.5 by default), your plan, and the folder you're working in. At the bottom is the prompt, between two lines. Under it is the mode indicator, which says auto mode on in a new session.
Day-one keys: ? on an empty prompt shows the shortcuts, / shows every command, @ mentions a file and ! starts shell mode. Shift + Enter (in Windows Terminal) or \ + Enter adds a new line, the up arrow brings back an earlier prompt, and /exit or Ctrl + C twice leaves Claude Code.
Claude searches the folder, reads the files it needs, and only then answers. Every line with a dot in front is a tool it used, like Read or Search. It doesn't ask for permission, because reading and searching inside your project folder is always allowed. Changing files is a different story.
You can point Claude at a file yourself with the at sign. Type @, a list of files appears, keep typing to filter, and press Tab to pick one:
explain @app.js in simple words
Now Claude starts from exactly that file, which is faster and saves tokens. If a bug is easier to show than to describe, take a screenshot and press Alt + V to paste the image into your prompt.
Shift + Tab cycles through four modes in a circle:
Auto (the default since version 2.1.283): Claude works without asking, while a separate safety check reviews each action and blocks risky things, like a force push or deleting files that were already there.
Manual: Claude asks before every edit and every command. Use this while you learn.
Accept edits: Claude edits files without asking, but still asks before commands.
Plan: Claude only reads and plans. It can't change your files until you approve the plan.
When Claude asks, you get a short menu. Yes runs it once. The next option allows it for longer, for example every npm test command in this project. No stops it. On Yes or No, press Tab to add a note for Claude.
With a 60 dollar bill, a 15% tip and 2 people, the app says each person pays 480 dollars. Describe the bug the way you'd tell a colleague: what you entered, what you saw, and what you expected.
With a $60 bill, a 15% tip and 2 people, the app shows $480.00 per person. It should be $34.50. Find the bug and fix it.
Claude reads app.js and finds it: the tip percentage is never divided by 100. Because you are in manual mode, it asks before editing.
This is your review moment: red lines are removed, green lines are added. One line changes, and it is exactly the fix, so choose Yes. Next Claude wants to run npm test, a command, so it asks again. Pick the second option so it never asks about npm test in this project again.
All tests pass. Then:
/diff shows every change in your project, file by file. Check it before you commit.
!git status runs a command yourself in shell mode. It runs right away, and Claude reads the output.
commit my changes with a descriptive message makes Claude run git add and git commit and write the message for you.
For anything bigger than a small fix, plan first. Press Shift + Tab until it says plan mode on, or type /plan in front of your request.
Add a dark mode toggle to the app, and remember the choice.
Claude explores first and may ask you a question. Then it writes a plan: a button in index.html, dark colors in the CSS, and a few lines of JavaScript that save the choice in local storage.
Read the plan: this is the cheapest moment to change your mind. Approve it with auto mode, approve it but check each edit yourself, or choose No, keep planning and say what to change.
Sessions are saved per project folder. In the same folder:
claude -c
claude -r
claude "your task"
claude -c continues the most recent conversation, claude -r (or /resume) lists past sessions, and claude "your task" starts a new one with that prompt sent. Name sessions with /rename.
No. Claude Code is included in the paid Claude plans (Pro, Max, Ultra, Team, Enterprise), or you can pay for API usage with an Anthropic Console account. The free Claude plan does not include it.
Node.js is not needed with the native installer. Git for Windows is optional but recommended; Claude then uses Git Bash. Without it, Claude uses PowerShell.
New sessions start in auto mode, where a safety check blocks risky actions. While you learn, switch to manual mode with Shift + Tab, and commit often with Git.