--- id: b2 version: "4.7.1" license: MIT license_treatment: permissive maintenance: active --- # b2 — Command Line Tool for Backblaze B2 License: permissive · Maintenance: active · Downloads: 170.7K/mo ## What it is and what it does B2 is a command-line tool that provides direct access to Backblaze B2 Cloud Storage capabilities. It lets you manage accounts, create and configure buckets, upload and download files, sync directories, and set up replication rules—all from the terminal or scripts. The tool uses the b2sdk library as its foundation and includes helpers like argcomplete for shell integration, tqdm for progress display, and tabulate for formatted output. The package supports multiple installation methods (pip, Homebrew, Docker, standalone binaries) and uses an ApiVer versioning scheme to maintain backward compatibility. You can invoke it as `b2` for the latest interface or `b2v4` in scripts for a stable, long-term-support version. It requires Python 3.10 or later and stores authentication details locally in an SQLite file by default. Use it for: - Automate backup and sync of local directories to B2 buckets in shell scripts or CI/CD pipelines. - Manage B2 application keys and account permissions from the command line without a web interface. - Upload or download individual files and monitor progress with built-in progress bars. - Set up and manage replication rules between B2 buckets for disaster recovery. - Integrate B2 storage operations into custom tooling via the CLI with shell autocomplete support. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Command-line interface for managing files, buckets, and accounts on Backblaze B2 Cloud Storage, with support for uploading, downloading, syncing, and replication. Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It is production-stable and well-suited for developers who need programmatic or scripted access to B2 Cloud Storage. Install it if you use Backblaze B2 and want command-line control; skip it if you only need the web console or have no B2 account. ## Install pip install b2 uv add b2 poetry add b2 ## Installing b2 Before you install: Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent release and no known vulnerabilities. Requires Python 3.10 or later. License in practice: MIT license permits commercial and private use with minimal restrictions, making it suitable for both personal and enterprise deployments. Quickstart: pip install b2 b2 account authorize b2 bucket list Requires Python 3.10 or later; B2 account credentials needed for authorization. Verify before relying: - Whether the 9 runtime dependencies (argcomplete, arrow, b2sdk, docutils, idna, platformdirs, rst2ansi, tabulate, tqdm) are all required for basic CLI operation or only for optional features. - Performance characteristics and scalability limits for large-scale sync or replication operations. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 170.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags b2 cloud storage cli, backblaze command line tool, cloud file sync and upload, b2 bucket management, cloud storage automation, backblaze api client, file replication tool, cloud-storage, cli-tool, backblaze [View on SkillFed](https://skillfed.io/packages/b2) · [View on PyPI](https://pypi.org/project/b2/)