Skip to main content
Feb 12, 2022 7:32 PM UTC
Question

Seems like there would be a simple python script to lookup an item and return the password,

I've looked and nothing seems to work with current versions of ITerm2 and 1Password on Monterey. Am I just looking in the wrong place?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Referrer: forum-search:https://1password.community/search?Search=iterm2

1 reply

Mar 18, 2022 8:21 PM UTC

Hi there @mitch355

You can use a command like op get item <ITEM_NAME_OR_ID> --fields password to retrieve a Login/Password item's password field in a single command.

In the CLI v2, it would be op item get <ITEM_NAME_OR_ID> --fields password