Curl Command To Download Folder From Artifactory New! ❲VERIFIED · 2024❳
Downloading a folder from using curl is slightly more complex than downloading a single file because curl does not natively support recursive directory downloads. However, you can achieve this by using Artifactory's Retrieve Folder or Repository Archive REST API. The Core Command
You must specify a supported format using the archiveType query parameter. Supported types include zip , tar , tar.gz , and tgz . curl command to download folder from artifactory
The --include-dirs flag ensures the local output matches the repository's directory structure exactly. Summary of Options curl + Archive API JFrog CLI ( jf rt dl ) Single compressed file (zip/tar) Individual files and subfolders Recursion Handled by server Handled by client Pros No extra tools required Faster (parallel downloads), resumes failed transfers Cons Requires Artifactory Pro; server-side overhead Requires installing a separate binary REST API: - JFrog Downloading a folder from using curl is slightly
This feature must be enabled in the Artifactory General Settings under the "Administration" workspace. Supported types include zip , tar , tar
# First, install the CLI curl -fL https://getcli.jfrog.io/v2-jf | sh # Use the download command ./jf rt dl "example-repo-local/my-folder/" --include-dirs Use code with caution.