CLI: "op vault list --format=json" - description missing

knowunitystoeppke
knowunitystoeppke
Community Member
edited November 2023 in CLI

About

When using the 1Password CLI, the op vault list --format=json command does not return the description field. This is a problem when trying to automate the creation/gathering of vaults.
The op group list --format=json command does return the description field, so it seems like a bug.

version

op --version
2.23.0

Working cli arg - group

running

op group list --format=json

return

A description is included (and a created_at field)
[{"id":"123asd123asd123asd","name":"Recovery","description":"Can reset user passwords if account recovery is enabled.","state":"ACTIVE","created_at":"2000-01-01T01:01:01Z"}]

Not working

Running

op vault list --format=json

return

description is missing
[{"id":"123asd123asd123asd","name":"Office","content_version":1}]

expected (minimum)

the description could be included / is missing (assumed one is set, like in this example)
[{"id":"123asd123asd123asd","name":"Office","content_version":1,"description":"all office related items"}]

expected (verbose)

Would be nice to have whatever easy accessible fields are available too
[{"id":"123asd123asd123asd","name":"Office","content_version":1,"description":"all office related items","created_at":"2000-01-01T01:01:01Z","updated_at":"2000-01-01T01:01:01Z"}]

This discussion has been closed.