sh
cargo install kutt
```sh kutt --login your-api-key
export KUTTAPIKEY='your-api-key' ```
```sh kutt --target-url https://github.com/ --custom-url your-domain
echo 'https://github.com/' | kutt -c your-domain ```
```sh USAGE: kutt [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-c, --custom-url
sh
cargo add kutt
```rust
extern crate dotenv;
extern crate kutt;
use dotenv::dotenv; use kutt::Kutt;
fn main() { dotenv().ok(); // read KUTTAPIKEY in .env file let slink = Kutt::targeturl("https://addr-example...") .customurl("custom-url") .createshortlink() .unwrap(); println!("{}", slink); } ```