Command-line interface (CLI)
A command-line interface is a user interface where you do not click on icons but tell the computer what to do using typed text commands.
In plain terms
Most programs are operated with a mouse or your finger: windows, buttons, menus. A command-line interface has none of these. Instead there is an empty line where you type what you want, press Enter, and the computer replies in text.
It is like the difference between a menu and a verbal order. On the menu (graphical interface), you can only point to what is printed. If you speak to the chef (command line), you can request anything the kitchen can prepare, provided you know how to ask.
The command line is fast, precise, and repeatable for this reason. You can rename a thousand files with a single line, save the commands, and the computer can run them automatically later. In exchange, it is harder to learn at first because nothing shows you what can be typed.
AI has brought it back into the spotlight: many coding agents run in the command line, and the agent itself issues commands on your machine when it reads files, runs programs or tests.
How it works
- You open a terminal window. A short signal, the prompt (for example, "C:\>" or "$"), followed by a blinking cursor, indicates that the computer is waiting for your command.
- You enter the command: the program name comes first, followed by switches and data, such as which folder or file to work with.
- After pressing Enter, the command interpreter (shell) processes the line, locates the appropriate program, and launches it.
- The program performs the task and outputs the result or error message as text in the same window.
- You can chain commands or save them to a file (a script), allowing a long workflow to be rerun with a single line. AI agents issue commands the same way, only typing them for you.
An everyday example
You want to try a coding agent, and the installation guide asks you to open the terminal and type a line. That mostly dark window with the blinking cursor is the command-line interface. You reach the same place when your IT colleague asks you on the phone to type 'ipconfig' on Windows.
Who is affected
A common misconception
Limits and risks
- The command line rarely asks for confirmation: a mistyped deletion command runs immediately, and deleted files usually do not go to the trash, so you cannot retrieve them from there.
- Never copy a command from the internet or a chat window that you do not understand, as it may contain malicious code.
- If an AI agent runs commands on your machine, it does so with your permissions, so check what you approve and do not grant unlimited access.
- You must learn the commands because the interface does not show you what can be typed, and commands differ by operating system.
Similar, but not the same
- Graphical user interface (GUI) – On a graphical interface, you click windows, icons, and buttons; in a command line, you type text and receive text back.
- Terminal – The terminal is the window (formerly the device) where you type, while the command-line interface is the mode of operation by which a program accepts text commands.
- API – Programs communicate with each other via the API, while the command line was originally designed for humans, even if agents use it today.
Related concepts
User interface, Human–machine interaction
shell, Bash, PowerShell, Command-line coding agent
Terminal, Graphical user interface (GUI), API, Szkript, coding agent
A brief history
Command-line operation emerged in the 1960s, when computers were operated through typewriter-like teleprinters and later through text-based screen terminals. By the late 1970s it became the standard on personal computers too, and MS-DOS, released in 1981, spread it especially widely. Graphical interfaces began pushing it out of everyday use from the mid-1980s (Apple Macintosh, 1984), and truly from the 1990s onward.
Where things stand
At the end of 2026, the command line is a basic tool for developers and operators, and it is enjoying a new golden age thanks to coding agents that run in it. More and more non-IT people encounter it when they install or use an AI agent.
In the news
- LiteLLM was poisoned using GitHub tokens leaked from Claude Code, attacker saysOct 26, 2026 · Code
- Google opens Android Studio to more than 40 third-party coding agentsOct 26, 2026 · Code
- GitHub to retire old Teams app, some Copilot models and expiring gh tokens on November 16Oct 26, 2026 · Code
- Claude Code and Codex CLI updates: compression, MCP tasks, mid-reply steeringOct 19, 2026 · Code
- Microsoft analyzes Claude Code and Copilot CLI impact among tens of thousands of internal engineersOct 16, 2026 · Code
- Copilot: multi-repository Slack and Teams, mobile and web remote control, Ollama models in the CLIOct 12, 2026 · Code
- REA MCP server gives coding agents the ability to reverse-engineer binaries, APKs and Electron appsOct 7, 2026 · Code
- Hidden web instructions could trick GitHub Copilot CLI into leaking secretsOct 6, 2026 · Code
Also known as
CLI · command-line interface · command line · parancssor · command-line interface · command-line interface · command-line interface · konzol
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.