Setup
Install Dashlane CLI
Install the Dashlane CLI from the Dashlane website.Log In
Authenticate with Dashlane:Template Functions
dashlanePassword
Retrieve password entries matching a filter:
dashlaneNote
Retrieve secure notes matching a filter:
Usage Examples
Basic Password Retrieval
Git Configuration
~/.gitconfig.tmpl
AWS Credentials
~/.aws/credentials.tmpl
NPM Configuration
~/.npmrc.tmpl
Database Credentials
~/.config/db/config.yml.tmpl
Multiple Services
~/.config/api-keys.env.tmpl
SSH Configuration
~/.ssh/config.tmpl
Secure Notes
Store multiline data like SSH keys or certificates in secure notes:~/.ssh/id_rsa.tmpl
~/.config/ssl/certificate.pem.tmpl
Kubernetes Config
~/.kube/config.tmpl
Password Entry Structure
Dashlane password entries typically have these fields:title: Entry titleusername: Username or loginpassword: Password valueemail: Email addressurl: Website URLnote: Additional notes
Filtering
The filter argument matches against:- Entry title
- Domain/URL
- Username
Configuration
Custom Command
Ifdcli is not in your PATH:
~/.config/chezmoi/chezmoi.toml
Complete Examples
Multi-Service Configuration
~/.config/services.yml.tmpl
Docker Registry
~/.docker/config.json.tmpl
Environment Variables
~/.config/env.sh.tmpl
Troubleshooting
Not Logged In
Sync and authenticate:Entry Not Found
List all password entries:Command Not Found
Ensure Dashlane CLI is installed:Testing Templates
Test template functions:Multiple Matches
If a filter returns multiple results, access by index:Best Practices
- Use descriptive titles: Make entries easy to filter
- Consistent naming: Use a naming convention for entries
- Use notes field: Store additional structured data in notes
- Specific filters: Use precise filters to avoid multiple matches
- Secure notes: Use secure notes for large/multiline data
- Test filters: Verify filters match the right entries
- Stay synced: Run
dcli syncregularly - Organize: Use Dashlane’s folders/categories for organization