b2-tools
Official Backblaze B2 cloud storage command-line tool
TLDR
SYNOPSIS
b2 command [options]
DESCRIPTION
b2-tools (invoked as b2) is the official command-line tool for Backblaze B2 Cloud Storage. It provides file upload, download, sync, and bucket management operations for B2's S3-compatible object storage.The sync command efficiently mirrors local directories to B2, uploading only changed files. B2 provides affordable cloud storage with free egress through Cloudflare's bandwidth alliance.
PARAMETERS
account authorize keyID key
Authorize with B2 using application key.file upload bucket local remote
Upload a file to a bucket.file download uri local
Download a file from B2.ls bucket
List files in a bucket.bucket create name type
Create a bucket (allPrivate or allPublic).bucket delete name
Delete a bucket.sync source destination
Synchronize files between local and B2 or between B2 buckets.file hide bucket file
Hide a file (soft delete).
CAVEATS
Requires application key authorization before use. Large file uploads are automatically split into parts. The sync command compares by SHA1 hash, so the first sync of large directories can be slow. B2-native URIs use the `b2://` prefix.
HISTORY
b2-tools is the official CLI developed by Backblaze for their B2 Cloud Storage service. It was open-sourced on GitHub and is installable via pip as `b2`.
