LastPass CLI Cheatsheet

Login

To get started, you have to login:

lpass login <your email address>

Look for passwords matching a string

lpass show stringtomatch

Get a password

This will grab a password from LastPass via the cli.

lpass show <name of password> |grep Password | awk '{$1=""; print $0}' | awk '{$1=$1;print}'