Pybites Logo

Add a password prompt to your command line interface (cli)

Level: Intermediate (score: 3)

Let's get serious. Your Command Line Interface (CLI) works and you want to authenticate who is using your application.

Here is a simple example of how to receive credentials via a password prompt.

Refer to Typer password documentation for more help.

Enjoy!