Exporting from Bitwarden
When managing collections and organizations, it’s useful sometimes to only export a single collection. This must be done by CLI.
bw config server https://vault.domain.com
bw login
export BW_SESSION="ABC...."
bw unlock
bw sync
bw list organizations | jq .
bw list collections --organizationid $ORG_ID | jq .
bw list items --collectionid $COLLECTION_ID > filename.json
The exported file has all items (including passkeys) except for attachments.
The json file must be properly conditioned for import. See Bitwarden’s documentation for more information.
To condition:
- Add metadata to the beginning of the file:
{
"collections": [
{
"id": "UUID",
"organizationId": "UUID",
"name": "Collection Name",
"externalId": null
}
],
"items":
- Add a single closing bracket to the end of the file:
...
}
- Import into Bitwarden/Vaultwarden as type
Bitwarden (json)