Installation
Install the Dub CLI globally using npm:Quick Start
Available Commands
The CLI provides the following commands:| Command | Description |
|---|---|
dub login | Log into the Dub platform |
dub config | View your configured credentials |
dub domains | Configure your workspace domain |
dub shorten [url] [key] | Create a short link |
dub links [options] | Search for links in your workspace |
dub help [command] | Display help for a command |
Features
- OAuth Authentication - Secure login with your Dub account
- Domain Management - Select and configure workspace domains
- Link Creation - Create short links with custom keys
- Link Search - Search and filter your existing links
- Interactive Prompts - User-friendly prompts for missing parameters
- Colored Output - Clear, readable terminal output
Authentication
The CLI uses OAuth 2.0 for secure authentication:- Opens your browser for authentication
- Starts a local callback server
- Stores credentials securely
- Grants access with the following scopes:
links.read- Read linkslinks.write- Create and update linksdomains.read- Read domains
Next Steps
CLI Installation
Detailed installation instructions
CLI Commands
Complete command reference
API Reference
Explore the API
Server SDKs
Use programmatic SDKs