Make a CLI in 50 Lines of Python Code

Create command groups, flags, and more

Eric Chi
Better Programming
Published in
5 min readFeb 12, 2021

--

Python logo next to a command
Photo by the author.

Today, we will be creating a simple CLI (command-line interface) that is built in Python. More specifically, we will be using a popular Python package called click that allows us to accelerate this process. What is a CLI? It’s a tool that does something inside your terminal. The possibilities are limitless with CLI tools.

--

--

Passion for learning, teaching, and helping others understand the world of software. Currently working @ Blizzard Entertainment as a Solutions Architect.