Dub CLI for easily shortening URLs
npm i -g dub-cli@latest
Check your installed version of Dub CLI:
dub --version # => 0.0.12
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 shorten [url] [key]
dub links
Search for links in your Dub workspace:
Here are the available options:
-s, --search <search>
-l, --limit <limit>
dub links [options]
dub help
Get help for a specific command:
dub help [command]
Watch the Dub CLI in action:
Was this page helpful?