When you set the BW_SESSION environment variable, bw commands will reference that variable and can be run cleanly, for example: export BW_SESSION="5PBYGU+5yt3RHcCjoeJKx/wByU34vokGRZjXpSH7Ylo8w=" When you log in and unlock your Vault using any one of the above methods, the CLI will return both a export BW_SESSION (Bash) and env:BW_SESSION (PowerShell) command, including your session key, that can be easily copied and pasted to save the required environment variable. The typical way to use a session key is to set a BW_SESSION environment variable with the session key’s value. destroy any active session key) using: bw lock This command will prompt your for your Master Password and generate a new session key. You can generate a new session key at any time using: bw unlock The session key must be used to perform any command that touches Vault data (e.g. In the CLI, unlocking your Vault generates a session key which acts as the decryption key used to interact with data in your Vault. All other options will subsequently prompt you to unlock your Vault using your Master Password. Logging in using email and password is the only method which automatically unlocks your Vault. You can pass your two-step login method and code as options, as in the following example.
0 Comments
Leave a Reply. |