Run Prosper202 from the terminal. Or hand it to an agent.

The Prosper202 CLI, p202, does what the web UI does: reports, campaigns, tracking links, attribution and customer LTV. Pick a job, copy the command, and see the output before you run it.

Profit by campaign, last 30 days
$ p202 report breakdown --breakdown campaign --period last30
id  name                          Clicks  Clickthroughs  Conversions  Conv %  Revenue  Cost    Profit   ROI %      EPC      CPA      Avg CPC
--  ----------------------------  ------  -------------  -----------  ------  -------  ------  -------  ---------  -------  -------  -------
1   Spring Collection / US        787     787            24           3.0496  3378     356.45  3021.55  847.6785   4.2922   14.8521  0.4529
2   Coffee Subscription / US      544     544            30           5.5147  1116     214.59  901.41   420.0615   2.0515   7.153    0.3945
3   Standing Desk Launch / UK     438     438            8            1.8265  3551     424.30  3126.70  736.9078   8.1073   53.0375  0.9687
4   Project Tool Pro Annual / US  308     308            10           3.2468  4440     499.20  3940.80  789.4231   14.4156  49.92    1.6208
5   Free Trial to Paid / CA       298     298            18           6.0403  522      391.90  130.10   33.1972    1.7517   21.7722  1.3151
7   Holiday Gift Cards / AU       288     288            13           4.5139  1450     119.54  1330.46  1112.9831  5.0347   9.1954   0.4151
6   Bakery Pre-orders / Local     238     238            18           7.563   1380     27      1353     5011.1111  5.7983   1.50     0.1134
Real output · p202 1.9.77 · demo dataexit 0
01 / Quickstart

Connected in four commands

Same API key, same data and the same permissions as the web UI. Nothing to install on the server.

Get the binary

It ships inside the ClickServer download at go-cli/dist/<os>-<arch>/p202. Put it on your PATH, or build it from a checkout with cd go-cli && make build.

p202 --version

Point it at your install

The address you open Prosper202 at.

p202 config set-url https://track.example.com

Add an API key

Create one under My Account › Personal Settings. Run this without the key to paste it at a prompt that does not echo.

p202 config set-key

Check who you are

Shows the user, roles and scopes the key acts as. A read-only key is a safe start for an agent.

p202 whoami
02 / Jobs to be done

Start from what you need

Each line is a real command. Open it to see the output, change the flags in the builder, and copy it.

Launch

Launch a campaign

Create the campaign, get its tracking link, and prove the link lands where it should before you spend.

03 / From zero to tracked

Five commands to a working campaign

The same steps as the web UI's get-started checklist, in the order they depend on each other.

  1. Name the channel

    Search, social, email: the network your ad accounts belong to.

    p202 ppc-network create
  2. Add the ad account

    The account that pays for the clicks.

    p202 ppc-account create
  3. Create the campaign

    Where clicks go, and what a sale is worth.

    p202 campaign create
  4. Get the tracking link

    Paste it into your ad. Every click is recorded.

    p202 tracker create-with-url
  5. Watch it work

    Clicks, sales and ROI by source, as they arrive.

    p202 report breakdown
04 / Find a command

Say what you want to do

Matches command names, descriptions, web UI pages and the words people use for them. Offline, like p202 search.

05 / Browse

261 commands in 36 groups

Generated from p202 commands --json for p202 1.9.77, so every flag and value here is one the binary accepts.

