# TrackRev for agents

URL: https://www.trackrev.io/agents

Any agent with a shell can drive TrackRev through the `trackrev` CLI with one revocable key (`TRACKREV_KEY`). The CLI has 63 commands; 20 need a paid plan. The `trackrev-mcp` server exposes 61 of them as MCP tools.

11 commands are marked destructive and ask for confirmation unless `--yes` is passed. Output is TSV when piped and JSON with `--json`.

Install: `npm install -g trackrev` (Node 20 or newer).

- Package: https://www.npmjs.com/package/trackrev
- CLI docs: https://doc.trackrev.io/developers/cli
- MCP docs: https://doc.trackrev.io/developers/mcp
- API docs: https://doc.trackrev.io/developers/introduction

## What an agent can reach

### Partners & programs (9 commands)

Work the application queue, move affiliates between tiers, rewrite a program's rate and cookie window.

- `trackrev partners list --status pending --json`
- `trackrev programs update prg_41 --rate 0.25`

### Commissions & payouts (5 commands)

Read the ledger, record off-platform deals, void mistakes, settle payouts sent over PayPal or Wise.

- `trackrev commissions list --status pending --json`
- `trackrev payouts list --status pending`

### Attribution & analytics (4 commands)

Revenue per channel, per link, per click, per visitor.

- `trackrev channels --days 30 --ltv --json`

### Campaign links (7 commands)

Launch links with expiry, passwords, QR — 500 at a time from CSV.

- `trackrev links create --url … --channel youtube`

### Revenue sync (5 commands)

Connect Polar, Paddle, Lemon Squeezy & co. Pull charges on demand.

- `trackrev revenue sync --json`

### Visitors & orders (4 commands)

Look anyone up by email; export any dataset as CSV.

- `trackrev visitors list --email @acme.com`

### Workspace setup (7 commands)

The attribution model, the lookback window, the folders.

- `trackrev attribution set --model linear`

### Domains & pixels (7 commands)

Branded short domains, DNS checks, retargeting pixels.

- `trackrev domains verify go.acme.com`

### Keys & webhooks (8 commands)

Mint and revoke keys; point events at your stack.

- `trackrev keys create --scope secret`

### Email & branding (4 commands)

Transactional emails on or off; partner-facing branding.

- `trackrev settings notify affiliate.approved --off`

### Orientation (3 commands)

The first call: which workspace, which plan, which key.

- `trackrev me --json`

Every command, flag and plan requirement: https://doc.trackrev.io/developers/cli
