|
Download commands/sysadmin/linux-desktop/installation/clis/setup-b2-cli.md from danielrosehill/Claude-Code-Slash-Commands: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/spaces/danielrosehill/Claude-Code-Slash-Commands/resolve/main/commands/sysadmin/linux-desktop/installation/clis/setup-b2-cli.md
- Command line
-
hf download hf://spaces/danielrosehill/Claude-Code-Slash-Commands/commands/sysadmin/linux-desktop/installation/clis/setup-b2-cli.md
-
curl -L -o setup-b2-cli.md https://huggingface.co/spaces/danielrosehill/Claude-Code-Slash-Commands/resolve/main/commands/sysadmin/linux-desktop/installation/clis/setup-b2-cli.md
1.33 kB
A newer version of the Gradio SDK is available: 6.30.0
metadata
description: Set up or validate Backblaze B2 CLI configuration
tags:
- cloud
- b2
- backblaze
- setup
- validation
- project
- gitignored
You are helping the user set up or validate their Backblaze B2 CLI configuration.
Process
Check if B2 CLI is installed
- Run
b2 versionto check installation - If not installed, install using:
pip3 install b2 --upgrade --userorsudo apt install backblaze-b2
- Run
Check existing authorization
- Run
b2 get-account-infoto see if already authorized - Check
~/.b2_account_infoif it exists
- Run
Validate configuration
- If authorized, test by listing buckets:
b2 list-buckets - Verify account ID and key are working
- If authorized, test by listing buckets:
Configure if needed
- If not configured or user wants to update:
- Ask user for Application Key ID and Application Key
- Run
b2 authorize-account <keyID> <applicationKey> - Alternatively, use
b2 clear-accountfirst if re-authorizing
- If not configured or user wants to update:
Additional setup
- Show available buckets:
b2 list-buckets - Suggest setting up lifecycle rules if doing backups
- Recommend testing upload/download with a small file
- Show available buckets:
Output
Provide a summary showing:
- B2 CLI version
- Authorization status
- Account ID (if authorized)
- List of buckets (if any)
- Any recommendations for optimization