Cake.Curl

A cross-platform add-in for Cake that allows to transfer files to and from remote URLs using curl.

#addin nuget:?package=Cake.Curl&version=4.1.0

<package id="Cake.Curl" version="4.1.0" />

dotnet add package Cake.Curl --version 4.1.0

<PackageReference Include="Cake.Curl" Version="4.1.0" />

Aliases

Contains aliases related to curl.

In order to use the commands for this add-in, a version of curl will need to be installed on the machine where the Cake script is being executed. While curl is usually included in most Unix-based operating systems, you will likely have to install it yourself on Windows. The Windows version of curl is also part of Cygwin.

#addin Cake.Curl

General

CurlDownloadFile(ICakeContext, Uri) Downloads the file from the specified remote URL to the working directory.
CurlDownloadFile(ICakeContext, Uri, CurlDownloadSettings) Downloads the file from the specified remote URL.
CurlDownloadFiles(ICakeContext, IEnumerable<Uri>) Downloads the files from the specified remote URLs to the working directory.
CurlDownloadFiles(ICakeContext, IEnumerable<Uri>, CurlDownloadSettings) Downloads the files from the specified remote URLs.
CurlUploadFile(ICakeContext, FilePath, Uri) Uploads the specified file to a remote host using the specified URL.
CurlUploadFile(ICakeContext, FilePath, Uri, CurlSettings) Uploads the specified file to a remote host using the specified URL.