LastPass¶
Installation¶
brew install lastpass-cli
Login¶
mkdir -p ~/.local/share/lpas
lpass login <email>
Show Attachment¶
lpass show ssh --attach=<attachment id>
Rename Item¶
echo "${new_name}" | lpass edit --non-interactive --name "${id}"
Export as JSON¶
lpass show --expand-multi --basic-regexp '.*' --json
lpass login returns 'unknown'¶
$ lpass login username@email.com
Please enter the LastPass master password for username@email.com.unknown Master Password:
A workaround is to:
- Open Account Settings in your browser (Open My Vault → Account Settings)
- Press Show Advanced Settings
- Set General → Security → Password Iterations to exactly 100100
LastPass will ask for your Master password and re-encrypt your vault. After that using lpass should work again.