avatar Bite 362. Add a Password Prompt to Your Command Line Interface (CLI)

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!

Login and get coding
go back Intermediate level
Bitecoin 3X

17 out of 17 users completed this Bite.
Will you be the 18th person to crack this Bite?
Resolution time: ~10 min. (avg. submissions of 5-240 min.)

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help