Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thierryturpin/1dc61eb4bbbc61eb62511693d9c44219 to your computer and use it in GitHub Desktop.
Save thierryturpin/1dc61eb4bbbc61eb62511693d9c44219 to your computer and use it in GitHub Desktop.
❯ bw unlock
? Master password: [hidden]
Your vault is now unlocked!
To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:
$ export BW_SESSION="____#bitwarden_generated_session_key#____"
> $env:BW_SESSION="____#bitwarden_generated_session_key#____"
You can also pass the session key to any command with the `--session` option. ex:
$ bw list items --session ____#bitwarden_generated_session_key#____
# Bitwarden is now unlocked, just export your BW_SESSION
❯ export BW_SESSION="____#bitwarden_generated_session_key#____"
# Now I can run all cli commands or code using sdks
❯ aws s3 ls --profile=turpin
2017-04-04 19:58:13 turpin.be
2017-04-04 19:58:34 www.turpin.be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment