https://github.com/publicarray/bunnycli
CLI for BunnyCDN
https://github.com/publicarray/bunnycli
bunnycdn
Last synced: 9 months ago
JSON representation
CLI for BunnyCDN
- Host: GitHub
- URL: https://github.com/publicarray/bunnycli
- Owner: publicarray
- Created: 2020-04-22T22:57:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-16T06:42:21.000Z (almost 5 years ago)
- Last Synced: 2025-03-01T05:03:11.797Z (10 months ago)
- Topics: bunnycdn
- Language: Rust
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BunnyCDN CLI 🐰
The unofficial CLI for BunnyCDN 🐰
Note: storage API is the only one implemented so far, others coming soon!
[BunnyCDN library](https://github.com/publicarray/bunnycdn)
## Install
```sh
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
```sh
./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`
```toml
[storage_zone]
api_endpoint = "https://storage.bunnycdn.com"
name = "Your Storage Zone Name"
```
This is my first cli crate, please be gentle