Command line tool for uploading file to QiNiuYun
# with npm
npm install -g upload2qiniu
# or with Yarn
yarn global add upload2qiniu
touch a .env file under user home dir like /Users/ashin/.env
and add the config
QINIU_AK=your qiniu ak
QINIU_SK=your qiniu sk
QINIU_BUCKET=bucket your want upload file in
QINIU_CDNLINK=the cdn link
QINIU_ZONE=Zone_z2
- 华东 Zone_z0
- 华北 Zone_z1
- 华南 Zone_z2
- 北美 Zone_na0
upload file
upload2qiniu -f package.json