Skip to main content
Dub

Command Line Interface (CLI)

Programmatically manage your Dub resources directly from your terminal.
1 min read

Install#

Info
To update an existing installation, run the same command.

Version#

Check your installed version of Dub CLI:

Commands#

Below is a list of available commands in the Dub CLI:

dub login

Log into the Dub platform:

dub config

View your workspace credentials:

dub domains

Configure a domain for URL shortening:

dub shorten

Create a short link:

You can preemptively pass the URL and the generated short link key, or go through the CLI prompts.

dub help

Get help for a specific command:

Demo#

Watch the Dub CLI in action: