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 |
#23 in #storage-api
18KB
289 lines
BunnyCDN CLI 🐰
The unofficial CLI for BunnyCDN 🐰
Note: storage API is the only one implemented so far, others coming soon!
Install
cargo install bunnycli
Requirements
- Have a bunnyCDN account
- An API Key. You can find this in our Dashboard in the My Account section.
- 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
~9–27MB
~415K SLoC