K-Culture GlossaryCWords from the people who build
CLI
A way to operate a computer purely by typing text. AI tools like "Claude Code CLI" are now bringing this old-school approach back into the spotlight.
In plain words
A CLI (Command Line Interface) is a way to make a computer do things by typing text, with no mouse involved. Think of a restaurant: instead of pointing at pictures on a menu, you speak your order precisely to the kitchen. It's harder at first because you have to memorize the right words, but once you know them, you can place long, precise orders in one go, like "two more of that, one with less spice."
In fact, the CLI was the computer's original face. Before screens filled up with buttons and icons (GUI), everyone used computers this way, and it later became an outdated method for ordinary users. But in the AI era, this old approach is making a comeback as the star of the show. Claude Code, OpenAI's Codex, Gemini CLI — the AI coding tools making headlines these days are deliberately built as CLIs.
The reason is simple: for AI, reading and writing text is far easier and more accurate than hunting for buttons on a screen and clicking them. When a person gives an instruction in plain language, the AI types the actual commands behind the scenes. Underneath most stories about "just tell your AI assistant what you want and the computer does it," you'll usually find a CLI at work.
How it shows up in the news
Try it yourself
- On a Mac, search for "Terminal"; on Windows, search for "Command Prompt," and open it. That black window with a blinking cursor — that's the face of the CLI.
- Type date and press Enter. Today's date comes back as text. You just made the computer do something without touching a single button.
- Ask a chatbot: "Give me a command to find large files on my computer." The AI writes the command, and you just paste it in — this combination is exactly why the CLI is making a comeback today.
GUI vs CLI: What's the Difference
Type words to command, Point and click to command
Since both are ways to make the same computer do the same task, it's easy to mistake this for a question of 'which is better.' It's not about superiority but about fit for purpose. And in the AI era, the trend has flipped in a confusing way — the latest AI tools are deliberately shipping with the old-school CLI instead of the user-friendly GUI.
| Aspect | CLI | GUI |
|---|---|---|
| How you operate it | You type out fixed commands as text | You visually find and click buttons or icons |
| Learning curve | You need to know what to type before you can even start | Easy — just click what you see |
| What it's good for | Repeating the same task a hundred times, or attaching long chains of conditions | Occasional tasks, or tasks you need to visually verify |
| Does it leave a record | The typed commands remain as-is, so you can reuse them or hand them off to someone else | No record of what you clicked |
| Compatibility with AI | AI only needs to read and write, which is fast and accurate | AI has to look at the screen and click, which is slow and error-prone |
| Analogy | Placing a verbal order to the kitchen | A picture menu |
Rule of thumbIf the choices are drawn on screen, it's a GUI; if you have to spell out in words what you want, it's a CLI.
CLI vs. Terminal: what's the difference
The way work gets done, The window where it happens
Both look the same — black window, typed text going back and forth — so people use the words interchangeably. But one is a window, and the other is a tool that runs inside it. That's why "I opened the terminal but Claude Code isn't there" makes sense: the window is already there by default, but the tool has to be installed separately.
| Aspect | CLI | Terminal |
|---|---|---|
| What it is | A way of giving instructions through typed commands, and the tools that do so | The window that runs those tools and displays the results |
| In numbers | Hundreds exist. The more you install, the more you have | Usually just one kind is used — Terminal on Mac, PowerShell on Windows |
| Examples | Claude Code, Codex, Gemini CLI, git | Mac Terminal, iTerm, Windows Terminal |
| If you swap it | Installing a different tool changes what you can do | Switching to a different window changes nothing about what you can do |
| Analogy | The task handled at the counter | The counter itself where that task is handled |
Rule of thumbIf it has to be installed, it's a CLI tool. If it comes with the computer by default, it's a terminal.
See also
Stories using this term
No story has used this term yet. New ones attach here automatically.