Table, row, and report commands
Identity
Section titled “Identity”API-backed tables, rows, and api command groups.
Contract
Section titled “Contract”-
rows list <table>accepts--limit,--page,--sort,--q, JSON--where, JSON--fixed, and--tree <mode>.--whereand--fixedtake the same{"column":{"operator":value}}object;--wherebecomesfilter[...]conditions and--fixedbecomesfixed[...]conditions. -
On a table with
meta.tree,--tree ancestorsor--tree ancestors-and-descendantsreturns each--qor--wherematch with its ancestors (and its subtree). The rows around the matches also satisfy--fixed:Terminal window pnpm exec sapporta rows list accounts --q taxes --tree ancestors \--fixed '{"archived":{"eq":false}}' -
rows get <table> <id>reads one visible row. -
rows count <table>counts visible rows without loading complete records. It accepts JSON--whereand optional--group-by <column>. Grouped counts accept--order asc|descand--limit <number>; both options require--group-by. -
rows create <table> --values <json>accepts one object or an array. -
rows update <table> <id> --values <json>updates one visible row;rows deleteremoves one. -
A scalar count renders one
countcolumn. A grouped count rendersvalueandcountcolumns. JSON output preserves the HTTP result’s discriminatedtotalorgroupedenvelope. -
Report routes are called through
api getorapi post; there is no separatereportscommand group.