Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 1.49 KB

README.md

File metadata and controls

71 lines (48 loc) · 1.49 KB

mally logo
Mally CLI

Create short URLs and pastes directly from your terminal

Quick start

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

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

Login

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.

URL Shortener

To shorten an URL, do:

mally-cli shorten <url>

Example: mally-cli shorten https://github.com/neumanf/mally

Pastebin

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

License

Mally CLI is licensed under the MIT License.