1.2.0 • Published 4 months ago

vite-plugin-sftp-deploy v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

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

Authors

Used By

This project is used by the following companies:

1.2.0

4 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

4 months ago