Before you start
You do not need any command-line experience. This page teaches the few things you need. We use the terminal first because that is where the agents live. Desktop and web apps exist, but treat them as a fallback.
1. Open a terminal
Press the Windows key, type Terminal (or PowerShell on older Windows), press Enter. You should see a window with a line ending in >.
Press Cmd + Space, type Terminal, press Enter.
On Ubuntu and many others, press Ctrl + Alt + T. Otherwise open the applications menu and search for “Terminal”.
2. What a prompt looks like
The last line is the prompt. It is the computer saying “ready for a command”. It looks a bit different on each system:
PS C:\Users\you>you@your-mac ~ %you@your-pc:~$You type after it and press Enter. When the prompt comes back, the command has finished.
3. Copy and paste into a terminal
Every command on this site has a Copy button. Pasting is where people get stuck, because it differs.
In Windows Terminal: Ctrl + V or Ctrl + Shift + V, or right-click. In an older blue PowerShell window, right-click pastes.
Cmd + V, as everywhere else on a Mac.
Ctrl + Shift + V (plain Ctrl + V usually does not work), or right-click and choose Paste.
After pasting, read the line, then press Enter. Some terminals ask you to confirm when you paste several lines.
4. Stop a command
Press Ctrl + C (on a Mac too, not Cmd). Use it if something seems stuck or you started the wrong thing. To leave a program such as an agent, you can also type exit.
5. “command not found”
It means the terminal does not know that name. Either it is not installed, you mistyped it, or you installed it a moment ago and the terminal has not noticed. Close the terminal, open a new one, and try again. Windows says something like “is not recognized”. It is the same problem.
6. Your code lives in a folder
Where am I? Come back to this box any time.
| I want to… | macOS / Linux | Windows PowerShell |
|---|---|---|
| See where I am | pwd | pwd |
| See what is here | ls | ls or dir |
| Go into a folder | cd Documents | cd Documents |
| Go back up one | cd .. | cd .. |
| Make a folder | mkdir portfolio | mkdir portfolio |
| See what the agent changed | git status (what changed) and git log --oneline (what was saved), or ask the agent: “What did you change?” | |
Your project is just a folder with files in it. The agent can only see and change the folder you start it in. So we make one folder for this project and start the agent inside it.
cd Documents
mkdir portfolio
cd portfolio
pwd
ls
If cd Documents fails, run ls (or dir) to see what folders you have, and pick one. On some Windows machines Documents lives inside OneDrive. That is fine.
You should see a path ending in portfolio after pwd, and nothing after ls, because the folder is empty. If mkdir says the folder already exists, that is fine: just cd portfolio.
Finding it again tomorrow. Open a new terminal, then cd Documents/portfolio (on Windows, cd Documents\portfolio also works). Run pwd and ls to check you are in the right place before you start the agent. Write the path down.
7. Git, in one minute
Git keeps a history of your project, so you can see what changed and go back. Check it is installed:
git --version
If it prints a version number, you have it. On a Mac, a box may pop up offering to install “command line developer tools”: click Install and wait (it can take several minutes), then run the command again. On Windows, if it says “is not recognized”, install Git from git-scm.com/downloads, accept the default choices, then open a new terminal. Inside your project folder, git init starts a history, git status shows what changed, git log --oneline lists what was saved. The agent can do the saving for you if you ask.
8. Do I need Node and npm?
Only for some install routes. From the vendors’ own pages today:
- Claude Code: the recommended installer does not need Node. The npm route needs Node.js 22 or later (docs).
- Codex CLI: installers for macOS, Linux and Windows are given, and npm is an alternative (repository). The docs do not state a Node version; the package file asks for Node 16 or later.
- Antigravity CLI: native installers; the pages I read do not mention Node.
- Gemini CLI (organisations and API-key users now): installed with npm or Homebrew. The docs do not state a Node version; the package file asks for Node 20 or later (repository).
Check what you have:
node --version
npm --version
If those print version numbers, you have them. If not, and you need them, follow the official instructions at nodejs.org/en/download and then open a new terminal. If you can use a native installer, skip Node altogether.
Checked on 24 November 2026.