for nuget and choco list commands, the -pre flag should return the newest version, even if the latest is beta. When running nuget and choco against their public repos, they behave as expected, but when run against artifactory, they don't.
On an artifactory repo with these versions, I expect to get helloworld 0.1.0-beta-9; the actual was 0.0.8.
C:\> choco list helloworld -pre -all
helloworld 0.0.7
helloworld 0.0.8
helloworld 0.1.0-beta-9PS C:\> choco list helloworld -pre
helloworld 0.0.8
On a public chocolatey artifact, it works as expected:
C:\> choco list keepass-plugin-keeagent -pre -all
keepass-plugin-keeagent 0.6.3
keepass-plugin-keeagent 0.7.1.20150710-beta
keepass-plugin-keeagent 0.7.1.20151011-beta
keepass-plugin-keeagent 0.7.1-betaPS C:\> choco list keepass-plugin-keeagent -pre
keepass-plugin-keeagent 0.7.1.20151011-beta