bunnycli

Crates.iobunnycli
lib.rsbunnycli
version0.1.3
sourcesrc
created_at2020-05-08 11:32:24.024189
updated_at2021-01-16 06:43:07.720083
descriptionThe unofficial CLI for BunnyCDN 🐰
homepage
repositoryhttps://github.com/publicarray/bunnycli
max_upload_size
id238862
size65,803
Sebastian Schmidt (publicarray)

documentation

README

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

Commit count: 24

cargo fmt