Differences
This shows you the differences between two versions of the page.
| bitwardern_command_line_tool [2025/09/21 11:45] – created admin | bitwardern_command_line_tool [2025/09/21 11:47] (current) – removed admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Bitwarden command line tool ====== | ||
| - | ===== Install ===== | ||
| - | |||
| - | < | ||
| - | curl -fsSL https:// | ||
| - | sudo apt update && sudo apt install -y nodejs | ||
| - | sudo npm install -g npm@latest | ||
| - | sudo npm install -g @bitwarden/ | ||
| - | bw --version | ||
| - | </ | ||
| - | |||
| - | ===== Configuration ===== | ||
| - | # set the CLI's server to your Vaultwarden | ||
| - | < | ||
| - | bw config server https:// | ||
| - | |||
| - | bw login securedata@seanys.com | ||
| - | ? Master password: [hidden] | ||
| - | You are logged in! | ||
| - | |||
| - | export BW_SESSION=" | ||
| - | </ | ||
| - | |||
| - | ===== Manage folders ===== | ||
| - | List: | ||
| - | < | ||
| - | bw list folders --raw | jq -r '.[] | select(.id != null) | " | ||
| - | </ | ||
| - | |||
| - | Delete all folders: | ||
| - | < | ||
| - | bw list folders --raw \ | ||
| - | | jq -r '.[] | select(.id != null) | .id' \ | ||
| - | | while IFS= read -r id; do | ||
| - | bw --session " | ||
| - | done | ||
| - | </ | ||