Dashlane CLI
$ dcli Official High RiskDashlane CLI (dcli) provides terminal access to Dashlane vaults for retrieving passwords, notes, OTPs, and injecting secrets into templates/subprocesses (dcli inject / dcli exec). Supports -o json structured output and headless CI authentication via DASHLANE_SERVICE_DEVICE_KEYS.
brew install dashlane/tap/dashlane-cli dcli inject and dcli exec resolve dl:// secret references locally into config files or subprocess env vars without sending secrets through an LLM/MCP loop.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o json, dl:// secret URIs, dcli exec, and headless DASHLANE_SERVICE_DEVICE_KEYS auth after initial device setup.
- Native
-o jsonoutput anddcli exec/dcli inject - Headless CI auth via
DASHLANE_SERVICE_DEVICE_KEYS
dcli exec avoids stdout secret leakage and service device keys allow scoped headless access, though dcli password prints plaintext secrets.
dcli execprevents plaintext vault values in stdout- High-sensitivity vault access requires careful scoping
Prebuilt binaries via Homebrew tap and GitHub releases for macOS, Linux, and Windows.
- Single-binary releases across macOS, Linux, and Windows
Covers vault lookup, TOTP retrieval, template injection, and env execution cleanly.
dl://URI workflow mirrorsop://patterns
First-party official Dashlane CLI (Dashlane/dashlane-cli) under Apache-2.0.
- Official
Dashlane/dashlane-clirepository
Dedicated CLI docs portal at cli.dashlane.com and structured --help.
- Official docs at cli.dashlane.com
Security, Auth & Guardrails
Stores encrypted local vault state in ~/.dashlane/ and OS keychain; CI runs authenticate headlessly via DASHLANE_SERVICE_DEVICE_KEYS.
Apache-2.0 open-source CLI; requires a Dashlane account (service device keys require paid team/business plans).
# Dashlane CLI (dcli) Agent Rules - Prefer `dcli exec` over `dcli password` so vault secrets pass straight to child processes without entering transcripts. - Use scoped `DASHLANE_SERVICE_DEVICE_KEYS` in CI and never commit rendered `dcli inject` output files.
Agent-Ready Command Recipes
Safe Read-Only Queries
dcli sync && dcli password -o json title=GitHub
Refreshes the encrypted local vault cache and outputs matching credential entries using -o json.
dcli exec --env-file .env.tpl -- ./scripts/deploy.sh
Resolves dl:// references from .env.tpl directly into ./scripts/deploy.sh without printing secret values.
Controlled Writes & Previews
dcli inject -i config.tpl.yml -o config.yml
Replaces dl:// secret placeholders from config.tpl.yml into config.yml locally.
Strengths for Agents
- +
dcli execanddcli injectresolvedl://references cleanly without leaking secrets into stdout. - + Dedicated
DASHLANE_SERVICE_DEVICE_KEYSenables non-interactive CI/CD usage.
Caveats & Pitfalls
- ! Interactive master password / email verification is required if
DASHLANE_SERVICE_DEVICE_KEYSis not provisioned. - !
dcli syncis often needed before queries to avoid stale local vault caches.