← Back to CLIs
Melvynx

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-cli

Details

Skill type: Wrapper CLI
Auth type: api-key
Version: 0.1.0
Author: Melvynx
Views: 1

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

ResourceActions
accountget
domainslist, get, create, update
linkslist, get, create, update, archive, sublinks, create-sublink
analyticsorganization, link
customerslist, get
eventslist, create
trackinglead, sale
importslist, 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.

Sponsors