Skip to content



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
Please enter the LastPass master password for

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.