7niu

qiniu cloud command line

Stats

stars ๐ŸŒŸissues โš ๏ธupdated ๐Ÿ› created ๐Ÿฃsize ๐Ÿ‹๏ธโ€โ™€๏ธ
00Aug 15, 2018May 18, 2015Minified + gzip package size for 7niu in KB

Readme

7niu

Build Status

ไธƒ็‰›ไบ‘ๅญ˜ๅ‚จๅ‘ฝไปค่กŒใ€‚

install

npm install -g 7niu

api

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘   7niu@2.3.0                                         โ•‘
โ•‘   qiniu cloud command line                           โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

1. Command
   upload                 >> upload files to qiniu
   init                   >> initial `7niu.json`
   clear                  >> clear upload cache
   version                >> show version information
   help                   >> show help information

2. Options
   -d --dirname           >> specified a directory

7niu.json

{
    "access_key": "your_access_key",
    "secret_key": "your_secret_key",

    // ไป“ๅบ“
    "bucket": "your_bucket",

    // ๅพ…ไธŠไผ ่ต„ๆบ็š„ๆบ็›ฎๅฝ•๏ผŒ็›ธๅฝ“ไบŽ`7niu.json`ๆ‰€ๅœจ็š„็›ฎๅฝ•
    "src": "./",

    // ไธŠไผ ็š„ๆ–‡ไปถๅˆ—่กจ๏ผŒๆ”ฏๆŒ้€š้…็ฌฆ๏ผŒ็›ธๅฏนไบŽ src
    "upload": [
        "./**"
    ],

    // ไธŠไผ ็š„ CDN ็›ฎๅฝ•
    "dest": "/test/",

    // ๅนถ่กŒไธŠไผ ๆ•ฐ้‡๏ผŒ้ป˜่ฎค10
    "parallel": 10
}

example

ๅ‡่ฎพๅฝ“ๅ‰็š„่ต„ๆบ็›ฎๅฝ•ๆ˜ฏ่ฟ™ๆ ท็š„๏ผš

- static
|-- js
|   `-- app
|       |-- abc.js
|       `-- def.js
|-- css
`-- 7niu.json

่ฆไธŠไผ ็š„่ต„ๆบไธบ./static/js/app/*๏ผŒ็บฟไธŠ็š„ CDN URL ไธบ/example.com/abc.jsใ€‚

{
    ...
    upload: [
        './**/*'
    ],
    src: './static/js/app/',
    dest: '/example.com/'
}

version

2.x

  • ๆ›ดๅฅฝ็š„ๅ‘ฝไปค่กŒๆŽฅๅฃ
  • ๆ›ดๅฅฝ็š„็‰ˆๆœฌๆŽงๅˆถ

1.x

  • ๅฎž็ŽฐๅŸบๆœฌไธŠไผ ๅŠŸ่ƒฝ

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.