QamoosTech
DevOps & CloudCommand lineBeginnerPython

CLI

PronunciationSEE-el-EYE

Definition

A CLI (command-line interface) is a program you use by typing commands in a terminal. Many have subcommands, like git commit, plus arguments and options.

Where you hear it

In developer tools, automation scripts, DevOps work, and when building small tools for yourself or a team.

Examples

  • I built a CLI to add tasks from the terminal.
  • Each subcommand does one job: add, list, done.
  • Run the CLI with --help to see every option it supports.

Common mistake

Printing everything to one stream and always returning success. A good CLI uses exit codes and separates results from errors.

Don't confuse with

A GUI, which you use with windows and clicks. A CLI is text in, text out, so it is easy to automate.

Say it at work

  • In a meeting or chatGive the CLI a --help option.
  • In an email or ticketWe can script this because it's a CLI.