LastPass Accelerator

An Alfred Workflow


Short Description

Interact with LastPass CLI

Last Updated

01 Dec 2020

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes Yes Yes Yes Yes
 

Version

1.3.0
 

Bundle ID

org.mlfs.corp.lpass
 

Categories

Applications

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, run this:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Workflow Variables

ClipboardTime
Number of seconds a field is stored in the clipboard before restoring the clipboard to its previous contents

PostNotifcation
Whether to post a nofication each time a field is copied to the clipboard. Default is "true".

lppath
Location of the LastPass CLI program

lpuser
Your LastPass username

Workflow Commands

lpin [username]
Login to LastPass. The username is taken from the workflow variable {lpuser}, unless provided here.

After you enter your LastPass password you will be prompted for your MFA code. If you have previously logged in with the CLI's --trust option you can leave this blank.

If you have not enabled MFA for LastPass do it now. Until then, you can 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, username (with Control), URL (with Shift), or notes (with Command) to the clipboard.

lpgen
Generate a random password. Use Command to include symbols.

lpconfigure
Set values for the workflow's variables.

Screenshots