p202 aff-networkManage categories (affiliate networks)5 commandsp202 analyticsQuery performance stats grouped by campaign, traffic source, country, etc. (shorthand for report breakdown)1 commandp202 appApp measurement: registered apps, SKAN encodings, postbacks and the report25 commandsp202 attributionMulti-touch attribution: models, credit reports and journeys over your own clicks, plus platform-signed postbacks (SKAdNetwork, AdAttributionKit)15 commandsp202 campaignManage campaigns (affiliate offers with URLs, payouts, and postback settings)9 commandsp202 changeReview and resolve staged writes (proposals recorded by --staged)4 commandsp202 clickView tracked clicks (inbound visitor events from traffic sources), and set what past clicks cost4 commandsp202 commandsList every command and flag (with allowed values) in one call; --json for agents1 commandp202 completionGenerate the autocompletion script for the specified shell4 commandsp202 configManage CLI configuration14 commandsp202 conversionManage conversions (revenue events recorded via postback or pixel)12 commandsp202 dashboardGet dashboard overview — total clicks, conversions, revenue, cost, profit, and ROI for a period1 commandp202 diffCompare entities between two profiles1 commandp202 evalBehavioral evals for an agent that operates this instance1 commandp202 eventReport web events on a click (evaluated by its campaign's goals)1 commandp202 execRun a subcommand across multiple profiles1 commandp202 exportExport entities to JSON1 commandp202 forecastForecast future performance metrics using historical data1 commandp202 forecast-eventManage forecast events (holidays, promotions, anomalies that affect forecasting)5 commandsp202 goalGoals: what counts as a conversion, versioned, and which campaigns pay for it13 commandsp202 importImport entities from JSON1 commandp202 landing-pageManage landing pages (pre-sell pages visitors see before the offer)6 commandsp202 ltvCustomer lifetime value — realized LTV, per-customer detail, product/acquisition breakdowns, MRR/churn, and predictive LTV40 commandsp202 ppc-accountManage traffic sources (PPC accounts)9 commandsp202 ppc-networkManage traffic source networks (PPC networks)9 commandsp202 re-syncRun incremental sync using stored sync manifest1 commandp202 reportGenerate performance reports — summary, breakdown by dimension, time series, and day/week parting10 commandsp202 rotatorManage redirectors (rotators and rules)13 commandsp202 searchFind the command for a task: ranks commands, flags, flag values and UI pages by your words (offline)1 commandp202 shellInteractive shell with session state and batch execution1 commandp202 syncSync entities from one profile to another3 commandsp202 systemSystem information and diagnostics16 commandsp202 text-adManage text ads (ad creatives with headline, description, and display URL)5 commandsp202 trackerManage trackers (tracking links that tie a traffic source to a campaign and landing page)10 commandsp202 userManage users, roles, API keys, and preferences16 commandsp202 whoamiShow the user, roles and scopes the configured API key acts as1 command
06 / Output

Tables for people, JSON for everything else

Global flags work on every command. Without one, P202_OUTPUT, then p202 config set-default output.format decide.

--json

Output pretty-printed JSON instead of tables

--csv

Output as CSV instead of tables

--ndjson

Output newline-delimited JSON (one row per line)

-q

Print only ids, one per line (for scripting)

--fields

Comma-separated columns to show, in order

--wide

Show all columns at full width (no truncation)

--table

Output tables even when an AI agent would get JSON

--staged

Stage writes for approval instead of executing them (server records a change id; see `p202 change`)

--profile

Use a named configuration profile

--raw-headers

Use raw API field names as table headers

07 / For AI agents

Built to be driven by agents

Every page here is plain HTML with the command, its flags and real output. The whole spec is one file: commands.json.

Read the catalog

Every command on one line, with the web UI page it does: about 6,000 tokens. Agents choose better from this than from search.

p202 commands --brief

JSON without asking

With AI_AGENT, CLAUDECODE, GEMINI_CLI, CODEX_SANDBOX or CURSOR_AGENT set, output is compact JSON. --table overrides it.

AI_AGENT=1 p202 dashboard

Errors it can act on

Errors arrive on stderr as JSON: message, category, exit code and a hint for the next step. Exit 1 input, 2 auth, 3 network, 4 server, 5 partial.

p202 search "what you want"

Writes wait for a person

Give agents a scoped key (whoami shows it). --staged turns a write into a proposal you review and apply, on commands whose page says it supports it.

p202 change apply <id>
08 / Every command

The full list

The same catalog p202 commands --brief prints, linked.

p202 aff-network

p202 analytics

p202 app

p202 attribution

p202 campaign

p202 change

p202 click

p202 commands

p202 completion

p202 config

p202 conversion

p202 dashboard

p202 diff

p202 eval

p202 event

p202 exec

p202 export

p202 forecast

p202 forecast-event

p202 goal

p202 import

p202 landing-page

p202 ltv

p202 ppc-account

p202 ppc-network

p202 re-sync

p202 report

p202 rotator

p202 shell

p202 sync

p202 system

p202 text-ad

p202 tracker

p202 user

p202 whoami