Media Client¶
blossomctl is part of the storage-go image.
| Command | Options | Purpose |
|---|---|---|
whoami |
Public key | |
upload |
-server (repeatable), -file, -caption, -relay, -cashu, -preimage, -server-key |
Upload to the first server, mirror to the others, publish the file event |
mirror |
-server (repeatable), -url, -sha256 |
Mirror an existing file |
fetch |
-sha256, -out, -url, -relay, -author, -server |
Find and download with verification |
list |
-server, -author |
Files of a user |
delete |
-server (repeatable), -sha256 |
Delete |
-key names the key file, blossom.key or KEY_FILE by default. It is created if it does not exist.
Upload to several servers¶
blossomctl upload -server https://a.example -server https://b.example -file photo.jpg -relay wss://relay.example
The published event of kind 1063 lists the first address as url and the others as fallback.
Fetch from anywhere¶
blossomctl fetch -sha256 <digest> -relay wss://relay.example -server https://c.example -out photo.jpg
Addresses from events and servers are tried in turn. Content that does not match the digest is rejected, and the next address is tried.
-server-key pins the key with which the server signs its receipt.