Automic VaultAutomic Vault

brew

Install lastpass-cli with Homebrew, apk, dnf, MacPorts, Nix, apt

LastPass command-line interface tool. Version 1.6.1 via Homebrew; verified 2026-06-24.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install lastpass-cli

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install lastpass-cli

MacPorts ports tree · security/lastpass-cli/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add lastpass-cli

Alpine Linux edge package indexes · lastpass-cli · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install lastpass-cli

Fedora Rawhide package metadata · lastpass-cli · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#lastpass-cli

nixpkgs package indexes · pkgs/by-name/la/lastpass-cli/package.nix · source: api.github.com

Ubuntu aptverified · 92%
sudo apt install lastpass-cli

Ubuntu 24.04 LTS package indexes · lastpass-cli · source: archive.ubuntu.com

overview

Package summary

LastPass command-line interface tool

Commands and aliases

  • lpass

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2014-10-22: LastPass announced and open-sourced the command-line application.
  • 2014-10-22: GitHub repository created.
  • 2019-04-15: v1.3.3 release published.
  • 2024-11-14: v1.6.1 release published.

Related projects

  • Related pieces include the LastPass web service, LastPass browser extensions, pinentry, libcurl, libxml2, OpenSSL or LibreSSL, and platform clipboard tools such as xclip, xsel, pbcopy, and Cygwin putclip.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 3 runtime dependencies.
  • Build metadata lists 4 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
$LPASS_HOME/env$XDG_CONFIG_HOME/lpass/env~/.lpass/env

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
$LPASS_HOME/blob$LPASS_HOME/session_token$XDG_DATA_HOME/lpass/blob$XDG_DATA_HOME/lpass/session_token~/.lpass/blob~/.lpass/session_token

executables

Installed executables

CommandKindExposureNote
lpasscliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version1.6.1
manager updated2026-06-24
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/lastpass/lastpass-cli

install metadata

Package metadata

Package keybrew:lastpass-cli
Version1.6.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/lastpass-cli
Homepagehttps://github.com/lastpass/lastpass-cli
Repositoryhttps://github.com/lastpass/lastpass-cli
Upstream docshttps://github.com/lastpass/lastpass-cli#readme
LicenseGPL-2.0-or-later WITH openvpn-openssl-exception
Source archivehttps://github.com/lastpass/lastpass-cli/releases/download/v1.6.1/lastpass-cli-1.6.1.tar.gz
Last updated2026-06-24T13:25:45+02:00
Pulseupdated
Dependenciescurl, openssl@3, pinentry
Build dependenciesasciidoc, cmake, docbook-xsl, pkgconf
Uses from macOSlibxml2, libxslt
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelastpass-cli
Version Scheme0
Revision3
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

lastpass-cli

nix profile install nixpkgs#lastpass-cli
  • normalized package name match
  • Matched by: Lastpass Cli
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/la/lastpass-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

lastpass-cli 1.3.7-1build3

command line interface to LastPass.com

https://github.com/lastpass/lastpass-cli

sudo apt install lastpass-cli
  • Section: universe/utils
  • Architecture: amd64
  • 6 dependencies
  • 3 optional deps
  • normalized package name match
  • Matched by: Lastpass Cli
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: lastpass-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

lastpass-cli 1.6.1-r1

LastPass command line interface tool

https://lastpass.com/

sudo apk add lastpass-cli
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: lastpass-cli
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lastpass Cli
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lastpass-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

lastpass-cli-bash-completion 1.6.1-r1

Bash completions for lastpass-cli

https://lastpass.com/

sudo apk add lastpass-cli-bash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: lastpass-cli
  • normalized package name match
  • Matched by: Lastpass Cli
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lastpass-cli-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

lastpass-cli-doc 1.6.1-r1

LastPass command line interface tool (documentation)

https://lastpass.com/

sudo apk add lastpass-cli-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: lastpass-cli
  • normalized package name match
  • Matched by: Lastpass Cli
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lastpass-cli-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

lastpass-cli-fish-completion 1.6.1-r1

Fish completions for lastpass-cli

https://lastpass.com/

sudo apk add lastpass-cli-fish-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: lastpass-cli
  • normalized package name match
  • Matched by: Lastpass Cli
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lastpass-cli-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

lastpass-cli-zsh-completion 1.6.1-r1

Zsh completions for lastpass-cli

https://lastpass.com/

sudo apk add lastpass-cli-zsh-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: lastpass-cli
  • normalized package name match
  • Matched by: Lastpass Cli
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lastpass-cli-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

lastpass-cli 1.6.1-3.fc44

Command line interface to LastPass.com

https://github.com/LastPass/lastpass-cli

sudo dnf install lastpass-cli
  • License: GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception AND OpenSSL
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: lastpass-cli
  • 9 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lastpass Cli
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lastpass-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

lastpass-cli

sudo port install lastpass-cli
  • normalized package name match
  • Matched by: Lastpass Cli
MacPorts ports tree · api.github.com · MacPorts ports tree: security/lastpass-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment