fobs stm categories
fobs stm categories <action> [options]
One action:
| Action | Description |
|---|---|
list | List categories with period-scoped count, inflow, and outflow |
Read-only — categories have no separate model. To change a category, edit the category field on the affected transactions with fobs stm transactions edit.
categories list
fobs stm categories list --from 2026-04-01 --to 2026-06-30
fobs stm categories list --from 2026-04-01 --to 2026-06-30 --type expense
fobs stm categories list --from 2026-04-01 --to 2026-06-30 --accounts acc1,acc2
fobs stm categories list --from 2026-04-01 --to 2026-06-30 --totals
fobs stm categories list --from 2026-04-01 --to 2026-06-30 --format csv --output categories.csv
fobs stm categories list --from 2026-04-01 --to 2026-06-30 --format json --output categories.json
Flags
| Flag | Default | Description |
|---|---|---|
--from <YYYY-MM-DD> | required | Start date |
--to <YYYY-MM-DD> | required | End date |
--accounts <ids> | all | Comma-separated account IDs |
--type <type> | all | income, expense, asset, liability, transfer, or unknown |
--fields <list> | default columns | Comma-separated field names |
--totals | — | Print count + inflow/outflow sums over all matching transactions |
--format <fmt> / --output <path> | table / stdout | Export to CSV / JSON file |
--json | — | Raw JSON output |
Default Columns
CATEGORY, TYPE, COUNT, INFLOW, OUTFLOW.
Notes
--from/--toare required and validated client-side (missing, malformed, or--fromafter--to) before any API call, with errors reported using the CLI's own--from/--toflag names.- No pagination — the endpoint returns one row per distinct category+type pair in the range, not a per-transaction list.
- Matches GET /api/v1/categories exactly; the web UI additionally nests these rows into a type-grouped tree client-side.
- For the transactions behind a category, use
fobs stm transactions list --category <name>.
Related
- Categories API — REST endpoint and response shape
- Entities — the same aggregation, grouped by entity
- Transactions — edit the
categoryfield - Common Flags — flags that work across commands