Skip to main content
March 15, 2022
Question

When will CLI 2.0 be on Homebrew

  • March 15, 2022
  • 14 replies
  • 893 views

Before using the CLI 2.0 beta I had the CLI https://formulae.brew.sh/cask/1password-cli#default. I'd like to be able to use that install method again. When will the 2.0 version be there? I feel like this may have been an unofficial install method as well, which lends to asking, will you be officially releasing the 1Password CLI via Homebrew?


1Password Version: 8.6.0-81.BETA
Extension Version: 2.3.0
OS Version: macOS 12.3 (21E230)

14 replies

March 15, 2022

Hey @alexclst 👋 https://developer.1password.com/docs/cli/get-started#install and I think you'll be pleasantly surprised at the new install methods we're now supporting officially 😄

March 15, 2022

Awesome. Thanks.

March 15, 2022

You're welcome @alexclst! Adding more installers for CLI was a top priority for us to include in this launch so I'm happy to hear they'll be put to good use 😄

XIII
March 15, 2022

Maybe I misunderstood, but for me Homebrew still installs 1.12.4 instead of 2.0.0 😢

March 15, 2022

@XIII Have you tried using brew install --cask 1password/tap/1password-cli https://developer.1password.com/docs/cli/get-started#install? I was doing a final test of yesterday and didn't run into any issues!

XIII
March 15, 2022

Yes I did, but Homebrew downloaded this: https://cache.agilebits.com/dist/1P/op/pkg/v1.12.4/op_apple_universal_v1.12.4.pk

I just tried again and now it downloaded this instead: https://cache.agilebits.com/dist/1P/op2/pkg/v2.0.0/op_apple_universal_v2.0.0.pkg

Success:


🍺 1password-cli was successfully installed!
➜ op --version
2.0.0

March 15, 2022

@XIII I'm glad to see it's working for you 😄

March 16, 2022

I am having an interesting issue:
I run brew update / brew upgrade - homebrew does nothing with the CLI (leaves me on 1.12.4)
I run brew remove 1password-cli
Then brew install --cask 1password/tap/1password-cli - that installs 2.0.0
Then I run brew update - I get "Already up-to-date." as a response
I run brew upgrade (because "why not") and brew removes 2.0.0 and installs 1.12.4

XIII
March 16, 2022

I seem to be suffering from the same as @MatthewPackwood, because after todays Homebrew update I get this:


➜ op --version
1.12.4

😢

(does explain why all my automation is broken today...)

Reproducible:


➜ brew update
Already up-to-date.
➜ brew upgrade
==> Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
1password-cli 2.0.0 -> 1.12.4
==> Upgrading 1password-cli
==> Downloading https://cache.agilebits.com/dist/1P/op/pkg/v1.12.4/op_apple_universal_v1.12.4.pkg

March 16, 2022

Hi folks, we are going to look into why brew upgrade defaults to the https://github.com/Homebrew/homebrew-cask/blob/master/Casks/1password-cli.rb even though it's been installed by our https://github.com/1Password/homebrew-tap.

For the meantime, it looks like the downgrading issue should have been mitigated due to the https://github.com/Homebrew/homebrew-cask/pull/120540/files.