Forum Discussion
CLI Slow Performance
Could you share more details about the timing issues? How long are you waiting, and what setup are you using?
In my case, the wait time is somewhere around 800ms to 1s. This is true for any read operation, eg `op item get`, `op read`, and `op inject` all take at least this long for a cached read. (Uncached can be even longer.) I'm running this from the command line on my M4 Max MacBook Pro.
There are a number of things I have wanted to do with the 1password CLI, but this ~1s latency has been a dealbreaker for all of them.
I didn't realize until this thread that the CLI talks to the 1Password API even for cached reads. This seems like a candidate for unnecessary latency?
Finally, we recently introduced a the https://developer.1password.com/docs/sdks for more performant requirements. Take a peek, this may help.
I just tried the Go and Python SDKs. Both took at least 800ms just to initialize the client, let alone read a secret.