Skip to content

A Cake add-on to upload/download/list/delete files on a SFTP Server

License

Notifications You must be signed in to change notification settings

cake-contrib/Cake.SFTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cake.SFTP

Version NuGet download count License: MIT

A Cake add-on to upload/download/list/delete files on a SFTP Server

This add-on uses the excellent SSH.NET package (see https://github.com/sshnet/SSH.NET/)

Usage

Include an Add-In directive

#addin "nuget:?package=Cake.SFTP&loaddependencies=true"

Upload Task Example

Task("UploadToSFTP")
    .IsDependentOn("CreateInstaller")
    .Does(() =>
{    
    var settings = new SFTPSettings
    {
        UserName = "someUserName",
        Password = "somePassword",
        Host = "192.168.1.100",
        Port = 22
    };

    SFTPUploadFile(settings, "somefile.txt", "uploads/somefile.txt");
});

See Cake Add-On page for more info

https://cakebuild.net/extensions/cake-sftp/

About

A Cake add-on to upload/download/list/delete files on a SFTP Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages