Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoHow to programatically fetch the latest versions
Would be great if https://app-updates.agilebits.com/ was available in JSON format
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
- Former Member
Hey @balupton ,
Have you checked out the
op update
command? It can be used to download the latest update, if availalble.Also, what OS(es) are you running? For Mac and Linux, we do host our client on some repos as well.
- Former Member
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://github.com/bevry/dorothy/blob/master/commands/secret
- Former Member
Ahh, thanks for clarifying your usecase @balupton ,
I think I have just the endpoint for you - supply the current build number and whether or not you are interested in betas or not and the response will return a JSON response containing the latest version to update to.
Here is the GET endpoint:
https://app-updates.agilebits.com/check/1/0/CLI2/en/{BUILD_NUMBER}/{Y or N for beta}
Our build number is in the format of:
Mmmppbb
sov2.0.0-01
would be represented by2000001
.So to get the latest stable v2.x.x version number, one could call the endpoint using 2.0.0-0-1, the earliest v2 version:
https://app-updates.agilebits.com/check/1/0/CLI2/en/2000001/N
The response should look something like:
{"available":"1","version":"2.1.0","relnotes":"https://app-updates.agilebits.com/relnotes/CLI2/en/2/2010001"}
You can then parse the
"version"
value and interpolate it into our download links, that can be platform dependent, which you can see at https://app-updates.agilebits.com/product_history/CLI2Hope this helps!
- XIIITrusted Contributor
This is really nice.
Anyone willing to write a script that generates an RSS feed based on this?
(I have an idea how to do this, but don't have the time right now)
- XIIITrusted Contributor
Are there similar endpoints for the other 1Password products?
If so, what are they? (Which strings instead of CLI?)
- Former Member
This one worked for the Windows client:
https://app-updates.agilebits.com/check/1/0/OPW6/en/821/Y
You can see the build numbers here: https://app-updates.agilebits.com/product_history/OPW6
It's funny we refer to it as
OPW6
but I believe that is a misnomer as the official latest releases are OPW7 as you can see when navigating to the site.Funnily enough it did not work for the Mac Client following similar logic:
https://app-updates.agilebits.com/check/1/0/OPM7/en/70903003/Y
For some other clients, and even the server, you can check out this site: https://app-updates.agilebits.com/
- XIIITrusted Contributor
I found some links for released versions that can easily be converted to an RSS feed (based on the
article
tag):
* 1Password for Mac 7: https://app-updates.agilebits.com/product_history/OPM7
* 1Password for Windows 7: https://app-updates.agilebits.com/product_history/OPW6
* 1Password for iOS 7: https://app-updates.agilebits.com/product_history/OPI4
* 1Password CLI 2: https://app-updates.agilebits.com/product_history/CLI2
* 1Password Browser Extension: https://app-updates.agilebits.com/product_history/B5XUnfortunately I'm not interested in v7 updates, but v8 updates.
They seem to have no clean release notes, but only this?
- 1Password for Mac 8: https://releases.1password.com/mac/
- 1Password for Windows 8: https://releases.1password.com/windows/
- 1Password for iOS 8: https://releases.1password.com/ios/
- XIIITrusted Contributor
This newer type of release notes is also available for the browser:
- 1Password Browser Extension: https://releases.1password.com/b5x/
This means only the CLI (v2) is missing (and the web).
Would be nice if everything had the same (new) format...
- Former Member
Thank you all for the feedback here!
I'm opening an internal issue for tracking the creation of an RSS feed.
Will let you know how this progresses!
Best,
Horia - 1P_Dave
Moderator
I wanted to share that the team has recently updated our RSS feeds for releases.1password.com to be more granular. Take a look:
- https://releases.1password.com/index.xml
- https://releases.1password.com/mac/index.xml
- https://releases.1password.com/mac/beta/index.xml
- https://releases.1password.com/mac/8.10/index.xml
- etc. across each of the clients shown on releases.1password.com
If you have any feedback or would like to see more features added then let me know and I can pass that along to the team. 🙂
-Dave