gulp-sftp ![Build Status](https://camo.githubusercontent.com/c36d1a4b2806f2feae3509ef7c482ea5416acaa606abf953fc66fe81432fcb71/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f73696e647265736f726875732f67756c702d6674702e706e673f6272616e63683d6d6173746572)
Upload files to via SSH
Useful for uploading and deploying things.
Install with npm
npm install --save-dev gulp-sftp
var gulp = require('gulp');
var sftp = require('gulp-sftp');
gulp.task('default', function () {
gulp.src('src/*')
.pipe(sftp({
host: 'website.com',
user: 'johndoe',
pass: '1234'
}));
});
Required
Type: String
Type: Number
Default: 22
Type: String
Default: 'anonymous'
Type: String
Default: '@anonymous'
Type: String
Default: '/'
The remote path to upload too.
Type: String
Default '.'
The local path to upload from. This is useful for example when you use
gulp.src('_public/js/*').pipe({remotePath: '/www/some/path'});
And you want the contents of _public/js
to be uploaded to
/www/some/path
, but not _public/js
itself. Then you just set
localPath
to _public/js
and you are done.
Type: Boolean
Default: true
Logging of files as they are uploaded. If set to false, you will only see a message when all files finished.
MIT © Sindre Sorhus