Support investigative journalism — donate to IRE →

Command-Line Interface (CLI)

noun
Foundational concepts Using AI as a tool

A text-based way of interacting with a computer by typing commands, as opposed to clicking buttons and menus in a graphical interface. A CLI runs inside a terminal — the plain-text window familiar to developers and data journalists who write code.

In 2025, the command line became the main home for a new wave of AI coding agents. Anthropic's Claude Code, OpenAI's Codex CLI, and Google's Gemini CLI all run in the terminal, letting developers describe tasks in plain English and watch the agent write code, run tests, and manage files. For data reporters, basic comfort with a CLI unlocks these tools: you could ask an agent to scrape a government website, clean a messy CSV, or turn a Jupyter notebook into a reusable script — all from a terminal window. You don't need to be a software engineer; you just need to know how to open a terminal and type a command.

The term appears constantly in AI product coverage, usually abbreviated as CLI. It's closely related to vibe coding, the practice of describing what you want in natural language and letting an AI agent handle the implementation. Many CLI-based agents also support Model Context Protocol plug-ins that connect them to outside data sources and tools — but some developers argue the CLI itself is often the better approach. In a his essay, engineer Eric Holmes argued that CLIs are simpler to debug, easier to compose (you can pipe output through other tools), and piggyback on authentication systems that already work — while MCP servers add moving parts that can break.

In a bid to inject AI into more of the programming process, OpenAI is launching Codex CLI, a coding 'agent' designed to run locally from terminal software. TechCrunch
Google launched a new, open source AI coding tool for terminals, Gemini CLI, to compete with similar offerings from OpenAI and Anthropic. TechCrunch
The new tool connects Gemini AI models to local codebases, allowing developers to make natural language requests, such as asking Gemini CLI to explain confusing sections of code, write new features, debug code, or run commands. TechCrunch
Entry by Ryan Serpico
About this glossary — who's behind this site and how you can contribute.