0.1.4 • Published 5 years ago

auto-sftp v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

auto-sftp

编写 sftp 配置文件,自动上传本地文件到服务器

安装

yarn add auto-sftp -D
// 或
npx sftp u

(npx comes with npm 5.2+ and higher, see instructions for older npm versions)

配置 sftprc.json

{
  "test": [
    {
      "sftp": {
        "host": "",
        "post": 22,
        "username": "",
        "password": "",
        "privateKey": "",
        "passphrase": ""
      },
      "filesPath": [
        {
          "local": "./example/static",
          "remote": "/remote",
          "mode": "all"
        }
      ]
    }
  ],
  "prod": []
}

mode: all / onlyFile

TODO

-[] 优化上传打印信息,按文件类型区分

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago