lastpass/lastpass-cli
FreeLastPass command line interface tool
FreeFree tier
About lastpass/lastpass-cli
LastPass CLI is a command line interface to LastPass.com, allowing users to manage their LastPass vault from the terminal. It supports operations such as login, logout, add, show, edit, delete, export, import, list, sync, and more. It runs on GNU/Linux, Cygwin, and Mac OS X, and requires dependencies like LibreSSL/OpenSSL, libcurl, and libxml2. Optional dependencies include pinentry for GPG-like agent and clipboard tools (xclip, xsel, pbcopy, putclip). The tool is open source and ideal for users who prefer terminal-based workflows or need to automate password management tasks.
Key Features
Command line access to LastPass vault
Add, edit, show, delete, export, import, list, sync, and generate passwords
Cross-platform support: GNU/Linux, Cygwin, Mac OS X
Open source under GPLv2+
Optional clipboard and pinentry support
JSON output for scripting
Pros & Cons
Pros
- Free and open source
- Works on multiple operating systems
- Provides full programmatic access to LastPass vault
- Lightweight and scriptable
- Active community and maintained by LastPass
Cons
- Requires a LastPass account
- Command line only; no graphical interface
- Dependencies must be installed manually
- Relies on LastPass servers for operation
- May have a learning curve for non-technical users
Best For
Automate password management tasks in scriptsIntegrate LastPass with terminal-based workflowsManage passwords on headless servers or over SSHBulk import or export passwordsUse as a non-interactive credential store in CI/CD pipelines
FAQ
What is LastPass CLI?
LastPass CLI (lpass) is an open-source command line tool that provides access to the LastPass password manager vault from the terminal. It allows users to perform operations like adding, editing, showing, and exporting passwords.
Which operating systems does LastPass CLI support?
lpass is designed to run on GNU/Linux, Cygwin (Windows), and Mac OS X.
What are the dependencies for building LastPass CLI?
Required dependencies include LibreSSL or OpenSSL, libcurl, and libxml2. Optional dependencies include pinentry for a secure passphrase entry, clipboard tools (xclip, xsel, pbcopy, or putclip), and AsciiDoc for building documentation.