Level up your business security with free, on-demand training and certification. Explore 1Password Academy today →
Forum Discussion
flozza
10 months agoNew Contributor
Search for CLI
Hi! I'd like to request a feature: For the 1Password CLI (`op`) to support searching, just like the GUI client does. My use case: I have about 30 or so entries that I would like to add a tag to. Al...
mcky
2 months agoNew Contributor
Too late for the op but maybe this is useful for someone else
If you have fzf installed, this one liner will search and then print the content
op item get (op item list | fzf --header-lines=1 | awk '{print $1}')
- thecatfix2 months agoDedicated Contributor
op item get $(op item list | fzf --header-lines=1 | awk '{print $1}')This is AWESOME
- thecatfix2 months agoDedicated Contributor
op item get $(op item list --format json | jq -r '.[] | "\(.id) \(.title) [\(.vault.name)]"' | fzf | awk '{print $1}')For a cleaner selection interface that includes the Vault name and avoids parsing whitespace columns, use jq to format the entry before passing it to fzf.