Skip to content
README.md 1.37 KiB
Newer Older
theMackabu's avatar
theMackabu committed
<p align="center"><img style="width: 150px;" src="https://r2.e-z.host/21c2dfbb-4d82-4c2a-a45e-3dee4795515c/hedta24p.png"></p>
theMackabu's avatar
theMackabu committed

## Introduction

theMackabu's avatar
theMackabu committed
This is a CLI tool for interacting directly with the `e-z.host` API. (from the ✨*command line*✨)
theMackabu's avatar
theMackabu committed

### Building

- Clone the project `git clone https://git.themackabu.dev/ez-uploader`
- Open a terminal in the project folder
- Check if you have cargo (Rust's package manager) installed, just type in `cargo`
- If cargo is installed, run `cargo build --release`
- Put the executable into one of your PATH entries
theMackabu's avatar
theMackabu committed
  - Linux: usually /bin/ or /usr/bin/
  - Windows: C:\Windows\System32 is good for it but don't use windows
theMackabu's avatar
theMackabu committed

## Usage

```
login            | Save your access key
logout           | Remove your access key
ez upload <path> | Upload images, videos, gifs and audio
Options:
  -d, --domain <DOMAIN>  Domain to be used when uploading [default: i.e-z.host]
  -r, --random           Whether random domain is used
  -i, --invisible        Whether invisible url is used
  -e, --emoji            Whether emoji url is used
  -a, --amongus          Whether amongus url is used
  -c, --custom           Whether custom url is used
ez shorten <url> | Shorten urls
Options:
  -d, --domain <DOMAIN>  Domain to be used when shortened [default: astolfo.host]
  -l, --longurl          Whether long url is used
ez --help        | Displays the usage of this cli
```