Command reference
All commands are reads. Global flags work everywhere; schema --json is the
always-current machine-readable source.
Global flags
Section titled “Global flags”| flag | purpose |
|---|---|
--json / --format json|plain|tsv |
output format (data → stdout, everything else → stderr) |
--select a,b.c |
project top-level fields (dot-path) |
--limit N |
bound list size (default 50) |
--detailed |
richer output (e.g. item get bullets/specs) |
--provider <name> |
choose a backend (or RIVR_PROVIDER) |
--associate-tag <id> / --no-associate-tag |
deep-link affiliate tag |
--no-wrap-untrusted |
disable prompt-injection fencing |
--no-input |
never prompt; fail with exit 13 instead |
rivr search <query> # --category --prime --min-rating --min-price --max-price --sort --cursorrivr item get <ASIN>... # one or more ASINs; --detailedrivr item offers <ASIN> # live offers / buybox / availabilityrivr reviews <ASIN> # --cursor; response carries scope: full | samplerivr variations <ASIN> # size/color/stylerivr browse <node-id> # category (browse-node) tree — creators backend onlyrivr provider list # backends + capability/cost/risk descriptor--select projects top-level fields, so it works on object results (item get) directly;
for search, project inside items with jq (e.g. … --json | jq '.items[] | {asin,price}').
Auth & ops
Section titled “Auth & ops”rivr auth login|status|logout|refreshrivr doctor # diagnosticsrivr schema # command tree, flags, exit codes, providers, live safety staterivr agent # print the embedded agent guide (SKILL.md)rivr versionExit codes
Section titled “Exit codes”| code | meaning |
|---|---|
| 0 | ok |
| 2 | usage / parse |
| 3 | empty results |
| 4 | auth required |
| 5 | not found |
| 6 | permission / ASSOCIATE_NOT_ELIGIBLE |
| 7 | rate limited / blocked (carries retryAfterSeconds) |
| 8 | retryable (transient; auto-retried) |
| 9 | upstream / schema drift |
| 10 | config |
| 11 | unsupported by provider |
| 13 | input required (--no-input hit a prompt) |
| 130 | cancelled |
Errors are {error, code, remediation, retryAfterSeconds?} on stderr.