Forum Discussion
How to programatically fetch the latest versions
To run op update I'd need to install the 1password cli first. Whereas the need is to fetch the latest version to install.
I maintain the Dorothy dotfile ecosystem which includes cross-platform installers for plenty of utilities, for the 1password cli it is here:
https://github.com/bevry/dorothy/blob/master/commands/setup-util-1password-cli
Which I'm currently using this workaround for fetching the latest CLI version:
https://github.com/bevry/dorothy/blob/master/commands/setup-util-1password-cli#L40
Dorothy also includes the secret utility which I posted about earlier here:
https://1password.community/discussion/122023/tooling-to-expose-1password-entries-as-environment-variables-for-specific-commands#latest
https://github.com/bevry/dorothy/blob/master/commands/secret