Socket
Book a DemoInstallSign in
Socket

publish-sftp-extend

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

publish-sftp-extend

publish, sftp, ssh2, ssh, client

1.0.2
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

publish-sftp

One-line command to quickly publish resources to a specified server.

install

    sudo npm i publish-sftp -g
    sudo npm link publish-sftp

tips

当前目录下需要提供一份 sftp.json

{
    "localPath": "./dist",
    "remotePath": "/export/App/xxx",
    "protectedRemotePath": "/export/App/xxx",
    "connect": {
        "host": "xxx.xxx.xxx.xx",
        "port": 22,
        "username": "root",
        "password": "123456"
    }
}

example

image

复制 localPath 下所有文件到 remotePath/xjx/test, -c 参数为空则是复制到 remotePath, 远程目录不存在会先创建

copy

复制 localPath 下所有文件到 remotePath 目录下, 如果 xxx 有值则是复制到 ${remotePath}/${xxx} 目录

publish-sftp -c xxx

remove

删除 remotePath 目录, 如果 xxx 有值则是删除 ${remotePath}/${xxx} 目录

publish-sftp -r xxx

config

指定配置文件

publish-sftp -f xxx

FAQs

Package last updated on 08 Sep 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.