Interact with LastPass CLI.
LastPass Accelerator uses the LastPass CLI. The easiest way to install it is with brew:
brew install lastpass-cli
If you have not installed brew, first run this:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Variables
These can also be changed using the lpconfigure command (see below).
ClipboardTimeout
Number of seconds a password is stored in the clipboard before restoring the clipboard to its previous contents. Default is
30
.PostNotification
Whether to post a nofication each time a field is copied to the clipboard. Default is
true
.lppath
Location of the LastPass CLI program. Default is
/usr/local/bin/lpass
.lpuser
Your LastPass username. This is automatically set when you login.
Commands
All commands start with lp, so there's only one thing to remember.
lpin [username]
Login to LastPass. The username is taken from the workflow variable {lpuser}, unless specified here.
After you enter your LastPass password you will be prompted for your MFA code, unless you have previously logged in with the CLI's --trust option.
If you have not enabled MFA for LastPass do it now! Until then, leave this blank.
lpout
Logout of LastPass.
lpstat
Show LastPass status. Either "Logged in as..." or "Not logged in."
lpass
Copy an item's password to the clipboard. Use these modifiers to copy other fields:
Ctrl
UsernameShift
URLCMD
Notes
Or use the Option key to open a new menu with additional actions you can perform on the selected item.
Launch
Open item's URL
Share
Not yet implemented
Delete
Remove item (with confirmation)
Move
Move item to a different folder
Duplicate
Duplicate item
lpconfigure
Quickly view and modify the workflow's variables.
lpmanage
Manage LastPass account.
- ##### Change your LastPass password
- ##### Import items from a file
- ##### Export items to a file