macOS
brew install lastpass-clilocal Homebrew formula metadata
sudo port install lastpass-cliMacPorts ports tree · security/lastpass-cli/Portfile · source: api.github.com
brew
LastPass command-line interface tool. Version 1.6.1 via Homebrew; verified 2026-06-24.
install
brew install lastpass-clilocal Homebrew formula metadata
sudo port install lastpass-cliMacPorts ports tree · security/lastpass-cli/Portfile · source: api.github.com
sudo apk add lastpass-cliAlpine Linux edge package indexes · lastpass-cli · source: dl-cdn.alpinelinux.org
sudo dnf install lastpass-cliFedora Rawhide package metadata · lastpass-cli · source: dl.fedoraproject.org
nix profile install nixpkgs#lastpass-clinixpkgs package indexes · pkgs/by-name/la/lastpass-cli/package.nix · source: api.github.com
sudo apt install lastpass-cliUbuntu 24.04 LTS package indexes · lastpass-cli · source: archive.ubuntu.com
overview
LastPass command-line interface tool
history
LastPass CLI is the official open-source command-line client for LastPass vault data. It gives terminal users the `lpass` command for listing, showing, generating, adding, editing, and syncing secrets without using the browser extension or web UI.
LastPass announced the open-sourced command-line application on 2014-10-22, the same date recorded as the GitHub repository creation date. The README identifies the project as a LastPass.com command-line interface and carries a 2014-2019 LastPass copyright notice.
The project was designed for GNU/Linux, Cygwin, and Mac OS X, with dependencies such as OpenSSL or LibreSSL, libcurl, libxml2, and optional clipboard helpers. Its manpage-oriented documentation and `make install-doc` target reflect a Unix command-line packaging style rather than an app-store distribution model.
Package adoption followed quickly in Unix ecosystems. The README documents installation through Arch, Fedora, EPEL, Debian/Ubuntu build dependencies, Gentoo, Homebrew, MacPorts, FreeBSD ports, and Cygwin, making `lpass` a common terminal bridge for LastPass users on developer workstations and servers.
From a package-manager perspective, LastPass CLI is notable because it packages a proprietary SaaS password manager workflow as a conventional open-source CLI with shell completion, manpages, and data/cache locations that can be managed by Unix package systems.
Typical use starts with `lpass login`, then commands such as `lpass ls`, `lpass show`, `lpass generate`, `lpass edit`, and clipboard-oriented password retrieval. The documented storage paths include encrypted vault blobs and session tokens, so the tool sits directly in the secrets-management path for shell scripts and interactive terminal use.
LastPass CLI matters to package nerds because it is a real-world example of a vendor SaaS client being distributed like a normal Unix utility: source on GitHub, package recipes across distributions, optional manpage generation, and XDG-style data/config support.
It also exposed the tension around packaging cloud credentials locally: the package is small and scriptable, but its cached blob and session token files are security-sensitive runtime state rather than ordinary configuration.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$LPASS_HOME/env$XDG_CONFIG_HOME/lpass/env~/.lpass/envCredential-bearing paths to review before unattended agent runs.
$LPASS_HOME/blob$LPASS_HOME/session_token$XDG_DATA_HOME/lpass/blob$XDG_DATA_HOME/lpass/session_token~/.lpass/blob~/.lpass/session_tokenexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lpass | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/lastpass/lastpass-cli
install metadata
| Package key | brew:lastpass-cli |
|---|---|
| Version | 1.6.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lastpass-cli |
| Homepage | https://github.com/lastpass/lastpass-cli |
| Repository | https://github.com/lastpass/lastpass-cli |
| Upstream docs | https://github.com/lastpass/lastpass-cli#readme |
| License | GPL-2.0-or-later WITH openvpn-openssl-exception |
| Source archive | https://github.com/lastpass/lastpass-cli/releases/download/v1.6.1/lastpass-cli-1.6.1.tar.gz |
| Last updated | 2026-06-24T13:25:45+02:00 |
| Pulse | updated |
| Dependencies | curl, openssl@3, pinentry |
| Build dependencies | asciidoc, cmake, docbook-xsl, pkgconf |
| Uses from macOS | libxml2, libxslt |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lastpass-cli |
| Version Scheme | 0 |
| Revision | 3 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
lastpass-cli
nix profile install nixpkgs#lastpass-clilastpass-cli 1.3.7-1build3
command line interface to LastPass.com
https://github.com/lastpass/lastpass-cli
sudo apt install lastpass-clilastpass-cli 1.6.1-r1
LastPass command line interface tool
sudo apk add lastpass-clilastpass-cli-bash-completion 1.6.1-r1
Bash completions for lastpass-cli
sudo apk add lastpass-cli-bash-completionlastpass-cli-doc 1.6.1-r1
LastPass command line interface tool (documentation)
sudo apk add lastpass-cli-doclastpass-cli-fish-completion 1.6.1-r1
Fish completions for lastpass-cli
sudo apk add lastpass-cli-fish-completionlastpass-cli-zsh-completion 1.6.1-r1
Zsh completions for lastpass-cli
sudo apk add lastpass-cli-zsh-completionlastpass-cli 1.6.1-3.fc44
Command line interface to LastPass.com
https://github.com/LastPass/lastpass-cli
sudo dnf install lastpass-clilastpass-cli
sudo port install lastpass-clisource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.