ZX: latest

zx latest PackageID

Query the latest version of a package indicated by the PackageID.

Similar to "list versions", this command expects a partial or omitted version segment, though it will return a result if PackageID exactly matches an existing package version:

ceverett@takoyaki:~$ zx latest example_realm-hello_world
2.0.0
ceverett@takoyaki:~$ zx latest example_realm-hello_world-1
1.1.1
ceverett@takoyaki:~$ 

This command returns nothing in the case a version match is not found and sets the exit status to 1:

ceverett@takoyaki:~$ zx latest example_realm-hello_world-5
ceverett@takoyaki:~$ echo $?
1
ceverett@takoyaki:~$