Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get the latest version of a package in CLI? #72

Open
ktalebian opened this issue Apr 11, 2019 · 3 comments
Open

How can I get the latest version of a package in CLI? #72

ktalebian opened this issue Apr 11, 2019 · 3 comments

Comments

@ktalebian
Copy link

Running opm search durpina gives

➜ opm search durpina   
slact/durpina                                     Dynamic Upstream Reversy Proxying wIth Nice API

Let's say I have this package installed, and I'm just interested to know what is latest or all available versions of this package. How do I get that information via command-line?

@ktalebian
Copy link
Author

@ktalebian
Copy link
Author

Opening this again, because the API is not returning the latest, but rather a version found. For example https://opm.openresty.org/api/pkg/exists?account=openresty&name=lua-resty-lrucache; 0.04 is not the latest version

@ktalebian ktalebian reopened this Apr 12, 2019
@ktalebian
Copy link
Author

For now, I'm recursively using https://opm.openresty.org/api/pkg/exists?account={}&name={}&op=gt&version={} endpoint because this will always show one version greater than the given version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant