Signing back into the Community for the first time? You'll need to reset your password to access your account.  Find out more.

Forum Discussion

Former Member's avatar
Former Member
2 years ago

CLI 2.15 onwards slow to edit an item

I am seeing much slower item edits when using a CLI version above 2.14.0. We could do with updating to a later version of CLI but can't if it is considerably slower than the 2.14.0 we're currently on.

This is the command I'm using to update a password in an item as part of a Linux shell script:

op item edit "$ITEM_NAME" --vault "$VAULT_NAME" password="$NEW_PASSWORD"

It takes 2 secs on CLI2.14.0 and 9 secs on 2.19.
I also tried 2.17 which is similarly slow.


1Password Version: CLI 2.19
Extension Version: Not Provided
OS Version: Linux
Browser: Not Provided

  • Former Member's avatar
    Former Member

    We have tried with and without --cache, both slow. It seems to be doing cache stuff regardless.
    In debug mode we can see that there is a several seconds pause after it says "SetAllVaults: successfully cached all vaults"

    ...
    12:51PM | DEBUG | InitDefaultCache: successfully initialized cache
    12:51PM | DEBUG | EncryptedKeysets: Cache hit on keyset
    12:51PM | DEBUG | AllVaults: cache hit on vault z24xvdwzinnbn673rzagbgdyuy
    ...
    12:51PM | DEBUG | SetAllVaults: successfully cached all vaults

    12:51PM | DEBUG | VaultItems: cache hit on vault items of vault xodbxwwrlucdjtqs5jnas7amjq
    ...