Un unofficial command line client fo rebrandly.com
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
config_sample.json
shorten

README.md

Rebrandly CLI utility

This is an unofficial CLI utility for Rebrandly service.

asciicast

Requirements

  • A Rebrandly account (ofc!)
  • Python 2.7.x

Installation

  1. Clone the repo
  2. Add the path where you cloned the repo to your ENV vars. Look at the example below.

Example: export PATH="/francesco/clones/rebrandly_cli:$PATH"

Configuration

  1. Go to Rebrandly dashboard API and create a new API token
  2. Create a config.json in the same folder where the script lives and paste there the API token. You can also specify a custom json config file using the -j option.
  3. Done!

Usage

python shorten [OPTIONS] [URL]

Options

  • -h show help
  • -j specify custom config.json file path
  • -l list custom domains (they MUST be set in your Rebrandly account to work!)
  • -c shorten URL using favorite custom domain set in config.json
  • -t specify title. It will be shown in Rebrandly dashboard

License

The software in this repository are released under the GNU GPLv3 License by Francesco Pira (dev[at]fpira[dot]com, fpira.com). You can read the terms of the license here.