Meridian handbook
ReferenceCLI

analytics

engine-dmo analytics: Rollups, recompute, retention and member reports. Every subcommand, argument and flag.

Rollups, recompute, retention and member reports.

CommandWhat it does
engine-dmo analytics collectionReport the events a site received by collection path (rendered, beacon, api) over the last days, and a headless site’s collection health
engine-dmo analytics digestQueue the member report digest for the current period
engine-dmo analytics exportExport a dashboard or one metric over a range as CSV or JSON, as the Insight screen’s export does; audited
engine-dmo analytics partitionsList the monthly raw partitions, create them ahead, and drop expired ones with --drop-expired
engine-dmo analytics pruneApply retention: raw partitions past raw_retention_days, hourly rollups and search log rows past theirs
engine-dmo analytics recomputeRebuild every rollup level from raw events for a range, idempotently, under the rules in force
engine-dmo analytics reportOne member’s report, as text or as a PDF
engine-dmo analytics report-runQueue an organisation report from analytics/reports.yaml for its current period
engine-dmo analytics rollupRoll raw events up into the hourly, daily and monthly tables for a range

engine-dmo analytics collection

Report the events a site received by collection path (rendered, beacon, api) over the last days, and a headless site’s collection health.

engine-dmo analytics collection [flags]
FlagTypeDefaultMeaning
--daysint7how many days back, 1 to 90
--sitestringsite key (default: the default site)

--json prints the command’s own JSON document. Runs in a project.

engine-dmo analytics digest

Queue the member report digest for the current period.

engine-dmo analytics digest [flags]

Available in engine-dmo only.

FlagTypeDefaultMeaning
--runboolwork through the mail queue here rather than leaving it to the server

--json prints the text output in the JSON envelope. Runs in a project.

engine-dmo analytics export

Export a dashboard or one metric over a range as CSV or JSON, as the Insight screen’s export does; audited.

engine-dmo analytics export [flags]
FlagTypeDefaultMeaning
--asstringexport as this staff account (email), which needs analytics.export on the site
--comparestringprevious_year | previous_period | none (default: the dashboard’s)
--dashboardstringa dashboard from analytics/dashboards.yaml; default is the overview
--formatstringcsvcsv | json
--fromstringthe first day of a custom range, YYYY-MM-DD, in the site’s zone
--metricstringone metric of the catalogue, as a single tile
--outstringfile to write; standard output when empty or -
--rangestringa range preset: today, 7d, 30d, 90d, 12m, this_month, previous_month, this_quarter, previous_quarter, this_financial_year, previous_financial_year, previous_year (default: the dashboard’s)
--sitestringsite key (default: the default site)
--tostringthe last day of a custom range, inclusive

--json prints the command’s own JSON document. Runs in a project.

engine-dmo analytics partitions

List the monthly raw partitions, create them ahead, and drop expired ones with --drop-expired.

engine-dmo analytics partitions [flags]
FlagTypeDefaultMeaning
--drop-expiredboolalso apply retention, as engine-dmo analytics prune does

--json prints the command’s own JSON document. Runs in a project.

engine-dmo analytics prune

Apply retention: raw partitions past raw_retention_days, hourly rollups and search log rows past theirs.

engine-dmo analytics prune [flags]
FlagTypeDefaultMeaning
--dry-runboolreport what would go and change nothing

--json prints the text output in the JSON envelope. Runs in a project.

engine-dmo analytics recompute

Rebuild every rollup level from raw events for a range, idempotently, under the rules in force.

engine-dmo analytics recompute [flags]
FlagTypeDefaultMeaning
--fromstringfirst day, YYYY-MM-DD
--tostringlast day, inclusive, YYYY-MM-DD (default today)

--json prints the text output in the JSON envelope. Runs in a project.

engine-dmo analytics report

One member’s report, as text or as a PDF.

engine-dmo analytics report [flags]

Available in engine-dmo only.

FlagTypeDefaultMeaning
--formatstringtexttext, html or pdf
--fromstringstart date, such as 2026-01-01 (default: a year ago)
--organisationstringthe organisation’s id
--outstringwhere to write; empty prints text and HTML to the terminal and writes a PDF to report.pdf, and - writes any format to standard output
--sitestringsite key (default: the default site)
--tostringend date (default: today)

--json prints the text output in the JSON envelope. Runs in a project.

engine-dmo analytics report-run

Queue an organisation report from analytics/reports.yaml for its current period.

engine-dmo analytics report-run [flags]

Available in engine-dmo only.

FlagTypeDefaultMeaning
--reportstringthe report’s key in analytics/reports.yaml
--runboolwork through the mail queue here rather than leaving it to the server
--sitestringthe site; the default site when empty

--json prints the text output in the JSON envelope. Runs in a project.

engine-dmo analytics rollup

Roll raw events up into the hourly, daily and monthly tables for a range.

engine-dmo analytics rollup [flags]
FlagTypeDefaultMeaning
--fromstringfirst day, YYYY-MM-DD
--tostringlast day, inclusive, YYYY-MM-DD (default today)

--json prints the text output in the JSON envelope. Runs in a project.