LastPass Accelerator

An Alfred Workflow


Short Description

Interact with LastPass CLI

Last Updated

15 Sep 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.0.1
 

Bundle ID

org.mlfs.corp.lpass
 

Categories

Applications

LastPass Accelerator

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:

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

Variables

ClipboardTimeout

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

lppath

Location of the LastPass CLI program

lpuser

Your LastPass username

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.

Screenshots