To facilitate deploying packages, it is helpful to quickly identify what the latest package version instead of manually finding the latest package version id.
I cannot find a sfdx command to install the latest package version when given a parameter, such as the package name.
For example, it would be great to do something like this:
sfdx force:package:version:list -p "Package A" -latest
Is there a helpful sfdx command to do this? It's possible to do this via a bash script etc, but would be nicer if there was a sfdx way to achieve this.