Intro To Cli Applications

An Introduction to Command Line Interface Applications

Command Line Applications (aka CLI applications or simply CLIs - for Command Line Interface) are programs that you interact with entirely through your terminal and shell. They have no graphics or visual interface beyond what you see in your terminal after you run the program. They don't have drop-down navigations for you to browse or anything at all for you to click on. They can only communicate to the user through ASCII output and only accept input from the user via ASCII characters entered into a prompt.

For example:

As you can see, a CLI application has a seemingly crude interface that implies limited potential and functionality for the end user. The truth is that CLI applications birthed the software revolution.

"Write programs to handle text streams, because that is a universal interface.” Douglas McIlroy, creator of UNIX Operating System

Their simple interface and constrained features actually allowed people totally unfamiliar with computers or programming to interact with a machine. We wouldn't be where we are today without CLI applications.

As a developer, some of the most powerful tools you use are CLI applications. git is a CLI application. learn is a CLI application. The ruby interpreter is presented as a CLI application and interface.

Get excited about building CLI applications. They seem trivial and probably won't impress your friends, but they are the foundations of software and your first step in your journey to change the world through code. In the next few sections, we'll learn a few things about programming best practices that will help you write great CLI applications.

View Intro to CLI Applications on and start learning to code for free.

Unlock your future in tech
Learn to code.

Learn about Flatiron School's Mission

With a new take on education that falls somewhere between self-taught prodigy and four-year computer science degree, the Flatiron School promises to turn students with little programming experience into developers.

In the six months since the Manhattan coding school was acquired by WeWork, it has spawned locations in Washington, D.C., Brooklyn, and London. Now, WeWork is opening a fourth Flatiron School location, this time in Houston.

Adam Enbar, Flatiron School's cofounder, believes now is the time to grow. "How the world is changing has impacted working and learning in very similar ways. We think education fundamentally is about one thing: enabling people to pursue a better life."

Learn. Love. Code.
Students come to Flatiron School to change their lives. Join our driven community of career-changers and master the skills you need to become a software engineer or a data scientist.
Find Us