@redbark/cli
v0.1.1
Published
Redbark CLI — read your bank and brokerage data from the Redbark API in your terminal.
Maintainers
Readme
Redbark CLI
Your bank and brokerage data, in your terminal. A thin client for the Redbark API — accounts, balances, transactions, connections, holdings, and trades, as clean tables or raw JSON.
Redbark syncs bank and brokerage accounts to Google Sheets, Airtable, Notion, YNAB, and webhooks — built on Australia's Consumer Data Right (CDR) open banking framework. Your banking data is never stored by Redbark; this CLI reads it live from your connected institutions.
Install
npm install -g @redbark/cli # or: bun install -g @redbark/cliRuns on any Node.js 18+ (or Bun). Standalone binaries that need no runtime at all are on the roadmap.
Quickstart
redbark login # paste an API key from https://app.redbark.com/settings
redbark accounts # list your accounts
redbark balances # balances across every account
redbark transactions --account acc_123 --from 2026-06-01For scripts and CI, skip login and set the key in the environment:
REDBARK_API_KEY=rbk_live_… redbark accounts --json | jq '.data[].name'Commands
| Command | What it does |
|---|---|
| redbark login | Verify and save an API key (~/.config/redbark/config.json, mode 0600) |
| redbark logout | Remove the saved key |
| redbark whoami | Auth status, key source, connection count, rate-limit headroom |
| redbark connections | List bank/brokerage connections and their freshness |
| redbark accounts | List accounts (--limit, --offset) |
| redbark balances [accountIds…] | Balances — all accounts if none given |
| redbark transactions --account <id> | Transactions (--from, --to, --limit, --offset; connection auto-resolved) |
| redbark categories | Transaction category taxonomy |
| redbark holdings --connection <id> | Brokerage holdings (Professional plan) |
| redbark trades --connection <id> | Brokerage trades (Professional plan) |
Every command accepts a global --json flag for raw API output; tables are
plain aligned text, friendly to grep and awk.
Development
Built with Bun, Commander, and @clack/prompts.
bun install
bun run dev -- accounts # run from source
bun test # test suite
bun run typecheck # tsc --noEmit
bun run compile # standalone binary at dist/redbarkSecurity
The CLI sends your API key only to api.redbark.com over HTTPS and stores it
locally with owner-only permissions. Report vulnerabilities per
SECURITY.md — never via a public issue.
License
Apache-2.0. "Redbark" is a trademark of Redbark — see NOTICE.
