ELK>> b2>> 返回
项目作者: romantomjak

项目描述 :
Backblaze B2 Cloud Storage Command Line Client
高级语言: Go
项目地址: git://github.com/romantomjak/b2.git
创建时间: 2019-07-29T21:40:53Z
项目社区:https://github.com/romantomjak/b2

开源协议:MIT License

下载


b2 Build Status Coverage Status GoDoc

Backblaze B2 Cloud Storage Command Line Client


Status

This project is in development phase. You can try it with latest release version. I highly recommend you to use b2 with go modules to get the latest changes.

Installation

Download and install using go get:

  1. go get -u github.com/romantomjak/b2

or grab a binary from releases section!

Usage

  1. $ export B2_KEY_ID=1234
  2. $ export B2_KEY_SECRET=MYSECRET
  3. $ b2 create my-globally-unique-bucket-name
  4. Bucket "my-globally-unique-bucket-name" created with ID "123b2bucketid8"

CLI example

  1. $ b2
  2. Usage: b2 [--version] [--help] <command> [<args>]
  3. Available commands are:
  4. create Create a new bucket
  5. get Download files
  6. list List files and buckets
  7. put Upload files
  8. version Prints the client version

Progress

My initial goal is to be able to navigate B2 buckets, list files in them and, of course, to upload and download files. All the other features, performance optimizations and nice to haves will come after.

This is how far I’ve gotten:

  • Create a new bucket
  • Delete bucket
  • List all buckets
  • Update settings for a bucket
  • List files in a bucket
  • Upload small files (<100 MB)
  • Upload large files
  • Download a file

Contributing

You can contribute in many ways and not just by changing the code! If you have any ideas, just open an issue and tell me what you think.

Contributing code-wise - please fork the repository and submit a pull request.

License

MIT