Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, apt 安装 lastpass-cli

查看 lastpass-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install lastpass-cli

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install lastpass-cli

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add lastpass-cli

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

Fedora dnf已验证 · 92%
sudo dnf install lastpass-cli

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

Nix已验证 · 92%
nix profile install nixpkgs#lastpass-cli

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

Ubuntu apt已验证 · 92%
sudo apt install lastpass-cli

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

概览

软件包摘要

LastPass command-line interface tool

命令和别名

  • lpass

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 3 个运行时依赖。
  • 构建元数据列出 4 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
lpasscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.6.1
管理器更新时间2026-06-24
本地数据OK
上游not checked
检测到的最新版本未检测到

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

安装元数据

软件包元数据

软件包键brew:lastpass-cli
版本1.6.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/lastpass-cli
主页https://github.com/lastpass/lastpass-cli
仓库https://github.com/lastpass/lastpass-cli
上游文档https://github.com/lastpass/lastpass-cli#readme
许可证GPL-2.0-or-later WITH openvpn-openssl-exception
源码归档https://github.com/lastpass/lastpass-cli/releases/download/v1.6.1/lastpass-cli-1.6.1.tar.gz
最后更新2026-06-24T13:25:45+02:00
Pulseupdated
依赖curl, openssl@3, pinentry
构建依赖asciidoc, cmake, docbook-xsl, pkgconf
macOS 提供的库libxml2, libxslt
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

lastpass-cli

nix profile install nixpkgs#lastpass-cli
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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