# 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

```sh
sudo av install brew:lastpass-cli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install lastpass-cli
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lastpass-cli
```

  Evidence: MacPorts ports tree: security/lastpass-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add lastpass-cli
```

  Evidence: Alpine Linux edge package indexes: lastpass-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install lastpass-cli
```

  Evidence: 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

- Nix (92%):

```sh
nix profile install nixpkgs#lastpass-cli
```

  Evidence: 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 apt (92%):

```sh
sudo apt install lastpass-cli
```

  Evidence: Ubuntu 24.04 LTS package indexes: lastpass-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## Package facts

- **Package key:** brew:lastpass-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/lastpass-cli>
- **Version:** 1.6.1
- **Source summary:** LastPass command-line interface tool
- **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
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- lpass (cli)
- lpass (alias)

## Dependencies

- curl
- openssl@3
- pinentry

## Build dependencies

- asciidoc
- cmake
- docbook-xsl
- pkgconf

## Uses from macOS

- libxml2
- libxslt

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.6.1
- Package-manager updated: 2026-06-24
- Local data: ok
- Upstream repository: https://github.com/lastpass/lastpass-cli
- info: No cached GitHub release or tag data was available.
## 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.

### Sources

- <https://api.github.com/repos/lastpass/lastpass-cli>
- <https://api.github.com/repos/lastpass/lastpass-cli/releases?per_page=10>
- <https://blog.lastpass.com/posts/open-sourced-lastpass-command-line-application-now-available>
- <https://github.com/lastpass/lastpass-cli>
- <https://raw.githubusercontent.com/lastpass/lastpass-cli/master/README.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## 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

- Unix: $LPASS_HOME/env, $XDG_CONFIG_HOME/lpass/env, ~/.lpass/env

## Credential files

- Unix: $LPASS_HOME/blob, $LPASS_HOME/session_token, $XDG_DATA_HOME/lpass/blob, $XDG_DATA_HOME/lpass/session_token, ~/.lpass/blob, ~/.lpass/session_token
## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Nix - lastpass-cli: normalized package name match | 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 apt - lastpass-cli - 1.3.7-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: lastpass-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command line interface to LastPass.com | https://github.com/lastpass/lastpass-cli
- apk - lastpass-cli - 1.6.1-r1: normalized package name match | Alpine Linux edge package indexes: lastpass-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | LastPass command line interface tool | https://lastpass.com/
- apk - lastpass-cli-bash-completion - 1.6.1-r1: normalized package name match | Alpine Linux edge package indexes: lastpass-cli-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for lastpass-cli | https://lastpass.com/
- apk - lastpass-cli-doc - 1.6.1-r1: normalized package name match | Alpine Linux edge package indexes: lastpass-cli-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | LastPass command line interface tool (documentation) | https://lastpass.com/
- apk - lastpass-cli-fish-completion - 1.6.1-r1: normalized package name match | Alpine Linux edge package indexes: lastpass-cli-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for lastpass-cli | https://lastpass.com/
- apk - lastpass-cli-zsh-completion - 1.6.1-r1: normalized package name match | Alpine Linux edge package indexes: lastpass-cli-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for lastpass-cli | https://lastpass.com/
- dnf - lastpass-cli - 1.6.1-3.fc44: normalized package name match | 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 | Command line interface to LastPass.com | https://github.com/LastPass/lastpass-cli
- MacPorts - lastpass-cli: normalized package name match | MacPorts ports tree: security/lastpass-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [curl](https://www.automicvault.com/pkg/brew/curl/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pinentry](https://www.automicvault.com/pkg/brew/pinentry/) - Runtime dependency declared by Homebrew.
- [asciidoc](https://www.automicvault.com/pkg/brew/asciidoc/) - Build dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [docbook-xsl](https://www.automicvault.com/pkg/brew/docbook-xsl/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [go-passbolt-cli](https://www.automicvault.com/pkg/brew/go-passbolt-cli/) - Shares av.db curated category or tags: cli, password-management, password-manager, secrets, security.
- [gopass-jsonapi](https://www.automicvault.com/pkg/brew/gopass-jsonapi/) - Shares av.db curated category or tags: cli, password-management, password-manager, secrets, security.
- [gopeed](https://www.automicvault.com/pkg/brew/gopeed/) - Shares av.db curated category or tags: cli, password-management, password-manager, secrets, security.
- [clipsafe](https://www.automicvault.com/pkg/brew/clipsafe/) - Shares av.db curated category or tags: cli, password-management, password-manager, security.
- [enpass-cli](https://www.automicvault.com/pkg/brew/enpass-cli/) - Shares av.db curated category or tags: cli, password-management, password-manager, security.
- [gokey](https://www.automicvault.com/pkg/brew/gokey/) - Shares av.db curated category or tags: cli, password-management, password-manager, security.
- [kpcli](https://www.automicvault.com/pkg/brew/kpcli/) - Shares av.db curated category or tags: cli, password-management, password-manager, security.
- [pass](https://www.automicvault.com/pkg/brew/pass/) - Shares av.db curated category or tags: cli, password-management, password-manager, security.
- [pwsafe](https://www.automicvault.com/pkg/brew/pwsafe/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, management, manager, openssl, password.

## Combined YAML source

View the package source record on GitHub. [combined/lastpass-cli.yml](https://github.com/automic-vault/db/blob/main/combined/lastpass-cli.yml)


## Sources

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