Forum Discussion

marcelo's avatar
marcelo
New Member
1 hour ago

CLI can't fetch items by name anymore

Using the CLI (version 2.31.1), I could always reference an entry by its title, like this:

op item get 'my item' --vault Private
echo "token: {{ op://Private/my item/password }}" | op inject

This has always worked for me, but today, after adding a new item via the 1Password UI, it can only be fetched on the CLI via its ID. This is the case for every CLI command, like `item get`, `inject`, and `read`.

$ op item get 'my new item' --vault Private

[ERROR] 2026/05/12 10:10:55 "my new item" isn't an item in the "Private" vault. Specify the item with its UUID, name, or domain.

$ op item get '<item-id>' --vault Private

ID: <item-id>
Title: my new item
Vault: Private (<vault-id>)
...

It seems like neither the web UI (Chrome extension) nor the MacOS app are syncing items properly, or the CLI is not picking them up. I tried using `--cache false`, logging out and in again, but the item is still not accessible via its name.

No RepliesBe the first to reply