Forum Discussion

melorama's avatar
melorama
Occasional Contributor
8 months ago

Importing multiple files as separate vault items?

I have a lot of PDF files that I want to import into a 1Password vault as separate, discrete vault items. But when I drag multiple files into my 1Password vault from the Finder, it insists on creating a single vault item with all of the selected files added as an attachment to the same vault item:

This is not what I want. I want each file to be imported as a separate item, with the name of the vault item matching the name of the imported file. Is there a way to accomplish this (even using the CLI tool)?


1Password Version: 8.10.56
Extension Version: Not Provided
OS Version: macOS Sequoia
Browser: Not Provided

3 Replies

  • I'm glad that you were able to find a workaround using the 1Password CLI. 🙂

    -Dave

  • melorama's avatar
    melorama
    Occasional Contributor

    1P_Dave Thanks for the reply. Shortly after I posted this question, I ended up writing a Bash script using 1PW CLI to do just that:

    https://github.com/melmatsuoka/1Password-file-attachment-downloader

  • Hello melorama! 👋

    Thank you for reaching out. Dragging multiple files into the 1Password desktop app will indeed create a single Document item where every item but the first is added as a file attachment.

    Although I haven't tried this myself, you might be able to create a script using the 1Password CLI that loops through a folder and creates Document items for all files in that folder. You can read more here:

    I hope that helps!

    -Dave

    ref: PB-45395491