CLIv2 item get does not support field "title"

agrpcali
agrpcali
Community Member
edited October 2022 in CLI

Hi,
CLI 2.7.1 doesn't appear to support retrieving a list of titles (item names) from a vault.

In CLI1 it was possible using:
./op list items --vault "Test_vault" | ./op get item - --fields title

In CLI2 I can do it using jq:
./op item list --vault "TEST_vault" --format=json | jq --raw-output '.[].title'
or if I want UUID instead of title I can do:
./op item list --vault "TEST_vault" --format=json | jq --raw-output '.[].id'

But it would be neater to upgrade my existing scripts to CLI2 if I didn't have to change to using jq.


1Password Version: CLI 2.7.1
Extension Version: Not Provided
OS Version: Oracle Linux
Browser:_ Not Provided

Comments

This discussion has been closed.