Skip to main content
lonevvolf
May 16, 2022
Question

Feature Request: CLI Export

  • May 16, 2022
  • 8 replies
  • 739 views

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

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

October 18, 2022

+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
October 26, 2022

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
November 11, 2022

Thanks for the feedback!

lonevvolf
lonevvolfAuthor
December 1, 2022

Is there any update here on official support for backups?

Jack_P_1P
1Password Employee
December 13, 2022

Hi @lonevvolf:

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

Jack

ref: dev/b5/op#2450

zcutlip
March 2, 2023

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
March 2, 2023

Hi @zcutlip:

Thanks for sharing!

Jack