返回顶部
d

dashlaneDashlane密码访问

Access passwords, secure notes, secrets and OTP codes from Dashlane vault.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
2,009
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

dashlane

Dashlane CLI

从命令行访问你的 Dashlane 保管库。提供对密码、安全笔记、机密和 OTP 代码的只读访问。

安装

bash
brew install dashlane/tap/dashlane-cli

身份验证

首先同步以触发身份验证:
bash
dcli sync

步骤:

  1. 1. 输入你的 Dashlane 邮箱
  2. ⚠️ 重要提示:在浏览器中打开显示的 URL(设备注册)
  3. 输入通过邮箱收到的验证码
  4. 输入你的主密码

检查当前账户:
bash
dcli accounts whoami

获取密码

bash

按 URL 或标题搜索(默认将密码复制到剪贴板)


dcli p mywebsite
dcli password mywebsite

获取特定字段

dcli p mywebsite -f login # 用户名/登录名 dcli p mywebsite -f email # 邮箱 dcli p mywebsite -f otp # TOTP 双因素认证码 dcli p mywebsite -f password # 密码(默认)

输出格式

dcli p mywebsite -o clipboard # 复制到剪贴板(默认) dcli p mywebsite -o console # 打印到标准输出 dcli p mywebsite -o json # 完整 JSON 输出(所有匹配项)

按特定字段搜索

dcli p url=example.com dcli p title=MyBank dcli p id=xxxxxx # 按保管库 ID dcli p url=site1 title=site2 # 多个筛选条件(或关系)

获取安全笔记

bash
dcli note [筛选条件]
dcli n [筛选条件] # 简写

按标题筛选(默认)

dcli n my-note dcli n title=api-keys

输出格式:text(默认),json

dcli n my-note -o json

获取机密

Dashlane 机密是专门用于敏感数据的内容类型。

bash
dcli secret [筛选条件]

按标题筛选(默认)

dcli secret api_keys dcli secret title=api_keys -o json

其他命令

bash

手动同步保管库(默认每小时自动同步一次)


dcli sync

锁定保管库(需要主密码才能解锁)

dcli lock

完全注销

dcli logout

备份保管库到当前目录

dcli backup dcli backup --directory /path/to/backup

配置

bash

在操作系统钥匙串中保存主密码(默认:true)


dcli configure save-master-password true

禁用自动同步

dcli configure disable-auto-sync true

启用生物识别解锁(仅 macOS)

dcli configure user-presence --method biometrics

禁用用户存在检查

dcli configure user-presence --method none

各平台的持久化

macOS

主密码默认存储在钥匙串中。重启后仍然保留。 bash dcli configure save-master-password true

Linux(服务器/无头模式)

没有原生钥匙串。选项:
  1. 1. 环境变量(安全性较低,但简单):
bash export DASHLANEMASTERPASSWORD=...
  1. 2. 本地加密文件:save-master-password true 存储在 ~/.local/share/dcli/
  2. 外部密钥管理器(Vault、AWS Secrets 等)来注入变量

Docker / CI

使用传递给容器的 DASHLANEMASTERPASSWORD 环境变量。 bash docker run -e DASHLANEMASTERPASSWORD=... myimage

SSO / 免密码

dcli 尚不支持——需要传统的主密码。

高级:注入机密

bash

将机密注入环境变量


dcli exec -- mycommand

注入到模板文件

dcli inject < template.txt > output.txt

按路径读取机密

dcli read dl://vault/secret-id

示例

获取双因素认证的 OTP 码

bash dcli p github -f otp

返回:123456(剩余25秒)

从保管库获取 SSH 密钥

将私钥存储在安全笔记中,然后: bash dcli n SSH_KEY | ssh-add -

脚本编写

bash

为脚本获取密码

PASSWORD=$(dcli p myservice -o console)

获取 JSON 并用 jq 解析

dcli p myservice -o json | jq -r .[0].password

故障排除

  • - 被锁定? 运行 dcli sync 解锁
  • SSO 用户: 需要安装 Chrome 和可视化界面
  • 免密码: 尚不支持
  • 调试模式: dcli --debug <命令>

文档:https://cli.dashlane.com

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 dashlane-1776076563 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 dashlane-1776076563 技能

通过命令行安装

skillhub install dashlane-1776076563

下载

⬇ 下载 dashlane v1.0.0(免费)

文件大小: 2.36 KB | 发布时间: 2026-4-14 10:56

v1.0.0 最新 2026-4-14 10:56
Dashlane 1.0.0 – Initial Release

- Access passwords, secure notes, secrets, and OTP codes from your Dashlane vault via the command line.
- Provides read-only vault access with commands to copy credentials, output them in various formats, and filter by multiple fields.
- Supports master password management, keychain integration on macOS, sync, lock, and backup commands.
- Enables secret injection for scripts, templated files, and CI environments.
- Includes guidance for installation, authentication, platform-specific persistence, and troubleshooting.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部