From chat to the terminal|INEMA.CLUB-PRO

Lesson 2 · 18 min

Install from the official source and sign in with your account

Installing the program, signing in to your account, and opening it in the folder are three separate steps, each with its own check. The command comes from the official page, the account is your subscription, and no password passes through the terminal.

Start the lesson
A hand checking the label on a sealed box beside a laptop with the terminal open.

In this lesson, you will

  1. 1Install Git, GitHub CLI, and Node with winget
  2. 2Install Claude Code or Codex from the official address
  3. 3Confirm with --version after reopening cmd
  4. 4Sign in with your subscription and check the method, without exposing a key

Objective: install Git, gh, Node, and the agent (Claude Code or Codex) using cmd, then confirm the version and sign-in method.

01From zero to an open agent

Three steps, each with its own check.

Scroll down: each step below lights up its part of the diagram.

  1. 1/4

    Install the program

    Installing puts the program on your computer. It doesn’t connect your account or choose the folder yet. After installing, close cmd and open it again: only the new window can see the program that was just installed.

  2. 2/4

    Sign in with your account

    Like a badge at a turnstile: the terminal sends you to the browser, and that’s where you sign in. Your password never goes through the terminal. Signing in with your account uses your subscription plan; an API key bills usage to a different account.

  3. 3/4

    Open in the folder

    The agent works in the folder where you opened it. The first time you open it in a folder, it asks whether you trust it: this is your practice folder, so confirm. To exit, /quit in Codex or /exit in Claude Code.

  4. 4/4

    One step at a time

    Installed it? Check the version. Signed in? Check the method. Opened it? Check the folder. If something fails, you know exactly which of the three steps stopped.

Right after installing, opening the agent and seeing a sign-in request isn’t a defect: step 1 worked, and step 2 is still needed.

02Check the seal before opening the box

Four precautions that apply to any new program.

1. Official source

“Faster” commands circulate online. A command pasted without checking can run anything.

Read the publisher: Git.Git, GitHub.cli, OpenJS.NodeJS.LTS, @openai/codex, claude.ai/install.cmd. If the name is different or from an unknown page, don’t paste it.

Warning signA package with “codex” in its name, but without @openai/ in front.

03The installation commands

Once per computer. Copy one block, wait for it to finish, then close and reopen cmd.

cmd · Git, GitHub CLI, and Node
winget install --id Git.Git -e
winget install --id GitHub.cli -e
winget install --id OpenJS.NodeJS.LTS -e
cmd · the agent (choose one or both)
rem Claude Code:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

rem Codex:
npm install -g @openai/codex
cmd · in a NEW window, check
git --version
gh --version
claude --version
codex --version
cmd · sign in and check the method (Codex)
codex login
codex login status
cmd · open the agent in the project folder
cd %USERPROFILE%\projetos\meu-primeiro-agente
cd
claude
Simulation: illustrative example
C:\Users\ana> winget install --id OpenJS.NodeJS.LTS -e
Successfully installed
C:\Users\ana> rem closed cmd and opened another
C:\Users\ana> npm install -g @openai/codex
added 1 package in 9s
C:\Users\ana> codex login status
Logged in using ChatGPT

Version numbers and times change over time. What matters is seeing a number, not an error message.

04Rehearse: install and check

Notice what happens when you check in the same window.

Missions

  1. 1Install Git with winget (exact name: Git.Git).
  2. 2Check whether Git responds in this same window.
  3. 3Close this window (the command is exit).
  4. 4Now check Git again.
  5. 5Check which method Codex used to sign in.
Command Prompt · simulation

Simulation: actual messages may vary with the Windows and program versions.

05Practice

Once per computer.

E3 · Tools installed

20 min

Install Git, GitHub CLI, Node, and the agent you’ll use with winget. Close and reopen cmd, then run the --version commands.

Done when: git --version, gh --version, and claude --version or codex --version show version numbers.

E4 · Sign in and note the method

10 min

Open the agent, sign in with your subscription through the browser, and note on a card (or phone note) which method is active and where you checked.

Done when: the card says "account" (or "API") and contains no password or key.

06Test what you learned

The explanation appears after your answer.

Question 1 of 3

You installed Git, and in the same window, git --version replied "is not recognized." What should you do?

To learn more

Previous lessonNext lesson