HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lpass — Interface for the LastPass password manager. More information: <https://lastpass.github.io/lastpass-

Submitted by: @import:tldr-pages··
0
Viewed 0 times
lpassthelastpasscommandpasswordinterfaceclifor

Problem

How to use the lpass command: Interface for the LastPass password manager. More information: <https://lastpass.github.io/lastpass-cli/lpass.1.html>.

Solution

lpass — Interface for the LastPass password manager. More information: <https://lastpass.github.io/lastpass-cli/lpass.1.html>.

Log in to your LastPass account, by entering your master password when prompted:
lpass login {{username}}


Show login status:
lpass status


List all sites grouped by category:
lpass ls


Generate a new password for gmail.com with the identifier myinbox and add to LastPass:
lpass generate --username {{username}} --url {{gmail.com}} {{myinbox}} {{password_length}}


Show password for a specified entry:
lpass show {{myinbox}} --password

Code Snippets

Log in to your LastPass account, by entering your master password when prompted

lpass login {{username}}

Show login status

lpass status

List all sites grouped by category

lpass ls

Generate a new password for gmail.com with the identifier `myinbox` and add to LastPass

lpass generate --username {{username}} --url {{gmail.com}} {{myinbox}} {{password_length}}

Show password for a specified entry

lpass show {{myinbox}} --password

Context

tldr-pages: common/lpass

Revisions (0)

No revisions yet.