Administration
Work with API

Import from Bitwarden

10min

You can import Bitwarden JSON files into Passwork via API. Run import.js script and follow the instructions.

Document image


TOTP codes must be valid, otherwise the script will terminate with an error

Configure and run (DEB architecture)

  • Get root privileges and update the local package database:
Shell

  • Install Node.js and npm:
Shell


Node.js version must be 17 or higher

  • Check the installed version:
Shell

  • Install modules for importing:
Shell

  • Create the import script — import.js

Source code of import.js:

Shell

  • Create an .env file and specify the Passwork host, the user's API key and its master password:
Shell

  • Load the Bitwarden XML file and run the script. The script will ask for the name of the file:
Shell

  • You can also pass these parameters as arguments to the script:
Shell