What the CLI Does
The CLI lets you interact with the delongify API just like this website does, but it also lets you enter a list of URLs for convenient processing. The URLs are also processed concurrently which speeds things up quite a bit.
Installation
Coming as soon as I figure out how to properly distribute binaries. For now, go to the repository, clone and go build it.
Basic Usage
To shorten a URL, just add it as an argument. For example, if you wanted to shorten the link to this repository, you would run:
./delongify https://github.com/malekoa/delongify_cli
Multiple URLs
To shorten multiple URLs, just add them as arguments. For example, if you wanted to shorten both the link to this repository and the link to this webpage, you would run:
./delongify https://github.com/malekoa/delongify_cli https://delongify.xyz/cli
JSON Output
To produce output in JSON format, add the --json flag. For example, if you wanted the above example with multiple URLs to produce JSON output, you would run:
./delongify --json https://github.com/malekoa/delongify_cli https://delongify.xyz/cli
File Output
To output directly to a file, add the --output=path flag. For example, if you wanted the above example with multiple URLs to produce JSON output to a file called urls.json, you would run:
./delongify --json --output=./urls.json https://github.com/malekoa/delongify_cli https://delongify.xyz/cli