Skip to content

LastPass

Installation

brew install lastpass-cli

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:

  1. Open Account Settings in your browser (Open My Vault → Account Settings)
  2. Press Show Advanced Settings
  3. 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.

References