---
title: "What is a command-line interface?"
term: "Command-line interface"
description: "A 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."
url: "https://glossary.io/command-line-interface/"
published: "2026-11-22T20:53:12.437Z"
updated: "2026-11-22T20:53:12.437Z"
aliases:
  - "CLI"
topics:
  - "Web development"
wikidata: "https://www.wikidata.org/wiki/Q189053"
---

# What is a command-line interface?

**Definition:** A 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](https://glossary.io/graphical-user-interface/) 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](https://glossary.io/homebrew/), run build steps, manage code with Git, and connect to remote servers over [SSH](https://glossary.io/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

- [Command-line interface on Wikipedia](https://en.wikipedia.org/wiki/Command-line_interface)

## Related terms

- [Graphical user interface](https://glossary.io/graphical-user-interface/)
- [Homebrew](https://glossary.io/homebrew/)
- [SSH](https://glossary.io/ssh/)
- [MacPaw](https://glossary.io/macpaw/)
- [Terminal](https://glossary.io/terminal/)

**Topic:** [Web development](https://glossary.io/topics/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/.

Published November 22, 2026.
