@ball6847/ftp-deploy

Simple command-line interface for ftp-deploy

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@ball6847/ftp-deploy
Minified + gzip package size for @ball6847/ftp-deploy in KB

Readme

FTP Deploy

Build Status npm version docker image

Simple command-line interface for ftp-deploy

This project is work-in-progress.

Installation

npm install -g @ball6847/ftp-deploy

Usage

Usage: ftp-deploy [options] <local> <remote>

Options:

  -V, --version  output the version number
  -h, --help     output usage information

Example



# build your frontend app, let's say angular
ng build --prod

# deploy content of dist directory to /var/www of remote ftp server
ftp-deploy dist/ ftp://demo:demo@localhost:21/var/www

# you can use ftps if needed

Warning: above example will create remote directory if it does not exist, remove any content inside and upload all files to it

TODO

  • Add more helpful messages.
  • Add --verbose option.
  • Add --clear-target-dir option (make it safe by default).

CREDITS

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.