
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
sftp-deployer
Advanced tools
A command-line tool for lightning-fast SFTP deployments.
You need Node.JS to use sftp-deployer
.
npm install -g sftp-deployer
The following command uploads the contents of the ./build
directory to a remote SSH host, to /var/www/build
:
sftp-deployer --host example.com \
--user bob \
--key private_key.pem \
--local ./build \
--target /var/www/build
Available options:
-V, --version output the version number
-h, --host <host> hostname to connect to
-p, --port <port> SSH port to use (defaults to 22)
-u, --user <username> the ssh username
-k, --key <key_or_file> path to private key file, or private key itself
-l, --local <path> directory to upload
-t, --target <target_dir> target directory on remote host
-s, --staging <staging_dir> staging directory on remote host
(defaults to the target directory + .staging)
-u, --upload <upload_dir> upload directory on remote host (default: "/var/tmp")
--help display help for command
Each of the options listed above may also be specified in a configuration file called .sftp.json
. For example:
{
"host": "example.com",
"port": 1234, /* Optional, defaults to 22 */
"user": "bob"
"key": "private_key.pem"
"local": "./build",
"target": "/var/www/build",
"staging": "/var/www/incoming/uploads", /* Optional, defaults to target directory + .staging */
"upload": "/my/upload/dir" /* Optional, defaults to /var/tmp */
}
You may then simply invoke sftp-deployer
and it will take its input from the .sftp.json
file in the current working directory.
When a directory is uploaded but a target directory already exists, the following steps are taken to minimize downtime:
This makes sure that the target directory is only down for a couple of milliseconds.
FAQs
A command-line tool for lightning-fast SFTP deployments
The npm package sftp-deployer receives a total of 1 weekly downloads. As such, sftp-deployer popularity was classified as not popular.
We found that sftp-deployer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.