gulp-scp3 v1.0.0

Modern SCP deployment for Gulp 4/5+ (Node >=20)
Secure file uploads via SSH2 with password & privateKey support

Install
npm install gulp-scp3 --save-dev
Usage
📱 ESM / CommonJS
import gulp from "gulp";
import scp from "gulp-scp3";
export default () =>
gulp.src("dist/**/*").pipe(
scp({
host: "your-server.com",
username: "deploy",
dest: "/var/www/app/",
privateKey: "./id_rsa",
passphrase: "keypass123",
}),
);
const gulp = require("gulp");
const scp = require("gulp-scp3");
gulp.task("deploy", () =>
gulp.src("**/*.js").pipe(
scp({
host: "192.168.1.100",
port: 22,
username: "user",
password: "pass",
dest: "/home/user/app/",
}),
),
);
🔧 Options
host | String | localhost | Server hostname/IP |
port | Number | 22 | SSH port 🆕 |
username | String | admin | SSH username |
password | String | - | Password auth ✅ legacy |
privateKey | String | - | Path to private key 🆕 |
passphrase | String | - | Key passphrase 🆕 |
dest | String | /home/[username] | Remote destination |
🧪 Tests
npm test
📁 Repository

👨💻 Author
Jhonatan Villanueva
💝 Support
📄 License
MIT © jinvillaz
options.host
Type: String
Default value: localhost
A string value that is the host of the server.
options.port
Type: Number
Default value: 22
The ssh port of the server.
Note this option wasn't tested.
options.username
Type: String
Default value: admin
The username of the server.
options.password
Type: String
The password of the user on the remote server.
options.dest
Type: String
Default value: /home/username
Remote server directory
Repository
gulp-scp3
Author
Jhonatan Villanueva
Thanks for your donation
If you want to support this free project. Any help is welcome. You can donate by clicking one of the following links:

LISENCE
Copyright (c) 2019 jinvillaz. Licensed under the MIT license.