Create short URLs and pastes directly from your terminal
First, download and install Go. Version 1.19
or higher is required.
Then, install mally-cli
by running:
go install github.com/neumanf/mally-cli@latest
Usage:
mally-cli [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
login Login into the Mally website
paste Creates a pastes from a code or text snippet
shorten Shortens a URL
Flags:
-h, --help help for mally-cli
To login, first you need an account in Mally. That said, run:
mally-cli login
You will be asked for your credentials, if they are correct, you will be logged successfully shortly after.
To shorten an URL, do:
mally-cli shorten <url>
Example:
mally-cli shorten https://github.com/neumanf/mally
To paste a text or code snippet, do:
# Using text
mally-cli paste <syntax> "<text>"
# Using a file
mally-cli paste <syntax> -f /path/to/file
Example:
mally-cli paste text "Hello, world!"
Example:
mally-cli paste go -f ./main.go
Mally CLI is licensed under the MIT License.