Skip to content

Instantly share code, notes, and snippets.

@thanhph111
thanhph111 / README.md
Last active June 18, 2025 06:05
Batch add recovery codes to 1Password #guide

Batch add recovery codes to 1Password

You want to store your recovery codes to 1Password after setting up one-time password but too lazy to add them manually? Here is the script to automatically do that using 1Password CLI.

  1. First, you need to install 1Password CLI.
  2. Then store your recovery codes line by line in a file named the item ID you want to add, you can find the ID of the item with this command:
op item list