how can I covert op get items command to op item get?
We recently updated an old version of the ipassword CLI, 1.8, which recently went out of support. We used a list & get command:
op list items --categories Login --vault '' | op get item - --fields title,Owner,'Expiration Date','Architect','In Use' --format CSV > results.txt
this has worked perfectly fine for the past 2-3 years. Now when trying to update the command to support the new CLI that we just moved to, I am seeing that I need to run something similar:
op item list --categories Login --vault '' --format=json | op item get - --fields title,Owner,'Expiration Date','Architect','In Use' > results.txt
the first problem that I see is that title is no longer a support field?
[ERROR] 2024/10/30 19:51:16 unable to process element 1: "title" isn't a field in the "acctsrvc [VT]" item
I guess this is true, as I don't see title or Title listed as an object under 'Fields:' when I perform a general op item get - on all my data in the vault. What is the solution or advice here?
another issue that I see is that if I remove title to workaround the first issue, the script will run until it hits a fields entry that does not exist.
[ERROR] 2024/10/30 19:56:42 unable to process element 8: "Owner" isn't a field in the "acctsrvc [VT]" item
In the old release of the CLI, if the entry didn't exist, the script still ran, and left the result empty. Is this no longer the case?
I am looking for a solution to obtain the same results that I got before in CSV format:
title,Owner,'Expiration Date','Architect','In Use'
Can someone please provide a recommendation/
1Password Version: 2.30
Extension Version: 2.30
OS Version: Linux and
Browser: CLI