diff --git a/documentation/pages/_meta.json b/documentation/pages/_meta.json index 375f856e..cdd9d1a4 100644 --- a/documentation/pages/_meta.json +++ b/documentation/pages/_meta.json @@ -3,5 +3,5 @@ "install": "Install", "personal": "Personal", "business": "Business", - "reset": "Reset local data" + "logout": "Logout" } diff --git a/documentation/pages/reset.mdx b/documentation/pages/logout.mdx similarity index 82% rename from documentation/pages/reset.mdx rename to documentation/pages/logout.mdx index 6f7105f7..5879ac29 100644 --- a/documentation/pages/reset.mdx +++ b/documentation/pages/logout.mdx @@ -1,11 +1,11 @@ import { Callout } from 'nextra/components'; -# Reset local data +# Logout -If you want to start fresh with the CLI or use another account, you can reset the local data by running the following command: +If you want to start fresh with the CLI or use another account, you can logout and reset the local data by running the following command: ```sh copy -dcli reset +dcli logout ``` diff --git a/documentation/pages/personal/devices.mdx b/documentation/pages/personal/devices.mdx index cd7aa76b..3a8c6b1e 100644 --- a/documentation/pages/personal/devices.mdx +++ b/documentation/pages/personal/devices.mdx @@ -47,5 +47,5 @@ dcli devices remove --all ``` - If you remove the current CLI device, you will need to do a `dcli reset` in order to re-authenticate. + If you remove the current CLI device, you will need to do a `dcli logout` in order to re-authenticate. diff --git a/src/index.ts b/src/index.ts index 6077c31d..4b7feac0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -139,7 +139,7 @@ devicesGroup .option('--all', 'remove all devices (dangerous)') .option('--other', 'remove all other devices') .argument('[device ids...]', 'ids of the devices to remove') - .description('Unregisters a list of devices. Unregistering the CLI will implies doing a "dcli reset"') + .description('De-registers a list of devices. De-registering the CLI will implies doing a "dcli logout"') .action(removeAllDevices); const teamGroup = program.command('team').alias('t').description('Team related commands'); @@ -266,8 +266,8 @@ configureGroup }); program - .command('reset') - .description('Reset and clean your local database and OS keychain') + .command('logout') + .description('Logout and clean your local database and OS keychain') .action(async () => { const resetConfirmation = await askConfirmReset(); if (resetConfirmation) { @@ -280,13 +280,13 @@ program if (error instanceof Error) { errorMessage = error.message; } - winston.debug(`Unable to read device configuration during reset: ${errorMessage}`); + winston.debug(`Unable to read device configuration during logout: ${errorMessage}`); db = connect(); db.serialize(); } reset({ db, secrets }); - console.log('The local Dashlane local storage has been reset'); + console.log('The local Dashlane local storage has been reset and you have been logged out'); db.close(); } }); diff --git a/src/utils/dialogs.ts b/src/utils/dialogs.ts index 62a1d8ce..cb973ae9 100644 --- a/src/utils/dialogs.ts +++ b/src/utils/dialogs.ts @@ -64,7 +64,7 @@ export const askConfirmReset = async () => { { type: 'list', name: 'confirmReset', - message: 'Do you really want to delete all local data from this app?', + message: 'Do you really want to logout and delete all local data from this app?', choices: ['Yes', 'No'], }, ]);