
kliq-cli
Manage Kliq via CLI - account, domains, links, analytics, customers, events, tracking, imports. Use when user mentions 'Kliq', 'short link', 'sublink', 'link analytics', 'attribution', 'track lead', 'track sale', 'conversion revenue', 'Dub import', or wants to interact with the Kliq API.
Install
$ npx api2cli install Melvynx/kliq-cliDetails
README
kliq-cli
Agent-ready CLI for the Kliq Admin API, generated with api2cli.
Install
npx api2cli install Melvynx/kliq-cli
This installs the CLI, links kliq-cli into your PATH, and exposes its
AgentSkill to compatible assistants.
Local build
npx api2cli bundle kliq
npx api2cli link kliq
kliq-cli --help
Authentication
kliq-cli auth set "$KLIQ_API_KEY"
kliq-cli auth test --json
The token is stored at ~/.config/tokens/kliq-cli.txt with permissions 0600.
Resources
| Resource | Actions |
|---|---|
account | get |
domains | list, get, create, update |
links | list, get, create, update, archive, sublinks, create-sublink |
analytics | organization, link |
customers | list, get |
events | list, create |
tracking | lead, sale |
imports | list, get, items, create |
Use the built-in help as the source of truth for flags:
kliq-cli <resource> --help
kliq-cli <resource> <action> --help
Always use --json for programmatic calls. It returns an outer
{ "ok": true, "data": ... } envelope; API failures return
{ "ok": false, "error": ... }.
Safety
Kliq operations affect organization production data. Read current state before writes, reuse stable idempotency keys on retries, and remember that archiving a link stops redirects while preserving history.