0.0.5 • Published 7 years ago

lysftp v0.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

lyftp

ftp文件上传

使用

{
    "host": "127.0.0.1",
    "port": 34222,
    "username": "dev",
    "remotePath": "webApp/",
    "privateKey": "/Users/xxx/.ssh/key",
    "upload": {
        "dev": ["dist/"],
        "index": ["index.php"],
        "router": ["router.php"]
    }
}

在工程文件夹内添加一个.sftprc的json配置文件,配置如上,说明如下

key说明
host服务器地址
port端口
user用户名
privateKeyssh key
remotePath服务器文件夹
upload上传文件配置,如上lysftp chat 会上传指定的两个文件/文件夹

上传

被上传的文件/文件夹路径,需要是相对.sftprc的相对路径或者是一个绝对路径

命令行上传

lysftp dev

命令行指定文件/文件夹

lysftp --files wptFtp/not/test/a.txt wptFtp/not/test2/
0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago