KosmoKrator

marketing

Dub.co CLI for Coding Agents

Use the Dub.co CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write Bearer token auth

Dub.co CLI for Coding Agents

Let coding agents discover schemas and execute integration functions through CLI commands or MCP.

Use this pattern when another coding agent needs exact commands and schema discovery. The Dub.co CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Dub.co CLI for Coding Agents
kosmokrator integrations:configure dub --set access_token="$DUB_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call dub.dub_list_links '{"page":1,"pageSize":1,"search":"example_search","domain":"example_domain","tagId":"example_tagId"}' --json

Discovery Before Execution

Agents and scripts can inspect Dub.co docs and schemas before choosing a function.

kosmo integrations:docs dub --json
kosmo integrations:docs dub.dub_list_links --json
kosmo integrations:schema dub.dub_list_links --json
kosmo integrations:search "Dub.co" --json
kosmo integrations:list --json

Useful Dub.co CLI Functions

FunctionTypeParametersDescription
dub.dub_list_links Read page, pageSize, search, domain, tagId List short links from Dub.co. Supports pagination, searching, and filtering by domain or tag.
dub.dub_get_link Read id Get details of a specific short link by its ID.
dub.dub_create_link Write url, domain, key, title, description, tags Create a new short link in Dub.co. Provide a destination URL and optionally a custom domain, key (back-half), title, description, and tags.
dub.dub_list_domains Read page, pageSize List all domains configured in your Dub.co workspace.
dub.dub_get_domain Read id Get details of a specific domain by its ID or slug.
dub.dub_list_tags Read page, pageSize, search List link tags in your Dub.co workspace. Supports pagination and search.
dub.dub_get_current_user Read none Get the profile of the currently authenticated Dub.co user. Useful for verifying the connection and checking workspace membership.

Automation Notes

Related Dub.co CLI Pages