Skip to main content

Install

  • npm
  • yarn
  • pnpm
npm i -g dub-cli@latest
To update an existing installation, run the same command.

Version

Check your installed version of Dub CLI:
dub --version
# => 0.0.12

Commands

Below is a list of available commands in the Dub CLI:
Log into the Dub platform:
dub login
View your workspace credentials:
dub config
Configure a domain for URL shortening:
dub domains
Create a short link:
dub shorten
You can preemptively pass the URL and the generated short link key, or go through the CLI prompts.
dub shorten [url] [key]
Get help for a specific command:
dub help [command]

Demo

Watch the Dub CLI in action:
I