Backblaze B2 Cloud Storage Command Line Client
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.
Download and install using go get:
go get -u github.com/romantomjak/b2
or grab a binary from releases section!
$ 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"
$ 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
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
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.
MIT