Skip to main content
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.
The Redbark CLI brings your accounts, balances, transactions, and brokerage data into the terminal, as tables for reading or raw JSON for scripts. It also supports v2 management commands for connections, syncs, destinations, categories, rules and API keys. It is a thin client over the REST API v2 and is open source on GitHub.
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

Runs on Node.js 18+ or Bun. Verify the install with redbark --version.

Authentication

Create an API key in Settings > API & MCP, then:
The key is verified against the API before being saved to ~/.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:
Check your auth state at any time with redbark whoami, and remove the saved key with redbark logout.

Commands

Commands follow redbark <resource> <verb> [id] [flags]. Use redbark <resource> --help to list verbs and redbark <resource> <verb> --help for flags and required scopes. The bare read commands above run the corresponding list command.

Examples

Tables are plain aligned text with no borders, so 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.

Source

The CLI is Apache-2.0 licensed at github.com/redbark-co/cli. Bug reports and PRs are welcome; security issues go to security@redbark.com per the repo’s SECURITY.md.