2.1.0 • Published 3 months ago

ali-oss-upload-cli v2.1.0

Weekly downloads
19
License
-
Repository
github
Last release
3 months ago

ali-oss-upload-cli

CLI to upload files to Ali OSS。

Usage

1. install

npm install --save-dev ali-oss-upload-cli

2. update .env file

OSS_REGION=oss-cn-hangzhou
OSS_BUCKET=lesscap
OSS_KEY=xxx
OSS_SECRET=xxx

Don't forget to add the .env file to .gitignore.

3. upload

upload dist dir to remote /static

oss-upload dist -o /static

# upload to bucket root dir
oss-upload dist -o /

filter with glob

oss-upload dist -o /static --glob=**/*.js

You can specify all parameters in the command line, which is convenient for use in CI environments.

oss-upload dist -o /static --region=oss-cn-hangzhou --bucket=lesscap --key=xxx --srcret=xxx

Can specify a different .env file

oss-upload dist -o /static --envfile=.env.test

4. show help

oss-upload -h
2.1.0

3 months ago

2.0.0

3 months ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

4 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago