Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
2 years agoCLI Search for Username
I'm trying to setup automation to fetch and save passwords to 1Password, however, I don't seem to see any way to find an Item by username other than to individually query each item in the list. I expected to be able to use the list function, but it doesn't return the username, only the title, so its not useful. Is there a proper way to find an Item by username?
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided
3 Replies
- bstrautinNew Contributor
op item list --format json
takes ~12 seconds to run (returning ~1200 items), which is annoyingly long in an interactive context.I would love to be able to type
op item search "whatever"
and have it return the same results as a GUI search for "whatever". - Former Member
The package I was using didn't expose that property. I've now switched to using Connect as its much faster, and will work better for what we need anyway.
- Former Member
Try JSON format, i.e.
op item list --format json
, username should be tied to "additional_information".