| name | dashlane |
| description | Access passwords, secure notes, secrets and OTP codes from Dashlane vault. |
| homepage | https://cli.dashlane.com |
| metadata | {"clawdbot":{"emoji":"🔐","requires":{"bins":["dcli"]}}} |
Dashlane CLI
Access your Dashlane vault from the command line. Read-only access to passwords, secure notes, secrets and OTP codes.
Installation
brew install dashlane/tap/dashlane-cli
Authentication
First sync to trigger authentication:
dcli sync
Steps:
- Enter your Dashlane email
- ⚠️ IMPORTANT: Open the URL shown in your browser (device registration)
- Enter the code received by email
- Enter your Master Password
Check current account:
dcli accounts whoami
Get a Password
dcli p mywebsite
dcli password mywebsite
dcli p mywebsite -f login
dcli p mywebsite -f email
dcli p mywebsite -f otp
dcli p mywebsite -f password
dcli p mywebsite -o clipboard
dcli p mywebsite -o console
dcli p mywebsite -o json
dcli p url=example.com
dcli p title=MyBank
dcli p id=xxxxxx
dcli p url=site1 title=site2
Get a Secure Note
dcli note [filters]
dcli n [filters]
dcli n my-note
dcli n title=api-keys
dcli n my-note -o json
Get a Secret
Dashlane secrets are a dedicated content type for sensitive data.
dcli secret [filters]
dcli secret api_keys
dcli secret title=api_keys -o json
Other Commands
dcli sync
dcli lock
dcli logout
dcli backup
dcli backup --directory /path/to/backup
Configuration
dcli configure save-master-password true
dcli configure disable-auto-sync true
dcli configure user-presence --method biometrics
dcli configure user-presence --method none
Persistence by Platform
macOS
Master password is stored in the Keychain by default. Survives reboots.
dcli configure save-master-password true
Linux (server/headless)
No native keychain. Options:
- Environment variable (less secure, but simple):
export DASHLANE_MASTER_PASSWORD="..."
- Local encrypted file:
save-master-password true stores in ~/.local/share/dcli/
- External secret manager (Vault, AWS Secrets, etc.) to inject the variable
Docker / CI
Use the DASHLANE_MASTER_PASSWORD environment variable passed to the container.
docker run -e DASHLANE_MASTER_PASSWORD="..." myimage
SSO / Passwordless
Not supported by dcli yet — requires a classic master password.
Advanced: Inject Secrets
dcli exec -- mycommand
dcli inject < template.txt > output.txt
dcli read "dl://vault/secret-id"
Examples
Get OTP for 2FA
dcli p github -f otp
SSH Keys from Vault
Store private key in a secure note, then:
dcli n SSH_KEY | ssh-add -
Scripting
PASSWORD=$(dcli p myservice -o console)
dcli p myservice -o json | jq -r '.[0].password'
Troubleshooting
- Locked? Run
dcli sync to unlock
- SSO users: Need Chrome installed + visual interface
- Password-less: Not supported yet
- Debug mode:
dcli --debug <command>
Docs: https://cli.dashlane.com