0

How can I download files from Artifactory . Is it possible to download using batch script . I used CURL commands to upload then on the same way please provide suggestions to download. Appreciate your help.

Balakumar Ezhilmaran
  • 773
  • 1
  • 11
  • 30
  • have you checked [***this***](http://stackoverflow.com/questions/28143160/how-can-i-download-a-file-with-batch-file-without-using-any-external-tools)? – npocmaka Mar 06 '17 at 15:46
  • Hi @npocmaka . I am trying to download it to Windows system. – Balakumar Ezhilmaran Mar 06 '17 at 16:09
  • did you use native curl or the powershell alias for curl (which is in fact HTTPRequest)? – jroquelaure Mar 06 '17 at 16:45
  • If you use native curl I guess you did curl -X POST ... then you just have to rerun same curl command without -X switch and so use the default GET verb. If you use the alias have a look to this [link](https://blog.jourdant.me/post/3-ways-to-download-files-with-powershell) – jroquelaure Mar 06 '17 at 16:51

3 Answers3

4

You can use the JFrog CLI - a compact and smart client that provides a simple interface that automates access to JFrog products. The CLI works on both Windows and Linux.
For downloading files, take a look at the command for downloading files from Artifactory. This command allows you downloading specific files, multiple files (using wildcards) or complete folders,

Dror Bereznitsky
  • 18,932
  • 3
  • 44
  • 55
1

Use GNU WGET from here - http://gnuwin32.sourceforge.net/packages/wget.htm Very small utillity and supports download percentage and alot of other options like overwriting, not download if file exists etc.

1

Hi I used the same CURL command with Ansible .But I missed to configure the remote server for Ansible .So the CURL was not working . After configuring the remote server. It was able to download Thanks a lot for the response

Balakumar Ezhilmaran
  • 773
  • 1
  • 11
  • 30