-
Notifications
You must be signed in to change notification settings - Fork 6
Vault Management API in Python
fer edited this page Mar 19, 2024
·
6 revisions
This guide details the steps to set up a Python script for interacting with the Bitwarden Vault Management API to retrieve items from a user's vault.
It assumes you have a Bitwarden account and are familiar with basic Python programming.
- Bitwarden account.
- Python preinstalled on your system.
- An API key from Bitwarden for authenticating API requests.
-
bw
cli tool is preinstalled on your system.
- Download the zipped file from the Bitwarden download page.
- Install unzip with
sudo apt-get install unzip -y
. - Unzip the downloaded file with unzip
bw-linux-X.zip
(where X is the release num ber). - Give the binary executable permissions with
chmod u+x bw
. - Move the executable to a directory in your path with
sudo mv bw /usr/local/bin
.
You'll now need to log in to your Bitwarden account with the command:
bw login
You'll be prompted for your Bitwarden email address, master password, and (if applicable) the two-step login code. Once you've successfully logged in, you'll be greeted with You are now logged in! and you're ready to go.