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 chat
Give the CLI a
--helpoption. - In an email or ticket
We can script this because it's a CLI.
Keep exploring
More in DevOps & Cloud