Filtering and pagination
Commands that list a collection accept the same filtering, ordering, and paging flags. The
expressions are the platform’s, not the CLI’s: --filter and --order-by are passed to the
API verbatim, so what you can write is exactly what Filtering documents.
Filtering and ordering
Section titled “Filtering and ordering”qibdo taxonomy workspaces list --filter 'state = "ACTIVE"'Quote the expression so the shell leaves it alone. Single quotes on the outside and double quotes around string values is the combination that survives every shell without escaping.
--order-by takes an ordering expression the same way. Filterable and sortable fields are
curated per resource and are not the same set, so check the resource’s reference page rather
than assuming a field supports both.
Pagination is transparent
Section titled “Pagination is transparent”By default, listing a collection lists all of it. The CLI fetches every page and renders the whole result, so you do not have to loop over page tokens to answer a simple question.
Three flags shape that:
--limitcaps the total number of items the CLI will return, across as many pages as it takes to reach the cap. This is the flag you want for “just show me a few”.--page-sizesets how many items each request asks for. It shapes the requests, not the result: the CLI still walks every page.--page-tokenselects one page manually, for a script driving pagination itself.
qibdo taxonomy workspaces list --limit 20Only --page-token turns the transparent behaviour off: the CLI returns exactly one page and
prints the next page’s token on stderr, so a script can capture it and resume. To bound how
much a command returns, reach for --limit, not --page-size.
--skip applies a server-side offset, and it applies to the first page only.
Bounding a projection
Section titled “Bounding a projection”--query buffers the whole result before projecting it, so on a large collection pair it with
--limit:
qibdo taxonomy workspaces list --query '[].name' -o tsv --limit 100Related
Section titled “Related”- Filtering for the expression grammar, operators, and functions
- Output and scripting