KosmoKrator

marketing

Dub.co CLI for Headless Automation

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

7 functions 6 read 1 write Bearer token auth

Dub.co CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. 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 Headless Automation
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