ARTIFACTORY: How can I download folders with their content from a repository?

AuthorFullName__c
Elina Floim Alper
articleNumber
000005402
FirstPublishedDate
2022-09-08T16:22:59Z
lastModifiedDate
2025-05-15

ARTIFACTORY: How can I download folders with their content from a repository?


In order to download a folder from a repository, we can either use REST API or the JFROG CLI as follows:


REST API:

We can use the Retrieve Folder or Repository Archive REST API, which allows us to download the content of a folder as an archive file. The supported archive types are 'zip','tar','tar.gz', and 'tgz'. The archiveType=<type> query parameter is required in the URL. 


JFrog CLI:

We can use the JFrog CLI to download folders as folders and not necessarily as archive files such as in the above REST API. The download command should look similar to this:

$ jfrog rt dl example-repo-local/amd-64/ --include-dirs

This command will download the content of the amd-64 folder from the example-repo-local repository and will save it under the same structure locally on the machine.