1

Working on a way to pull down the latest file within an Artifactory repo. I so far have this to check for the latest file

curl -v -H 'X-JFrog-Art-Api:KEY' "Path-to/?lastModified"

Is there a way to incorporate these results with another curl command using a -o to pull it down?

JBaruch
  • 22,610
  • 5
  • 62
  • 90
  • Possible duplicate of [How can I download last artifact in Artifactory?](https://stackoverflow.com/questions/41362345/how-can-i-download-last-artifact-in-artifactory) – JBaruch Jan 17 '19 at 19:53

1 Answers1

1

Check Eyal's answer to the similar question. JFrog CLI is the easiest way:

jfrog rt dl "my-local-repo/all-my-frogs/" --sort-by=created --sort-order=desc --limit=1

JBaruch
  • 22,610
  • 5
  • 62
  • 90