From b667eec297f671738136944fa77eb797e08bb548 Mon Sep 17 00:00:00 2001 From: fred_the_tech_writer <69817454+fschillingeriv@users.noreply.github.com> Date: Thu, 19 Nov 2020 18:54:46 -0500 Subject: [PATCH] Apikey fix (#303) * --apikey cmd fix * apikey fix --- _articles/miscellaneous/cli.md | 6 +++--- _articles/miscellaneous/personal-api-key.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_articles/miscellaneous/cli.md b/_articles/miscellaneous/cli.md index cb54dec4..99e2d73a 100644 --- a/_articles/miscellaneous/cli.md +++ b/_articles/miscellaneous/cli.md @@ -76,9 +76,9 @@ bw login [email] [password] --method --code ``` where `` is your Two-step Login method (see [Enums](#enums)), and `` is your Two-step Login code. ``` -bw login --apiKey +bw login --apikey ``` -where `--apiKey` will prompt you to enter your personal `client_id` and `client_secret`. For more information, see [Personal API Key for CLI Authentication](https://bitwarden.com/help/article/personal-api-key/). +where `--apikey` will prompt you to enter your personal `client_id` and `client_secret`. For more information, see [Personal API Key for CLI Authentication](https://bitwarden.com/help/article/personal-api-key/). ``` bw login --sso ``` @@ -109,7 +109,7 @@ Pass the session key to CLI commands by setting the `BW_SESSION` environment var It is possible to persist your session key to your environment (for example, exporting it in `.bashrc`), however, we do not recommend doing this. Your active session key is the encryption key used to unlock all data associated with your Bitwarden vault and is not well-suited for persisting on an unprotected disk. {% endcallout %} -### `--apiKey` Variables +### `--apikey` Variables The Bitwarden CLI will look for non-empty environment variables `BW_CLIENTID` or `BW_CLIENTSECRET`. Save these environment variables with your `client_id` and `client_secret` to prevent Bitwarden from prompting you every time. diff --git a/_articles/miscellaneous/personal-api-key.md b/_articles/miscellaneous/personal-api-key.md index b9dd8c98..75cb427a 100644 --- a/_articles/miscellaneous/personal-api-key.md +++ b/_articles/miscellaneous/personal-api-key.md @@ -42,7 +42,7 @@ Rotating your key will invalidate your previous key and all active sessions usin To use your API Key to authenticate into the CLI, enter the following command: ``` -bw login --apiKey +bw login --apikey ``` which will prompt you to enter the obtained `client_id` and `client_secret` to authenticate. Once you enter these values, enter your Master Password to decrypt your Vault. For more information, see [Bitwarden command line tool (CLI)](https://bitwarden.com/help/article/cli/).