What is a command-line interface?
DefinitionA command-line interface (CLI) is a way of interacting with software or an operating system by typing text commands and reading text output, instead of using the menus, icons and windows of a graphical interface.
Also known as CLI
On a computer, people use a CLI through a terminal application and a shell, such as Bash or Zsh, which interprets each command. Commands can take options and arguments, be chained together, and be saved in scripts, which makes the command line fast and precise for repetitive tasks. Before graphical user interfaces became common, the command line was the main way people used computers.
Command-line tools are central to web development and server administration. Developers use them to install software with package managers such as npm and Homebrew, run build steps, manage code with Git, and connect to remote servers over SSH. Many platforms, including web hosts and cloud providers, offer their own CLIs so developers can automate deployments and other tasks.
Command-line interface resources
Topic: Web development
Cite this definition
- APA
What is a command-line interface? (2026, November 22). Glossary. https://glossary.io/command-line-interface/
- MLA
“What Is a Command-Line Interface?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/command-line-interface/.
- Chicago
“What Is a Command-Line Interface?” Glossary. Coywolf. November 22, 2026. https://glossary.io/command-line-interface/.
- HTML link
<a href="https://glossary.io/command-line-interface/">What is a command-line interface?</a>
Published