b2-tools Command Examples

Access all features of Backblaze B2 Cloud Storage easily. More information: https://www.backblaze.com/docs/cloud-storage-command-line-tools.

b2 authorize_account {{key_id}}

b2 list_buckets

b2 create_bucket {{bucket_name}} {{allPublic|allPrivate}}

b2 upload_file {{bucket_name}} {{path/to/file}} {{folder_name}}

b2 sync {{path/to/source_file}} {{bucket_name}}

b2 copy-file-by-id {{path/to/source_file_id}} {{destination_bucket_name}} {{path/to/b2_file}}

b2 ls {{bucket_name}}

b2 rm {{path/to/folder|pattern}}