The terminal is a Mac app where you run programs by typing their names instead of clicking. The program inside it that reads what you type is called the shell, and on a Mac it is zsh. Every maker's instructions in the rest of this course start at the terminal, and so do coding agents such as Claude Code and Codex.
Twenty minutes is enough to move around, install the tools the course uses and check that they work. Everything happens in one course folder called ai-video, inside your home folder.
Open it and move around
Open Spotlight, type Terminal and press Return. The window shows a prompt such as name@MacBook-Pro ~ %, and the tilde (~) stands for your home folder.
Four commands move you around, and none of them can break anything. The command pwd prints where you are, ls lists what is in the folder, cd goes into a folder (cd .. goes up a level and cd ~ goes home) and mkdir makes a new folder. The first two lines of this block tell zsh to treat a line starting with # as a note, which every block in this course uses.
Your first five commandsTerminal # Let lines that start with # be notes, in this window and every new oneecho 'setopt interactive_comments' >> ~/.zshrcsetopt interactive_comments# Where am I?pwd# What is in this folder?ls# Make a folder for the course and step into itmkdir -p ~/ai-videocd ~/ai-video# Up one level, then straight homecd ..cd ~
Three keys save time. Tab finishes a half-typed name, the up arrow brings back the last command, and Control-C stops whatever is running.
Install Homebrew and the kit
Homebrew is a package manager, a tool that installs other command-line tools with one line each. Paste the line from brew.sh exactly as it appears there. The script explains what it will do, waits for Return and asks for your Mac password. Nothing appears on screen as you type the password, which is normal.
Install HomebrewTerminal /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
On a Mac with Apple silicon, the installer finishes with three lines under Next steps that add Homebrew to your PATH, explained below. Until you run them, every brew command fails with command not found. They usually look like this, but if yours differ, copy yours.
Put Homebrew on your PATHTerminal # The installer prints these under Next steps. If yours differ, copy yours.echo >> ~/.zprofileecho 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv zsh)"
To check, open a new window and type brew --version, which should answer with a version number. Then one line installs Python, Node (which runs JavaScript tools), git (which tracks changes to files), ffmpeg (which converts and joins video) and uv. The lines after it print each version.
Install the kit and check each versionTerminal brew install python node git ffmpeg uv# Each should print a version numberpython3 --versionnode --versiongit --versionffmpeg -versionuv --version# Which python3 wins, and where it liveswhich -a python3
On Windows, open PowerShell as administrator, run wsl --install, restart, open Ubuntu and follow the same steps inside it. Homebrew supports macOS Sequoia 15 or newer, so expect some friction on an older Mac.
Make sure the right Python runs
PATH is the list of folders the shell searches, in order, for a command. When you type python3, the shell runs the first python3 it finds in those folders. A Mac with Homebrew has two, Apple's in /usr/bin and Homebrew's in /opt/homebrew/bin, and the Next steps lines put Homebrew's first.
The last line of the kit block, which -a python3, lists every copy in the order the shell tries them, and /opt/homebrew/bin/python3 should come first. If python3 --version prints 3.9.6, Apple's copy is winning, so open a new window, because PATH changes only reach windows opened after them. On the Mac tested for this course, that old copy made pip, the usual Python installer, quietly fetch an old release of google-genai, which needs 3.11 or newer. It raised no error at all.
Give each project its own Python
Homebrew's Python refuses pip install outside a virtual environment, a private Python for one project kept in a folder called .venv. Make one in each project folder with uv venv (or python3 -m venv .venv), then run source .venv/bin/activate before installing anything. Run the activate line again in every new window, because each window starts outside the environment.
uv replaces pip and venv with one faster tool and can fetch whichever Python a project asks for, which is why this course uses it. When a maker's README says pip install, typing uv pip install inside the project's .venv does the same job.
Treat three commands with care
The command rm deletes files without sending them to the Bin, and sudo runs a command as the administrator. Any curl piped into sh downloads a script from the internet and runs it straight away. Homebrew, uv and the Hugging Face tool all install that way, which is fine from brew.sh, astral.sh and hf.co, and from nowhere you have not checked.
The next lesson covers getting a Google key for video.