@nirnatan/ebank-cli
v0.0.1
Published
CLI for Israeli bank and credit card transaction data
Readme
ebank-cli
CLI for fetching Israeli bank and credit card transaction data.
Features
- Add and manage multiple accounts.
- Store account credentials encrypted with a master password.
- Scrape transactions for a single account or all accounts.
- Output as
table,json, orcsv. - Persist transactions locally and deduplicate across runs.
Requirements
- Node.js 18+ (recommended: latest LTS)
- pnpm
Install
pnpm install
pnpm buildRun in development:
pnpm dev -- --helpRun compiled CLI:
pnpm start -- --helpOr install globally from this folder:
pnpm link --global
ebank --helpUsage
Add an account
Interactive:
ebank add-accountNon-interactive:
ebank add-account \
--name my-leumi \
--company leumi \
--credentials '{"username":"123456789","password":"secret"}'Optional: pass master password using -p or EBANK_MASTER_PASSWORD.
List accounts
ebank list-accounts
ebank lsRemove an account
ebank remove-account my-leumi
ebank rm my-leumi -yScrape transactions
Single account:
ebank scrape my-leumiAll accounts:
ebank scrape --allFrom specific date:
ebank scrape my-leumi --from 2026-01-01JSON or CSV output:
ebank scrape my-leumi --format json
ebank scrape my-leumi --format csv --output ./transactions.csvDisable local save:
ebank scrape my-leumi --no-saveData and Configuration
- Config directory:
~/.ebank-cli - Encrypted accounts file:
~/.ebank-cli/accounts.json - Stored transactions:
~/.ebank-cli/data/*.json
Credential payloads are encrypted before being written to disk.
Notes
- If
--fromis not provided, scraping starts from:- one day before the latest stored transaction date (if available), or
- one month back from today.
- Account names should be unique.
License
MIT
