Skip to main content
Every command reads the site picked by --site, CRISPSTATS_SITE or crispstats use (see pick a site), and takes the flags for every command. Each one calls one endpoint of the REST API; its flags are that endpoint’s query parameters, and the API names any flag value it does not accept. Run crispstats <command> --help for the same list in the terminal.

Period and filter flags

Most reports take these flags, the query parameters the endpoints share:

Sign in

Workspace

sites show and sites update act on the site given as their argument, or on --site and the default. sites create takes --domain (required: a domain, or with --app an app’s bundle id), --name, --timezone (IANA, default UTC) and --currency (default USD). sites update takes --name, --domain, --timezone, --currency, --bot-filter off|standard|strict, the switches --persist-visitors, --paused and --public-live-count (each on or off), and these lists, each repeatable or comma-separated and each replacing the stored list (pass "" once to clear it): --hostname, --exclude-path, --query-param, --excluded-hostname, --excluded-country. --exclude-ip and --include-ip add or remove one IP address from the excluded ones; only a hash is stored.

Traffic

stats

Key metrics: visitors, sessions, pageviews, views per visit, bounce rate, visit duration, revenue, conversion rate. GET /sites/{siteId}/stats.

timeseries

The same metrics per hour, day, week or month. GET /sites/{siteId}/timeseries. --granularity hour|day|week|month, picked from the period by default.

breakdown

Top values of one dimension with visitors, pageviews, bounce rate, duration, revenue and share. GET /sites/{siteId}/breakdown/{dimension}. Dimensions: page, entry_page, exit_page, hostname, channel, source, referrer, utm_source, utm_medium, utm_campaign, utm_term, utm_content, country, region, city, browser, os, device, language, event, ai_assistant, outbound_link.
Shortcuts: pages, sources, referrers, channels, campaigns, countries, devices and browsers are breakdown with that dimension, such as crispstats sources --range 7d.

realtime

Visitors on the site now, pageviews in the last 30 minutes, top pages, sources and countries, and recent payments. GET /sites/{siteId}/realtime.

realtime map

Everyone on the site now, up to 200, with country, city, coordinates rounded to 0.1 degrees, page, source, device and whether they have paid, plus the latest payments in --json. A visitor known only by country is placed at its centre. GET /sites/{siteId}/realtime/map.

Revenue

revenue

Revenue, new and renewal revenue, refunds, MRR, customers, average order, revenue per visitor and conversion rate. GET /sites/{siteId}/revenue.

payments

Payments with their kind, amount, product, masked customer, source and country. GET /sites/{siteId}/payments. Takes --limit (up to 100), --offset and --all. crispstats payments list is the same.

payments record

Records a payment, renewal, refund or free trial from your own checkout. POST /sites/{siteId}/payments, needs a key with Revenue and payments: write. See the payments API for how payments are attributed.

payments delete

Deletes payments recorded through the API, such as test sales, and free trials recorded through the API that match. Payments from a connected provider are never deleted. DELETE /sites/{siteId}/payments, needs Revenue and payments: write. Pick the payments with --transaction-id, with --visitor-id (optionally within --from and --to), or with both --from and --to. It asks before deleting. Pass --yes to skip the question; without a terminal to ask in, --yes is required. The API deletes up to 1,000 payments a call; the CLI calls again until everything that matches is gone.

Conversions

goals

Goals with completions, unique visitors, conversion rate and revenue. GET /sites/{siteId}/goals.

events

Custom events with count, unique visitors and when each was last seen. GET /sites/{siteId}/events. --limit up to 100.

events properties

One custom event broken down by its properties. GET /sites/{siteId}/events/{event}/properties. --limit values per property, up to 50.

events delete

Deletes custom events of one name, such as test events, between two days or times. Pageviews and errors are never touched. DELETE /sites/{siteId}/events, needs Goals and events: write from a key made by an owner or admin. --name <event> or --goal <id> (a goal that counts an event) picks the events; --from and --to are both required, each a day in the site’s timezone or an ISO time, --to inclusive. It asks before deleting, like payments delete, and accepts --yes. The API deletes up to 1,000 events a call; the CLI calls again until none match.

funnels

Without an argument, the site’s funnels (GET /sites/{siteId}/funnels). With a funnel id, each step with visitors, conversion from the start and from the previous step, drop-off and median time (GET /sites/{siteId}/funnels/{funnelId}). --segment-by <dimension> splits each step.

funnels create, update and delete

funnels create makes a funnel from its steps (POST /sites/{siteId}/funnels), funnels update <funnel> changes only what is given (PATCH), and funnels delete <funnel> removes it (DELETE, asks first, accepts --yes). They need Funnels: write.

retention

Cohorts of visitors by when they were first seen and the share that came back in each later interval. GET /sites/{siteId}/retention. --interval day|week|month, week by default.

Visitors

visitors

Without an argument, visitors with country, device, sessions, pageviews, revenue and first source (GET /sites/{siteId}/visitors). With a visitor id, that visitor and their sessions (GET /sites/{siteId}/visitors/{visitorId}, --sessions <n> for how many).

Health and AI

Notes and alerts

notes

crispstats notes lists the dated notes on the charts, newest first (GET /sites/{siteId}/notes, Notes: read). --from and --to (days), --search, --limit (up to 500) and --offset. notes list is the same. crispstats notes add "<text>" adds one (POST, Notes: write). --at picks the day: now (the default, today in the site’s timezone), YYYY-MM-DD, or an ISO time placed on its day in the site’s timezone. The same text on the same day is added once, so a deploy script can run it on every deploy and retries never stack notes. crispstats notes update <note> changes --text or --at (PATCH). crispstats notes delete <note> removes it (DELETE), asking first; --yes skips the question.

alerts

alerts create takes --name and --rule (both required; the rule is one of traffic_spike, traffic_drop, no_traffic, error_spike, new_error, vitals_regression, monitor_down, goal_completed, revenue_received, revenue_milestone, usage_limit), --threshold (a ratio such as 1.5 for spikes and drops, a count for errors, minor units for revenue, milliseconds for vitals), --window and --cooldown in minutes (60 by default), --channel <id> (repeatable, from alerts; with none the alert is only logged in its history), --metric, --goal <id> (repeatable) and --delivery each|summary for goal_completed, --monitor <id> for monitor_down, and --disabled to create it switched off.

Raw data

raw-events

The site’s events one by one, oldest first, for exports. GET /sites/{siteId}/raw-events, needs a key with Raw events export and Visitor details. --from is required; --to defaults to now. A page holds up to 10,000 events (--limit); pass the printed cursor back with --cursor, or use --all to follow every page. The table shows a few columns: --json has them all. See raw events.

api

Calls any endpoint, for what has no command yet. The path is relative to /api/v1 (a full path or URL on the API’s own host works too; the key is never sent to another host). -q key=value adds a query parameter, repeatable. -d sends a JSON body: inline, @file to read a file, or - for stdin. A DELETE asks first, like payments delete.
The response body is printed as sent, formatted for reading when the output is a terminal and untouched otherwise or with --json.
Last modified on December 3, 2026