CLI and Terminal
CLI (Command Line Interface) is a way to interact with your computer by typing text commands instead of clicking buttons. For example, you can make a new folder on a Mac inside the Finder app OR you can type mkdir book_notes_2026 in the Terminal. Terminal, btw, is just an app on your Mac, a screen you type into. (On a Windows computer, there is an equivalent Windows Terminal app as well).
One Layer Deeper: The app you type commands into is called the Terminal. Inside it, a program called a shell reads what you type and runs it. Bash and Zsh are names of different shells you can choose from. Bash scripting, which your agent does ALL the time, is a way to make the computer perform specific goals by combining shell commands. That
mkdirwe used above stands for “make directory”. Another super command onelsstands for “list stuff”, that’s what I have said in my head for years, no idea if it officially stands for anything. There are hundreds of other commands availabe on a Mac (which is a Unix system). Anyway, people often use “terminal,” “shell,” and “command line” to mean the same thing, and for everyday use that’s fine (we are not padentic about things over here at SWF.com)!
Relevant for coding agents, CLI can also refers to the text-based version of external tools. For example, GitHub has a CLI called gh, and Heroku has one called heroku. Whatever you can do by clicking buttons on the GitHub or Heroku websites, an agent can do by using the matching commands provided by the company’s CLI. It’s convenient, and a way for agents to act on your behalf once you authorize them by logging into your account when the agents prompts you to do so.
For example, this is the command to create a private repository on Github:
gh repo create my-app --private
To create a project on Heroku:
heroku create my-app-name
The Terminal app is the built-in option on a Mac. There are other terminal emulators (that’s what they are called) like iTerm2, Warp, and Ghostty that provide more “features”. Also coding editors like Cursor and VS Code have a terminal built into a panel. They’re all different screens that wrap the same thing, a shell that runs the commands you type to manipute the underlying computer.
Personal Experience: I’ve done my work inside a plain old terminal (and equivalent on Linux/Unix machines) for the last two decades, starting with the Sun Microsystem workstations in the Moore computer lab during freshmen year of college, which is where I first encournterd the command line. Though I was initimated by it at first, we quickly become close friends. And I believe you can as well :)