1password-export/README.md
2019-10-24 12:34:05 +03:00

914 B

Export 1password logins to csv

1password hasn't tool to export data at Linux. But is has command line client, which you can use to fetch all data.

Requirements:

  • 1password command line client (op)
  • Python 3
  • tar, gpg (for encryption) binaries

First login with op client. It exports session key to environment variables. More details signin.

$ eval $(op signin my)

Next run script

$ python3 1export.py <file-name>

If you want encrypt exported data, pass --password argument

$ python3 1export.py --password <password> <file-name> 	

All together in one line:

$ eval $(op signin my); python3 1export.py --password <password> "/home/av/Dropbox/1password-$(date '+%Y-%m-%d')"