Skip to main content
lonevvolf
May 16, 2022 7:54 AM UTC
Question

Feature Request: CLI Export

The 1Password Desktop application offers an Export option right on the top level menu. There are multiple questions on the forums here and elsewhere asking about export/backup of vaults via the CLI. Would it be possible to add a full export command to the CLI?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

8 replies

May 16, 2022 2:52 PM UTC

Thank you for your suggestion.

I've just opened an internal ticket for adding the Export functionality in the CLI as well.

I'll make sure to keep this thread updated with any developments on this issue.

Best,
Horia

Oct 18, 2022 11:31 AM UTC

+1 for this feature. It seems fundamental for automated backups without a brittle iterate-through-items script.

In case it's useful for the internal ticket, this has been requested before:

https://1password.community/discussion/108310/any-way-to-export-data-from-cli-tool
https://1password.community/discussion/110844/export-all-entries-of-1password-via-command-line

zcutlip
Oct 26, 2022 3:01 AM UTC

If you're comfortable doing this programmatically via Python, I think it would be easy to do with my project, pyonepassword.

I've added a GitHub issue:
https://github.com/zcutlip/pyonepassword/issues/47

1Password Employee
Nov 11, 2022 3:09 PM UTC

Thanks for the feedback!

lonevvolf
lonevvolfAuthor
Dec 1, 2022 7:37 AM UTC

Is there any update here on official support for backups?

Jack_P_1P
1Password Employee
1Password Employee
Dec 13, 2022 11:16 PM UTC

Hi @lonevvolf:

Nothing to share just yet. Please keep an eye out for future updates.

Jack

ref: dev/b5/op#2450

zcutlip
Mar 2, 2023 7:36 PM UTC

I know this is an old thread, but I've recently added a utility script to pyonepassword that dumps all items. I needed it to diagnose some issues, but I added it to the project in case it's useful for anyone, either directly or as an example.

It dumps items in a directory structure organized by Vault ID, and the items are named <item ID>.json.

You can find it here:
https://github.com/zcutlip/pyonepassword/blob/main/scripts/dump_all.py

cheers,
Zach

Jack_P_1P
1Password Employee
1Password Employee
Mar 2, 2023 11:03 PM UTC

Hi @zcutlip:

Thanks for sharing!

Jack