Managing your Devices

Managing your devices

List your devices

dcli devices list

You'll get a list of all your devices, with their ID, name, and platform.

f6110572        Chrome - Linux    server_standalone       other
e96c8942        Firefox - Ubuntu  server_standalone       other
9d7fc86f        Chrome - Mac OS   server_standalone       other
61e815b5        Dashlane CLI      server_standalone       current

You can also request the result in JSON format:

dcli devices list --json

Remove devices from your account

Devices that are removed from your account will need to re-authenticate to Dashlane again. This is useful if you want to remove a device that you no longer use, or you don't have access to anymore.

Remove specific devices

dcli devices remove <device-id-1> <device-id-2>

Remove all devices except the current one

dcli devices remove --others

Remove all devices including current CLI device

dcli devices remove --all

If you remove the current CLI device, you will need to do a dcli logout in order to re-authenticate.

Register a new non-interactive device

In case you want to access your vault in non-interactive environment like CIs or servers, you can register a new device with the register command.

dcli devices register "my_server"

Note that you will be prompted to validate the registration with a second factor authentication.

This will create a new device named my_server and will print the device credentials. Save them in a safe place (like in a secure note), as you won't be able to retrieve them later. Run the suggested commands on your target device (your server or CI) to set the device credentials as environment variables.

export DASHLANE_SERVICE_DEVICE_KEYS=dls_[deviceAccessKey]_[payload]

On Windows, you can use the following command instead of export.

$env:DASHLANE_SERVICE_DEVICE_KEYS='dls_[deviceAccessKey]_[payload]'

You can ensure that the variable is correctly set by running:

Get-ChildItem Env:

Make sure to save the generated secret in a safe place (like a secure note). Consider it as highly sensitive information as it grants access to your vault.

The token you'll get is starting by dls in order to be easily identified by scanning tools.

⚠️

OTP at each login and SSO are not supported for non-interactive devices. We recommend creating a dedicated Dashlane account for your non-interactive devices.

Once you've set the environment variables, you can use the CLI to retrieve passwords, otp and notes and no interactive prompts will be shown.