This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# This script will pull all of your vault 'items' using the 'bw list items' command and then it will compare | |
# all properties that are not inherently unique from the returned JSON to determine if they are duplicates. | |
# Note: It removes older duplicates first - the newest copy of the 'item' will be the only one to remain. | |
# You can simply flip the '>' sign to '<' if you want to preserve the oldest 'item' instead. | |
# | |
# Setup Steps | |
# 1. You must install Bitwarden CLI first: https://bitwarden.com/help/cli/#download-and-install | |
# 2. Login to the CLI with the 'bw login' command. You need your session key setup before continuing: https://bitwarden.com/help/cli/#using-a-session-key |