4 releases

0.1.3 Jan 16, 2021
0.1.2 Jan 16, 2021
0.1.1 May 23, 2020
0.1.0 May 8, 2020

#41 in #storage-api

GPL-3.0-only

18KB
289 lines

BunnyCDN CLI 🐰

The unofficial CLI for BunnyCDN 🐰

Note: storage API is the only one implemented so far, others coming soon!

BunnyCDN library

Install

cargo install bunnycli

Requirements

  1. Have a bunnyCDN account
  2. An API Key. You can find this in our Dashboard in the My Account section.
  3. A Storage API key, You can find this in our Storage Zone, the FTP password is the API Key.

Example Usage

./bunnycli storage --login storage_zone_name
./bunnycli storage --upload '/file/path/file.txt' 'server/path/file.txt'
./bunnycli storage --download '/save/file/path/file.txt' 'server/path/file.txt'
./bunnycli storage --info '/' | jq
./bunnycli storage --remove 'server/path/file.txt'

Configuration

~/.config/bunnycli.tml

[storage_zone]
api_endpoint = "https://storage.bunnycdn.com"
name = "Your Storage Zone Name"

This is my first cli crate, please be gentle

Dependencies

~10–29MB
~412K SLoC