Explanation on how to use Touch ID on the command line

Use Touch ID for sudo on Mac

There are pluses and minuses of using Touch ID on the command line. You’ll have to bring up your finger to the sensor while you are on the command line.