Forum Discussion

lonevvolf's avatar
lonevvolf
New Contributor
4 years ago

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

  • zcutlip's avatar
    zcutlip
    Dedicated Contributor

    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's avatar
    Jack_P_1P
    Icon for 1Password Team rank1Password Team

    Hi lonevvolf:

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

    Jack

    ref: dev/b5/op#2450

  • lonevvolf's avatar
    lonevvolf
    New Contributor

    Is there any update here on official support for backups?

  • jbyers's avatar
    jbyers
    New Contributor

    +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

  • Former Member's avatar
    Former Member

    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