qnx
v1.3.8
Published
npm install qnx -g
Downloads
4
Readme
欢迎使用qnx
[TOC]
安装qnx
npm install qnx -g
指定账号
qnx use <name>
配置账号
qnx config <name> ak=you qiniu ak
qnx config <name> sk=you qiniu sk
qnx config <name> base=you qiniu base url
qnx config <name> bucket=you qiniu bucket
上传至cdn
qnx upload localPath qiniuPath
示例
for example:
qnx use leanote
qnx config leanote ak=<ak1>
qnx config leanote sk=<sk1>
qnx config leanote base=<base1>
qnx config leanote bucket=<bucket1>
qnx upload mydir remotedir
mydir
mydir/a.html ===> <base1>/qn/remotedir/mydir/a.html
mydir/mydir2/b.html ===> <base1>/qn/remotedir/mydir/mydir2/b.html
添加更多账号
you can add more than one
for example:
qnx config starnet ak=<ak2>
qnx config starnet sk=<sk2>
qnx config starnet base=<base2>
qnx config starnet bucket=<bucket2>
qnx use starnet
qnx upload mydir remotedir
mydir
mydir/a.html ===> <base2>/qn/remotedir/mydir/a.html
mydir/mydir2/b.html ===> <base2>/qn/remotedir/mydir/mydir2/b.html
qnx will ignore the file that not modified since last upload time.