Skip to main content
Oct 12, 2022 7:43 PM UTC
Question

I installed via Brewfile with command: cask "1password/tap/1password-cli". No op in /usr/local/bin

I installed via Brewfile with command: cask "1password/tap/1password-cli". No op in /usr/local/bin

It was asking me for my sudo password. I do not have sudo. I then added
tap "1password/tap"
and it seemed to install.
Still nothing in /usr/local/bin/op

I did a
find / -name op 2>/dev/null
on the system.
No "op".


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: macOS 12.6
Browser:_ Not Provided
Referrer: forum-search:https://1password.community/search?Search=op%20not%20in%20%2Fusr%2Flocal%2Fbin

4 replies

Oct 13, 2022 1:56 PM UTC

I would like to install op in ~/bin. However, we want to brew cask install this. Is this possible?

zcutlip
Oct 14, 2022 2:33 AM UTC

You can always copy op wherever you want after installing. For example, I keep an archive of old versions for compatibility testing with. However, if you do, you won't be able to use TouchID. There's a component of 1Password.app that needs op to be at a particular path, and it has a specific entitlement that gives it permission to access it there:

console
codesign -d --entitlements - /Applications/1Password.app/Contents/Library/LoginItems/1Password\ Browser\ Helper.app
Executable=/Applications/1Password.app/Contents/Library/LoginItems/1Password Browser Helper.app/Contents/MacOS/1Password Browser Helper
[Dict]
[Key] com.apple.security.app-sandbox
[Value]
[Bool] true
[Key] com.apple.security.application-groups
[Value]
[Array]
[String] 2BUA8C4S2C.com.1password
[Key] com.apple.security.temporary-exception.files.absolute-path.read-only
[Value]
[Array]
[String] /usr/local/bin/op

zcutlip
Oct 15, 2022 1:22 AM UTC

Ah upon a closer read, I see your original problem. You do have to use 'sudo' to install it with homebrew, I'm pretty sure. I'm not sure why it didn't error or otherwise communicate that if failed to install.

1Password Employee
Nov 9, 2022 12:46 PM UTC

Yes, @zcutlip appears to be right, you should sudo install it.

@sanctior let me know how that works,
Andi