How to Getting previous versions of items? use CLI or API？thanks
1Password Version: Not ProvidedExtension Version: Not ProvidedOS Version: Not ProvidedSync Type: Not Provided
Hey @ljc6386613 ,
Previous versions of items can be recovered via our web app: https://support.1password.com/item-history/
If you're in a teams account: https://support.1password.com/item-history-teams/
@ag_yaron thanks for the reply,we expect query the Previous versions of items in script, may i ask how to do it in CLI,thanks
The CLI does not support reviewing previous versions of items. Everything the CLI can do is documented here: https://support.1password.com/command-line-reference/
If you can elaborate on your use case, I'll forward it to the team as a feature request (if feasible).
my use case ,we have a team account ,we plan to use a script to get the old password (previous versions) and the new password stored in 1pass for linux servers when the password changed.
and integrate with our automatic password change script.
Thanks for the additional information @ljc6386613 .
I'll forward it to the development team so they can investigate the use case and see if this is something we can/should implement
It seems that there's no need to get previous versions of the item itself to retrieve previous passwords, as they are already logged in the current item. If you do op get item <UUID> , you will get all the information of the item, including previous passwords of it. You can parse that and get the current and previous password(s) you need.
op get item <UUID>