2.0.9 • Published 5 years ago

easy-sftp v2.0.9

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Description

Send folders to Servers by Sftp.

Installation Guide

(sudo) npm install easy-sftp -g

Command List

chaos create <file.json>
chaos send -c <file.json>
chaos log  // View logs for three days
chaos log -t // Check the Daily Log
chaos log -r // Clear all logs

Configuration Guide

Go to the current folder:

chaos create server.json

That will create a config file:

{
  "host": "",
  "port": 22,
  "username": "root",
  "password": "",
  "pathMap": [
    {
      "localPath": "",
      "remotePath": ""
    }
  ]
}

Then configure the local address, the local address is the relative address, and the online address is the absolute address. Support multiple folder transfers.

Once configured, upload commands can be configured. Create new commands in package.json's script.

"scripts": {
  "upload": "chaos send -c server.json"
}

Then when you need to upload, execute npm run upload.

View Log

chaos log  // All Logs
chaos log -t // Today's Logs
2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago