p202 commands

List every command and flag (with allowed values) in one call; --json for agents

All commands

01Run it

Straight from the command's own help.

p202 commands --brief
p202 commands --json
p202 commands report
p202 commands --quiet

02What you get

Captured from the real binary, run against a demo store with 30 days of traffic. Switch tabs to see the same run as JSON, the shape scripts and agents parse.

p202 commands --brief
$ p202 commands --brief
p202 aff-network create — Create a new aff-network
p202 aff-network delete — Delete a aff-network
p202 aff-network get — Get a aff-network by ID
p202 aff-network list — List categories (affiliate networks) [UI: Setup › Categories]
p202 aff-network update — Update a aff-network
p202 analytics — Query performance stats grouped by campaign, traffic source, country, etc. (shorthand for report breakdown)
p202 app create — Register an app from a store link or an app key (claims its stored postbacks)
p202 app delete — Delete an app registration (its SKAN encodings go with it; claimed postbacks keep their owner)
p202 app encoding create — Create an encoding (one fine value 0-63 OR one coarse value) for a registration or account-wide
p202 app encoding delete — Delete an encoding
p202 app encoding get — Get a SKAN encoding
p202 app encoding list — List SKAN encodings
p202 app encoding update — Update an encoding (switch kinds with --clear-fine-value/--clear-coarse-value)
p202 app get — Get a registered app by its registration id (from `p202 app list`)
p202 app install get — Get one install: its referrer, timestamps, match state, reason and trust
p202 app install list — List an Android registration's installs, newest first, with their match state and reason
p202 app install simulate — Post an SDK-shaped install for a real click, as a device would
p202 app install token — Show the install token and Google Play store link for one click
p202 app integrity credential clear — Delete the service account (refused while the mode is observe or require, or installs still wait for a verdict)
p202 app integrity credential set — Set or rotate the service account (the key is stored encrypted and never shown)
p202 app integrity status — Show the mode, the credential (never its key), verdict counts and today's decodes
p202 app link — The store link a campaign should send this app's clicks to, and whether a campaign does
p202 app list — List registered apps (both platforms) [UI: Setup › Mobile Apps]
p202 app notifications — Traffic-source postbacks the app installs' goals queued, and where each stands
p202 app postbacks get — Get one postback, including its attribution signature
p202 app postbacks list — List received postbacks with filters (registration, protocol, signature state, network, window)
p202 app report — Cross-platform app report: iOS postbacks and Android installs, with the goals they reached [UI: Analyze › Mobile Apps]
p202 app rotate-token — Replace the app token (the old token stops working immediately)
p202 app schema — Show the app's schema document exactly as devices fetch it
p202 app update — Update a registered app's name, notes or test-signal policy (re-runs the postback claim)
p202 app verify — Verify a postback payload's Apple signature (nothing is stored)
p202 attribution breakdown — Attributed conversions, revenue, cost and ROI by a click dimension; --compare-model puts two models side by side [UI: Attribution]
p202 attribution export create — Queue an export of a breakdown: now, or at --run-at; optionally to a signed https webhook
p202 attribution export delete — Delete an export and its file (not while it is running); supports --ids for bulk
p202 attribution export download — Download an export's CSV to --output, or to stdout
p202 attribution export get — One export: its status, rows, webhook answer and last error
p202 attribution export list — List exports, newest first
p202 attribution export retry — Queue a failed export again, with its attempts reset
p202 attribution journey — One conversion's journey: its touches, the identity signals that linked them, and every model's credit
p202 attribution journeys — Journey metrics: length distribution, time to convert, one-touch share by browser
p202 attribution model create — Create an attribution model; its credits are computed for existing conversions by the next worker run
p202 attribution model delete — Delete an attribution model and its credits (not the default); supports --ids for bulk
p202 attribution model get — Get an attribution model
p202 attribution model list — List attribution models
p202 attribution model update — Update an attribution model (changing its type resets its weighting config to that type's defaults)
p202 attribution queue — The attribution worker's backlog: conversions waiting, failing (with the error), and why each was queued
p202 campaign check-urls — Find offer URLs whose host is dead, without sending clicks
p202 campaign clone — Clone a campaign
p202 campaign create — Create a new campaign
p202 campaign delete — Delete a campaign
p202 campaign get — Get a campaign by ID
p202 campaign list — List campaigns (affiliate offers with URLs, payouts, and postback settings) [UI: Setup › Campaigns]
p202 campaign optimize — Diagnose a campaign and recommend a salvage offer for its traffic
p202 campaign replace-url — Find campaigns whose offer URLs contain a string and rewrite those URLs in bulk
p202 campaign update — Update a campaign
p202 change apply — Apply a staged change (performs the recorded write)
p202 change discard — Discard a staged change without performing it
p202 change list — List staged changes (yours; --all for every user's, admin only)
p202 change show — Show one staged change, including its payload and preview
p202 click conversions — Explain a click's value: every conversion on it, whether it counts, and why not
p202 click get — Get a click by ID
p202 click list — List tracked clicks with optional filters by campaign, time range, or bot status [UI: Spy = p202 click list --follow; Visitors]
p202 click update-cpc — Set what a set of past clicks cost (the UI's Update CPC), after counting them [UI: Update › Update CPC]
p202 commands — List every command and flag (with allowed values) in one call; --json for agents
p202 completion bash — Generate the autocompletion script for bash
p202 completion fish — Generate the autocompletion script for fish
p202 completion powershell — Generate the autocompletion script for powershell
p202 completion zsh — Generate the autocompletion script for zsh
p202 config add-profile — Create a named profile
p202 config get-default — Get one default value or list all defaults
p202 config list-profiles — List all configured profiles
p202 config remove-profile — Remove a named profile
p202 config rename-profile — Rename a profile
p202 config set-default — Set a default value for supported command flags
p202 config set-key — Set the API key (omit the argument to be prompted without echoing)
p202 config set-url — Set the Prosper202 instance URL the API is reached at (the install's address)
p202 config show — Show current configuration
p202 config tag-profile — Add tags to a profile
p202 config test — Test the connection to the Prosper202 instance and that the API key works
p202 config unset-default — Remove a configured default value
p202 config untag-profile — Remove tags from a profile
p202 config use — Set the active profile
p202 conversion create — Create a conversion
p202 conversion delete — Delete a conversion
p202 conversion delete-subids — Delete the conversions of a list of subids, one per line (the UI's Delete Subids) [UI: Update › Delete Subids]
p202 conversion get — Get a conversion by ID
p202 conversion import — Record a network's conversion export (CSV or JSON) against its clicks, safely re-runnable
p202 conversion list — List conversions
p202 conversion mark-subids — Mark clicks converted from a list of subids, one per line (the UI's Update Subids) [UI: Update › Update Subids]
p202 conversion pixel — Print the conversion pixel for your thank-you page (Setup > Postback / Pixel)
p202 conversion postback-url — Print the server-to-server postback URL to give your affiliate network (Setup > Postback / Pixel) [UI: Setup › Postback/Pixel]
p202 conversion reset-subids — Clear every conversion of a category or one of its campaigns (the UI's Reset Campaign Subids) [UI: Update › Reset Campaign Subids]
p202 conversion simulate — Prove the click -> subid -> postback -> conversion loop works for a tracker
p202 conversion upload-revenue — Record a network's revenue report, a CSV of subid and commission (the UI's Upload Revenue Reports) [UI: Update › Upload Revenue Reports]
p202 dashboard — Get dashboard overview — total clicks, conversions, revenue, cost, profit, and ROI for a period
p202 diff — Compare entities between two profiles
p202 eval run — Run eval cases against a pluggable agent command
p202 event send — Send an event (or a file of events) for a click
p202 exec — Run a subcommand across multiple profiles
p202 export — Export entities to JSON
p202 forecast — Forecast future performance metrics using historical data
p202 forecast-event create — Create a new forecast-event
p202 forecast-event delete — Delete a forecast-event
p202 forecast-event get — Get a forecast-event by ID
p202 forecast-event list — List forecast events (holidays, promotions, anomalies that affect forecasting)
p202 forecast-event update — Update a forecast-event
p202 goal campaign list — List the campaigns paying for a goal
p202 goal campaign remove — Stop a campaign paying for a goal (its outcomes there are tracked, not paid, from now on)
p202 goal campaign set — Make a campaign pay for a goal, or change its payout (default: the goal's own value)
p202 goal create — Create a goal for a campaign, an app registration or the account
p202 goal delete — Archive a goal (its versions, outcomes and conversions are kept)
p202 goal evaluate — Evaluate definitions against events without writing anything
p202 goal get — Get a goal: its current definition, the campaigns paying for it, its live outcome count
p202 goal list — List goals (filter by owner)
p202 goal outcomes — List a goal's live outcomes (each time a click or install reached it)
p202 goal reevaluate — Re-evaluate past clicks or installs under a goal version (preview; --apply to apply)
p202 goal update — Edit a goal (a new version; conversions keep the version that produced them)
p202 goal validate — Check a definition without saving it (answers the canonical form)
p202 goal versions — List every version of a goal
p202 import — Import entities from JSON
p202 landing-page code — Print a landing page's tracking code (Setup > Get LP Code) [UI: Setup › Get LP Code]
p202 landing-page create — Create a new landing-page
p202 landing-page delete — Delete a landing-page
p202 landing-page get — Get a landing-page by ID
p202 landing-page list — List landing pages (pre-sell pages visitors see before the offer) [UI: Setup › Landing Pages]
p202 landing-page update — Update a landing-page
p202 ltv abm — ABM account view — companies ranked by engagement with scores, depth metrics, revenue and MRR
p202 ltv breakdown — LTV by acquisition source (campaign, ppc_account, landing_page) or by product
p202 ltv cohorts — LTV maturation by acquisition month — each cohort's revenue by months since first seen (m0..m4, m5_plus)
p202 ltv companies — Company (ABM account) entities with live contact/revenue rollups (writes: `p202 ltv company`)
p202 ltv company create — Create a company; --domain makes customers with that email domain join it automatically
p202 ltv company delete — Delete a company with no customers attached (one with customers is merged instead)
p202 ltv company merge — Merge one company into another: its customers move to the target and it is deleted (irreversible)
p202 ltv company update — Rename a company or change its auto-attach domain (--domain "" clears it)
p202 ltv customer alias add — Add an identifier that resolves to this customer from then on
p202 ltv customer alias remove — Remove one identifier from a customer (the customer and its revenue stay)
p202 ltv customer erase — Erase a customer's personal data (GDPR-style): CRM fields, aliases and field values go, revenue history stays
p202 ltv customer merge — Merge one customer into another: the source's aliases, revenue, subscriptions and fields move to the target (irreversible)
p202 ltv customer update — Change a customer's CRM fields, custom fields or aliases (a flag given empty clears that field)
p202 ltv customer upsert — Create or update a customer by --customer-ref (your id) or --customer-id
p202 ltv customers — List customers with LTV rollups, or show one customer in full (CRM, aliases, custom fields, recent revenue)
p202 ltv engagement — One customer's engagement — browsing, instrumented events, and the suggested next offer
p202 ltv engagement-event record — Record an engagement event (demo_requested, pricing_viewed, …) on a customer for the ABM and engagement views
p202 ltv fields create — Define a custom field customers can carry (filter by it with --cf)
p202 ltv fields delete — Delete a custom field and every customer's value for it
p202 ltv fields list — List the account's custom fields (key, type, options, required)
p202 ltv fields update — Change a field's label, select choices, required flag or order (key and type are fixed)
p202 ltv integrations create — Record an integration: its provider, a name, and provider settings as a JSON object
p202 ltv integrations delete — Delete an integration record
p202 ltv integrations list — List the account's integration records with their config
p202 ltv mrr — Subscription economics — active MRR/ARR, status counts, monthly churn with its inputs
p202 ltv next-offer impression — Log that the customer was shown an offer (an email send, an external CRM), for the fatigue rule
p202 ltv predict — Predictive LTV — deterministic projection with guards; every number ships with its inputs
p202 ltv product delete — Delete a catalog product no order line item names (refused while one does)
p202 ltv product update — Edit a catalog product's name, sku or list price by its id (the LTV Products tab's Edit)
p202 ltv product upsert — Create or update a product keyed by your product id (or sku); revenue line items name it the same way
p202 ltv products — The product catalog revenue line items and `ltv product upsert` write to, newest first
p202 ltv revenue record — Record a purchase, one-time charge, refund, chargeback or adjustment on a customer
p202 ltv subscription event — Record a subscription's renewal (extends it, adds revenue), refund (negative revenue) or cancellation
p202 ltv subscription upsert — Create or update a subscription keyed by your billing system's id; MRR follows from amount and interval
p202 ltv subscriptions — Account-wide subscription list joined to customers, filterable by lifecycle status
p202 ltv summary — Realized LTV totals — customers, revenue, avg LTV, AOV, repeat rate, MRR [UI: Analyze › Customer LTV]
p202 ltv webhooks create — Register an endpoint for signed LTV events; the response holds its secret, shown this once
p202 ltv webhooks delete — Delete a webhook and its delivery queue (pending deliveries are dropped, not sent)
p202 ltv webhooks deliveries — A webhook's delivery log, newest first: each event's status, attempts, next retry and last response or error
p202 ltv webhooks list — List the account's LTV webhooks (the secrets are never shown again)
p202 ppc-account create — Create a new ppc-account
p202 ppc-account delete — Delete a ppc-account
p202 ppc-account get — Get a ppc-account by ID
p202 ppc-account list — List traffic sources (PPC accounts)
p202 ppc-account pixel create — Add a pixel to a traffic source account
p202 ppc-account pixel delete — Remove a pixel from a traffic source account (with its correction URL)
p202 ppc-account pixel list — List a traffic source account's pixels
p202 ppc-account pixel update — Change a traffic source account's pixel
p202 ppc-account update — Update a ppc-account
p202 ppc-network create — Create a new ppc-network
p202 ppc-network delete — Delete a ppc-network
p202 ppc-network get — Get a ppc-network by ID
p202 ppc-network list — List traffic source networks (PPC networks) [UI: Setup › Traffic Sources]
p202 ppc-network update — Update a ppc-network
p202 ppc-network variable create — Add a custom variable to a traffic source
p202 ppc-network variable delete — Remove a traffic source's custom variable (new links stop carrying it)
p202 ppc-network variable list — List a traffic source's custom variables
p202 ppc-network variable update — Change a traffic source's custom variable
p202 re-sync — Run incremental sync using stored sync manifest
p202 report breakdown — Get stats broken down by a dimension (campaign, traffic source, country, landing page, etc.) [UI: Overview › Campaign Overview = p202 report breakdown --breakdown campaign; Analyze › Keywords = p202 report breakdown --breakdown keyword; Analyze › Text Ads = p202 report breakdown --breakdown text_ad; Analyze › Referers = p202 report breakdown --breakdown referer; Analyze › IPs = p202 report breakdown --breakdown ip; Analyze › Countries = p202 report breakdown --breakdown country; Analyze › Regions = p202 report breakdown --breakdown region; Analyze › Cities = p202 report breakdown --breakdown city; Analyze › ISP/Carrier = p202 report breakdown --breakdown isp; Analyze › Landing Pages = p202 report breakdown --breakdown landing_page; Analyze › Devices = p202 report breakdown --breakdown device; Analyze › Browsers = p202 report breakdown --breakdown browser; Analyze › Platforms = p202 report breakdown --breakdown platform; Analyze › Custom Variables = p202 report breakdown --breakdown c1]
p202 report breakeven — Break-even CPC per row: max biddable click price (payout × conversion rate)
p202 report crosstab — Two-dimension breakdown (e.g. traffic source × country) for one metric
p202 report daypart — Get stats grouped by hour of day (0-23) to find best-performing hours [UI: Overview › Day Parting]
p202 report groups — Traffic grouped by up to four dimensions, nested, each group with its totals (Group Overview) [UI: Overview › Group Overview]
p202 report losers — Rows to CUT: over-bid keywords/geos and zero-conversion spend; rows that start sales come back as TEST
p202 report summary — Get aggregate totals — clicks, conversions, revenue, cost, profit, ROI for a period
p202 report timeseries — Get stats over time — daily/hourly buckets of clicks, conversions, revenue, etc. [UI: Overview › Breakdown Analysis]
p202 report weekpart — Get stats grouped by day of week (Mon-Sun) to find best-performing days [UI: Overview › Week Parting]
p202 report winners — Rows to SCALE: profitable, converting keywords/geos; closers come back as CLOSER
p202 rotator check — Health-check rotators: flag missing defaults, ruleless rotators, empty rules
p202 rotator create — Create a new redirector/rotator for rule-based traffic splitting
p202 rotator criteria-values — List valid rotator criteria values (e.g. the exact country strings)
p202 rotator delete — Delete a redirector/rotator and all its routing rules
p202 rotator get — Get a redirector/rotator and its routing rules by ID
p202 rotator list — List all redirectors/rotators [UI: Setup › Redirector]
p202 rotator rule-create — Add a routing rule to a redirector/rotator (criteria + redirect targets)
p202 rotator rule-delete — Delete a routing rule from a redirector/rotator
p202 rotator rule-update — Update a routing rule on a redirector/rotator
p202 rotator stats — Show a rotator's performance: its totals, each rule, and its default (clicks no rule matched)
p202 rotator test — Show where a rotator routes traffic per geo (local rule evaluation)
p202 rotator trace — Show the trackers that feed a rotator and where it routes
p202 rotator update — Update a redirector/rotator's name or defaults
p202 search — Find the command for a task: ranks commands, flags, flag values and UI pages by your words (offline)
p202 shell — Interactive shell with session state and batch execution
p202 sync — Sync entities from one profile to another
p202 sync history — Show sync history between profiles
p202 sync status — Show sync status and drift summary between profiles
p202 system cron — Show whether cron is ticking: rows and last run per job type
p202 system dataengine — Show data engine status
p202 system db-stats — Show database table statistics
p202 system errors — Show recent system errors
p202 system health — Check system health and the TLS certificate (no auth required)
p202 system info — What Account › Settings shows: versions, PHP limits, memcache, clicks recorded, database size, cron, DataEngine [UI: Settings]
p202 system integrations — The URLs to paste into ClickBank, JVZoo, Zaxaa, Slack and PayKickstart for this install [UI: 3rd Party API Integrations]
p202 system isp-lookup disable — Turn ISP and carrier lookup off
p202 system isp-lookup enable — Turn ISP and carrier lookup on (refused while the ISP database is missing)
p202 system isp-lookup show — Whether ISP lookup is on, and whether the ISP database it needs is in place
p202 system login-log — Sign-in attempts to this install, newest first: who, when, from which IP, passed or failed
p202 system metrics — Server metrics: sync counters, the sync job queue (queued, running, lag), recent spans and active alerts
p202 system retention delete-before — Schedule the deletion of all click data from before a day (irreversible; previews and asks first)
p202 system retention set — Set the automatic click-data deletion to N days (0 keeps every click); asks when it would keep less
p202 system retention show — Show the automatic deletion (auto_delete_days; 0 keeps everything) and any scheduled one-off deletion
p202 system version — Show Prosper202 and system version info
p202 text-ad create — Create a new text-ad
p202 text-ad delete — Delete a text-ad
p202 text-ad get — Get a text-ad by ID
p202 text-ad list — List text ads (ad creatives with headline, description, and display URL) [UI: Setup › Text Ads]
p202 text-ad update — Update a text-ad
p202 tracker bulk-urls — Fetch tracking URLs for multiple trackers
p202 tracker check — Resolve tracker links and flag blank/dropped destinations
p202 tracker create — Create a new tracker
p202 tracker create-with-url — Create a tracker and return its tracking URL [UI: Setup › Get Links]
p202 tracker delete — Delete a tracker
p202 tracker get — Get a tracker by ID
p202 tracker get-url — Get tracking URL for a tracker
p202 tracker list — List trackers (tracking links that tie a traffic source to a campaign and landing page)
p202 tracker test — Resolve a tracking link's live destination (follows the redirect)
p202 tracker update — Update a tracker
p202 user apikey create — Create an API key for a user
p202 user apikey delete — Delete an API key
p202 user apikey list — List API keys for a user
p202 user apikey rotate — Rotate an API key by creating a new one and optionally deleting the old one
p202 user create — Create a new user
p202 user delete — Delete a user (soft-delete); supports --ids for bulk
p202 user get — Get a user with roles
p202 user identity-key get — Show the identity linking key (minted on first use)
p202 user identity-key rotate — Replace the identity linking key; signatures made with the old key stop linking
p202 user list — List all users [UI: User Management]
p202 user prefs get — Get user preferences
p202 user prefs update — Update user preferences (profile, report defaults, integration keys, LTV settings) [UI: Personal Settings]
p202 user role assign — Assign a role to a user
p202 user role list — List all available roles
p202 user role remove — Remove a role from a user
p202 user update — Update a user: rename, name, email, timezone, active, password
p202 whoami — Show the user, roles and scopes the configured API key acts as
(no command) Home — the account home is a get-started checklist. Its steps are `p202 ppc-network create` and `p202 ppc-account create`, `p202 campaign create`, then `p202 tracker create-with-url`.
(no command) Watch TV202 — it plays Tracking202's hosted videos. Open the page in the web UI.
(no command) Hot Deals & Discounts — it lists Tracking202's hosted offers. Open the page in the web UI.
(no command) VIP Perks Profile — it is your profile on Tracking202's hosted service. Open the page in the web UI.
(no command) Help — it links the documentation and support. `p202 --help`, `p202 <command> --help` and `p202 commands` describe the CLI.
(no command) upgrade — upgrades run from the web UI's upgrade page. `p202 system info` says which version is installed and whether an upgrade is needed.
Real output · p202 1.9.77 · demo dataexit 0
p202 commands report --brief
$ p202 commands report --brief
p202 report breakdown — Get stats broken down by a dimension (campaign, traffic source, country, landing page, etc.) [UI: Overview › Campaign Overview = p202 report breakdown --breakdown campaign; Analyze › Keywords = p202 report breakdown --breakdown keyword; Analyze › Text Ads = p202 report breakdown --breakdown text_ad; Analyze › Referers = p202 report breakdown --breakdown referer; Analyze › IPs = p202 report breakdown --breakdown ip; Analyze › Countries = p202 report breakdown --breakdown country; Analyze › Regions = p202 report breakdown --breakdown region; Analyze › Cities = p202 report breakdown --breakdown city; Analyze › ISP/Carrier = p202 report breakdown --breakdown isp; Analyze › Landing Pages = p202 report breakdown --breakdown landing_page; Analyze › Devices = p202 report breakdown --breakdown device; Analyze › Browsers = p202 report breakdown --breakdown browser; Analyze › Platforms = p202 report breakdown --breakdown platform; Analyze › Custom Variables = p202 report breakdown --breakdown c1]
p202 report breakeven — Break-even CPC per row: max biddable click price (payout × conversion rate)
p202 report crosstab — Two-dimension breakdown (e.g. traffic source × country) for one metric
p202 report daypart — Get stats grouped by hour of day (0-23) to find best-performing hours [UI: Overview › Day Parting]
p202 report groups — Traffic grouped by up to four dimensions, nested, each group with its totals (Group Overview) [UI: Overview › Group Overview]
p202 report losers — Rows to CUT: over-bid keywords/geos and zero-conversion spend; rows that start sales come back as TEST
p202 report summary — Get aggregate totals — clicks, conversions, revenue, cost, profit, ROI for a period
p202 report timeseries — Get stats over time — daily/hourly buckets of clicks, conversions, revenue, etc. [UI: Overview › Breakdown Analysis]
p202 report weekpart — Get stats grouped by day of week (Mon-Sun) to find best-performing days [UI: Overview › Week Parting]
p202 report winners — Rows to SCALE: profitable, converting keywords/geos; closers come back as CLOSER
Real output · p202 1.9.77 · demo dataexit 0

03Build your command

Pick values and the command line writes itself, quoted and ready to paste.

p202 commands

Set flags below; the command updates as you type.

04Flags

1 flag, plus the global flags every command takes.

FlagWhat it does
--briefboolOne line per command (path, summary, the UI page it does): the catalog an agent reads to choose a command

05How it works

Dumps the command tree: for each command its path, aliases, description, examples and flags (name, shorthand, type, default, usage, allowed values, required). Global flags are listed once under global_flags. Name a command to list only its subtree.

--brief is the catalog an agent reads to choose a command: every command on one line (its path, summary and the web UI page it does, with that page's command line), and the pages no command does; about 6,000 tokens. It prints as text even where an agent would get JSON by default; --json gives it as JSON. Then p202 <command> --help for the flags. To rank commands by your words instead, use p202 search <words>.

06For agents

Running this from an agent

  • Read the same facts as JSON: p202 commands commands --json.
  • With AI_AGENT, CLAUDECODE or another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with a hint.
  • Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
p202 commands commands --json
{
  "path": "p202 commands",
  "use": "commands [command...]",
  "short": "List every command and flag (with allowed values) in one call; --json for agents",
  "long": "Dumps the command tree: for each command its path, aliases, description, examples\nand flags (name, shorthand, type, default, usage, allowed values, required). Global\nflags are listed once under global_flags. Name a command to list only its subtree.\n\n--brief is the catalog an agent reads to choose a command: every command on one\nline (its path, summary and the web UI page it does, with that page's command line),\nand the pages no command does; about 6,000 tokens. It prints as text even where an\nagent would get JSON by default; --json gives it as JSON. Then `p202 <command> --help`\nfor the flags. To rank commands by your words instead, use `p202 search <words>`.",
  "runnable": true,
  "example": "p202 commands --brief\n  p202 commands --json\n  p202 commands report\n  p202 commands --quiet",
  "flags": [
    {
      "name": "brief",
      "type": "bool",
      "default": "false",
      "usage": "One line per command (path, summary, the UI page it does): the catalog an agent reads to choose a command",
      "required": false
    }
  ]
}