インストール
$ npm install-D ftp-deploy-cli
初期設定
接続先サーバーの情報を入力し、ftp.config.jsを生成、
必要ならそれは.gitignoreに追加する
$ npx deploy init
? Please input host: test.com
? Please input port: 21
? Please input user: username
? Please input password: password
? Please input targetDir: /htdocs
? Please input localDir: dist
設定後の内容確認はこれ
$ npx deploy config
転送実行
$ npx deploy start