Forum Discussion

Former Member's avatar
Former Member
2 years ago

CLI 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

  • bstrautin's avatar
    bstrautin
    New 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's avatar
    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's avatar
    Former Member

    Try JSON format, i.e. op item list --format json, username should be tied to "additional_information".