Usage¶
This page contains examples for calling op-find-item. In these examples, Authentication is not
included, for clarity, but when calling the tool it is required that you specify an account using one of the supported
techniques.
The tool looks for the provided search term within all fields including passwords and secret fields. Search behavior uses simple "contains" semantics and, at this time, that behavior cannot be overridden; there is no support for wildcards or regular expressions.
You can restrict the vaults and fields included in the search by passing (one or multiple) --valut and --field flags.
By default, searches are case-sensitive, but they can be made case-insensitive by including the --ignore-case flag.
Basic searches¶
# Search all vaults and fields for the case-sensitive term "CheckMe"
op-find-item CheckMe
# Match regardless of casing of the search term and field values
op-find-item --ignore-case checkme
Limit the search¶
In this example, only the "Personal" and "Work" vaults are searched, and additionally only the "username" and "password" fields are considered
Note that the --vault and --field flags can be repeated.
JSON output¶
JSON output is useful for scripting. It includes the vault, item, field name, and field type, but not the field value:
Including shareable links for search results¶
Adding --include-link creates one-time share links to matching items. These links grant access to anyone who has them;
read Authentication > Sharing links before using this option.
Run op-find-item --help for all options and examples.