Pagination¶
List commands return one page. How a command asks for the next page follows the
product API it calls, and the CLI exposes exactly the parameters that endpoint
binds — so fgai <group> help is always the authority for a given command.
Product family |
Paging parameters |
Applies to |
|---|---|---|
DotID |
|
Page-indexed lists: organizations and OUs, IAM policies |
DotID |
|
Audit event lists |
TrustMint |
|
List commands that continue |
Bazaar |
|
Most list commands |
Bazaar |
|
Lists that resume from a domain boundary value |
NovaBell |
|
The notification feed |
Journal |
|
Notice lists |
Why the parameters differ¶
The parameter name is part of each API’s contract: a page-indexed controller
reads page/size, and a keyset controller reads limit/cursor or
limit/after. A CLI flag is the wire name. Renaming a flag in the CLI to match
another product would send a parameter the endpoint never reads — the failure
that quietly ignores the value and serves page one again, which looks like a
working command. Two platform issues of exactly that shape were filed and fixed
(DotID#1807, bazaar#313), and each fix carries a test that drives the real
command and asserts the value reaches the request.
Converging on one dialect is therefore a change to the API contract, one product at a time — never a CLI rename.
Continuing a list¶
The response carries the continuation value its endpoint defines — next_cursor
in DotID audit and Bazaar, nextCursor in NovaBell. Pass it back unchanged to
the flag the same command advertises:
fgai audit account-events --account "$ACCOUNT_ID" \
--from 2026-11-01T00:00:00Z --to 2026-11-02T00:00:00Z --limit 50 --json
# → {"items": [...], "next_cursor": "..."}
fgai audit account-events --account "$ACCOUNT_ID" \
--from 2026-11-01T00:00:00Z --to 2026-11-02T00:00:00Z --limit 50 \
--cursor "$NEXT" --json
A null continuation means that page is the last one. Never parse, edit or construct a cursor yourself: it is opaque and resolves only against the filters it was issued under, so reusing one under a different filter returns the wrong rows rather than an error.
--page/--size takes no continuation value. Read the page count (or total
where the response carries it) and request the next page index.