Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
2 years ago1password8 error when trying cli "op" derived from Homebrew on a M1 Mac
Hi, there
I installed the 1password from Homebrew following this guide (https://developer.1password.com/docs/cli/get-started/). I use the latest 1password8 desktop app on my M1 Mac with Sonoma 14....
Former Member
2 years agoI also get this error when using op
. It only occurs on the first auth-required call (e.g. op vault ls
). The first call returns that error. Subsequent calls work just fine for me, with the system's touch ID prompt appearing. After a timeout, it seems the CLI -> app integration drops again, and I get the same error once again.
I'm on an M1 Mac, and https://docs.brew.sh/Installation under /opt/homebrew
on my machine. I can manually link the installation under /usr/local/bin
, but this is not the default behavior for Homebrew on my machine and is not mentioned in the https://developer.1password.com/docs/cli/get-started/. Moreover, Homebrew inserts its binary directory before /usr/local/bin
in the PATH
, and reversing that change would break many other Homebrew-installed applications, so I would have to use the full path /usr/local/bin/op
every time I want to invoke op
.
Homebrew PATH
changes:
```
% grep opt .zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
% /opt/homebrew/bin/brew shellenv | grep "export PATH"
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}";
```
My 1Password app is at version 1Password for Mac 8.10.16 (81016047)
and the CLI is 2.21.0
.