Skip to content

A CLI tool for creating short URLs and pastes using Mally directly from your terminal

License

Notifications You must be signed in to change notification settings

neumanf/mally-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A CLI tool for creating short URLs and pastes using Mally directly from your terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages