Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
XIII
4 years agoSuper Contributor
[53, 54] Can I use purpose or id in the item get --fields?
I want to have a safe way to extract the username (and password) from credentials using item get --fields :
https://developer.1password.com/docs/cli/reference/management-commands/item
Unfortun...
Former Member
4 years agoOh, it seems that I misunderstood you here. My answer was related to editing items more granularly, while your question actually is related to filtering fields on different attributes.
While filtering on PURPOSE and ID is definitely on the roadmap, there are a couple of ways to achieve this in the current version of the CLI too.
For example op read op://<your-vault>/<your-item>/<your-field> accepts both names and IDs, while op item get --fields <field-id> should be able to retrieve a field by UUID as well. However, this are only workarounds, and we are working towards developing a more user-friendly way to do this.
Does this help in your use case? Do you have any specific suggestions towards how you would like this functionality to be integrated in the CLI?
Best,
Horia