upyun-upload

1.0.1 • Public • Published

upyun-upload

  • command line tool to upload files to upyun

Usage

 Usage: upyun-upload [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -c, --config [config]  config file
    -v, --verbose          verbose

touch a config.js

 
module.exports = {
  operator: 'your operator',
  password: 'your password',
  tasks: [{
    prefix: 'static/', // upload path prefix
    endpoint: '',
    bucket: 'your bucket',
    directory: 'your directory',
    rename: (origin) => {
      // optional
    }
  }]
}
 

run with upyun-upload -c config.js

License

MIT

Package Sidebar

Install

npm i upyun-upload

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • coderhaoxin