Blossom Uploader CLI is a command-line tool for uploading, downloading, and listing files on a Blossom server. It uses Nostr for authorization and supports various operations such as uploading files, downloading files by their SHA256 hash, and listing files associated with a public key.
To install Blossom Uploader CLI, clone the repository and build the project using Go:
git clone https://github.com/girino/blossom-cli.git
cd blossom-cli
go mod download
go build -o blossom-cli .
The CLI supports the following commands: upload
, download
, get
, and list
.
To upload a file to the Blossom server:
./blossom-cli upload -server <server_url> -file <file_path> -privkey <private_key>
To download a file from the Blossom server using its SHA256 hash:
./blossom-cli download -server <server_url> -hash <sha256_hash> -output <output_file>
To list files associated with a public key:
./blossom-cli list -server <server_url> -pubkey <pubkey>
Upload a file:
./blossom-cli upload -server http://example.com -file ./example.txt -privkey nsec1exampleprivatekey
Download a file:
./blossom-cli download -server http://example.com -hash 1234567890abcdef -output ./downloaded.txt
List files:
./blossom-cli list -server http://example.com -pubkey npub1examplepublickey
This project is licensed under the Girino's Anarchist License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
For any questions or feedback, please open an issue or contact me on nostr