Socket
Socket
Sign inDemoInstall

vite-plugin-sftp-deploy

Package Overview
Dependencies
4
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vite-plugin-sftp-deploy

SFTP uploader plugin to deploy the project trough SSH


Version published
Weekly downloads
0
Maintainers
1
Install size
1.87 MB
Created
Weekly downloads
 

Readme

Source

SFTP Vite Deploy

A Vite plugin that allows you to automatically deploy your project to your SFTP server using NodeSSH

Installation

with npm

  npm install vite-plugin-sftp-deploy -D

with pnpm

  pnpm install vite-plugin-sftp-deploy -D

Example

import UploadToSFTP from 'ssh-vite-deploy';

// https://vitejs.dev/config/
export default defineConfig({

  plugins: [
    react(),
    UploadToSFTP({
      host: 'sftp.example.com',
      username: 'test',
      password: 'supersecurepassword',
      port: 22,
      remotePath: 'www',
      localPath: process.cwd() + '/dist',
      verbose: true
    })
  ],
})

Variables

ParameterTypeDescription
hoststringRequired. The SSH server host url
usernamestringRequired. The SSH username
passwordstringRequired. The SSH password
remotePathstringRequired. The SSH remote path to put the files
localPathstringThe local path to grab the files (Default: process.cwd() + 'dist')
portnumberThe SSH server port (Default: 22)
verbosebooleanShow all logs (Default: false)

Acknowledgements

  • NodeSSH

Authors

Used By

This project is used by the following companies:

Keywords

FAQs

Last updated on 05 Jan 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc