An open API service indexing awesome lists of open source software.

https://github.com/romantomjak/b2

Backblaze B2 Cloud Storage Command Line Client
https://github.com/romantomjak/b2

b2 b2-client backblaze backblaze-b2 cli cloud-storage file-download file-upload go

Last synced: 3 months ago
JSON representation

Backblaze B2 Cloud Storage Command Line Client

Awesome Lists containing this project

README

          

# b2 [![Build Status](https://travis-ci.org/romantomjak/b2.svg?branch=master)](https://travis-ci.org/romantomjak/b2) [![Coverage Status](https://coveralls.io/repos/github/romantomjak/b2/badge.svg?branch=master)](https://coveralls.io/github/romantomjak/b2?branch=master) [![GoDoc](https://godoc.org/github.com/romantomjak/b2?status.svg)](https://godoc.org/github.com/romantomjak/b2)

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:

```sh
go get -u github.com/romantomjak/b2
```

or grab a binary from [releases](https://github.com/romantomjak/b2/releases/latest) section!

## Usage

```sh
$ 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

```sh
$ b2
Usage: b2 [--version] [--help] []

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:

- [x] Create a new bucket
- [ ] Delete bucket
- [x] List all buckets
- [ ] Update settings for a bucket
- [x] List files in a bucket
- [x] Upload small files (<100 MB)
- [ ] Upload large files
- [x] 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