Command Line Interface (CLI)
Programmatically manage your Dub resources directly from your terminal.
Install
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
dub login
Log into the Dub platform:
dub config
dub config
View your workspace credentials:
dub domains
dub domains
Configure a domain for URL shortening:
dub shorten
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 links
dub links
Search for links in your Dub workspace:
Here are the available options:
Option | Description |
---|---|
-s, --search <search> | Search by name |
-l, --limit <limit> | Limit the number of results (default is 10) |
dub help
dub help
Get help for a specific command:
Demo
Watch the Dub CLI in action: