Skip to content

Vaultwarden

πŸ›  Installation

Default Port: 8000

Vaultwarden

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/vaultwarden.sh)"
bash -c "$(wget -qLO - https://github.com/asylumexp/Proxmox/raw/main/ct/vaultwarden.sh)"

bw cli

(
  curl -s https://installer.l.nicholaswilde.io/bitwarden/clients! | bash
  mv /usr/local/bin/clients /usr/local/bin/bw
)

βš™ Config

Connect to self-hosted server

bw config server https://vault.l.nicholaswilde.io

Authorize via API

bw login --apikey

Task List

task: Available tasks for this project:
* decrypt:       Decrypt .env using SOPS
* enable:        Enable service
* encrypt:       Encrypt .env using SOPS
* export:        Export the task list
* init:          Init
* mklinks:       Make client symlinks
* restart:       Resart service
* start:         Start service
* status:        Service status
* stop:          Stop service
* up:            Tun Docker compose in the foreground.
* up-d:          Run Docker compose in the background.
* update:        Update running containers
* upgrade:       upgrade

πŸ“ Usage

Create Attachment

bw create attachment --file ./path/to/file --itemid 16b15b89-65b3-4639-ad2a-95052a6d8f66

Tip

If you don’t know the exact itemid you want to use, use bw get item <search-term> to return the item, including its id.

Get Attachment

bw get attachment photo.png --itemid 99ee88d2-6046-4ea7-92c2-acac464b1412 --output /Users/myaccount/Pictures/

Note

When using --output, the path must end a forward slash (/) to specify a directory or a filename (/Users/myaccount/Pictures/photo.png).

πŸ”— References