0.0.4 • Published 5 years ago

@secretboy/movetos3 v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@secretboy/movetos3

v0.0.4

Move your files from folder to S3 with ease.

Installation

$ npm i -g @secretboy/movetos3

Usage

$ mts -d .

Command line options

OptionDescriptiontyperequireddefault
-d --dirDirectory to upload files from.stringtruenone
-r --recursiveRecursively scan the dir to upload all files.switchfalseoff
-c --config-filePath to config.json file.stringfalsenone
-u --uploadUpload files after scanning.switchfalseoff
-l --listList files.switchfalseoff
-a --append-random-stringAppend random strings to filenames before uploading.switchfalseoff

config.json

config.json file is required when you enable the upload switch.

{
  "accessKey": "",
  "secretKey": "",
  "bucketName": ""
}

Example usage

# View help
$ mts
# or
$ mts -h
# or
$ mts --help

# check version
$ mts -V
# or
$ mts --version

# List files in current directory.
$ mts -d . -l

# List files from current directory recursively.
$ mts -d . -lr

# Upload files from current directory non-recursively.
$ mts -d . -lu -c config.json
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago