This page covers CLI v0.2.0, which uses API v2. Check
redbark --version before using these commands; older v0.1.x scripts use different IDs, flags and response fields.CLI access uses your API key, so it requires an active Developer or Professional plan — the same access as the REST API. Brokerage commands (
holdings, trades) additionally require a Professional plan.Install
- npm
- bun
redbark --version.
Authentication
Create an API key in Settings > API & MCP, then:~/.config/redbark/config.json with owner-only permissions (0600). The default API host is https://api.redbark.com; REDBARK_API_URL or the saved baseUrl can override it. Only configure a host you trust with the key.
For scripts and CI, skip login and pass the key in the environment instead — it takes precedence over the saved config:
redbark whoami, and remove the saved key with redbark logout.
Commands
Examples
grep and awk work on them directly. Add --json for the raw API response. In v0.2.0, redbark balances --json is an exception when there are no banking accounts: it prints a plain-text message, not an empty JSON list. Check for that case before parsing its output.
Paginated list commands return one page unless you pass --all, which follows the API’s available pages. Transaction ranges can hit a 5,000-row ceiling even with --all; split large exports with narrower --from and --to values rather than assuming every matching transaction was returned. JSON pipelines must follow pagination too; discarding next_page_url can silently omit later records.
Rate limits
The CLI is subject to the same per-key rate limits as direct API calls.redbark whoami shows your remaining headroom, and the CLI honours Retry-After messaging when a limit is hit.
Troubleshooting
For Fiskil balances,
freshness distinguishes a recent live observation (fresh), a retained observation (stale), the provider’s stored copy of unknown age (stored), and no available balance (unavailable). observed_at is null for stored and unavailable; Redbark never caches the provider-stored copy. See balance freshness and retry advice.
redbark balances calls the single-account v2 route for each account, not the bulk balances route, so its JSON does not include per-account retry_after_seconds. A refresh refusal can instead fail the command with 429 balance_refresh_limited; follow the reported retry interval.
A multi-account command prints no partial results if any account request fails, even if other accounts have already refreshed. With caching disabled, retrying the whole command can then hit those accounts’ refresh holds. Query one account at a time, save each successful JSON result and retry only the failed account after its wait. For partial results in one request, use the bulk balances API and merge results across calls.

