In this post, we’ll cover the very basics of working with Python and Click to create a CLI app. We’ll install Python 3, set up our development environment, install Click, and create a
Getting started with Python is easy. Most *nix systems come with Python pre-installed. We’ll be using Python 3. To check which version of Python you have, open up your terminal and run
python -V. You should get an output similar to this:
This means the default Python version installed on my computer is
2.7.10. Most Macs ship with Python 2 by default. If you got a
3.x.x, then you’re good to go. After installing Python 3, running
python3 -V outputs:
If you don’t have Python installed, you can head over to python.org, download the appropriate installer for your system, and run it. This step is necessary if you’re on Windows.