Skip to content
/ b2 Public

Backblaze B2 Cloud Storage Command Line Client

License

Notifications You must be signed in to change notification settings

romantomjak/b2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

go get -u github.com/romantomjak/b2

or grab a binary from releases section!

Usage

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

CLI example

$ b2 
Usage: b2 [--version] [--help] <command> [<args>]

Available commands are:
    create     Create a new bucket
    get        Download files
    list       List files and buckets
    put        Upload files
    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