Skip to content

Instantly share code, notes, and snippets.

@zvyn
zvyn / readme.md
Last active January 26, 2024 22:31

These utils help to generate a JSON file to import all passwords from password-store into Vaultwarden / Bitwarden.

Steps that worked for me:

  1. follow the "Export from password-store" part in https://www.amoradi.org/20210728132516.html
  2. Install the bitwarden command line client and authenticate
  3. Run fids = get_folder_id_map(<path>) and make sure you keep the result somewhere (I just had a ipython session to do all this)
  4. Create a JSON-Exort in Vault-/Bitwarden
  5. Load the export into Python, replace items with list(gen_items(<path>, fids)), json.dump the result to disk
  6. Load the created file into Vault-/Bitwarden