CLI Reference
firma is built around Claude, so most people barely touch the CLI after setup. Still, every MCP tool has a matching firma command for scripting, automation, or direct terminal use. Every read command also supports --json.
Setup
firma config set finnhub-key <key>Set Finnhub API key (free at finnhub.io)firma config set fred-key <key>Set FRED API key (free at fred.stlouisfed.org)firma config set currency <CODE>Set home display currency (KRW, USD, JPY, EUR, …)firma config get [key]Show config valuesfirma mcp installRegister the MCP server in Claude Desktop configfirma doctorCheck setup status, including keys, data, and the FX cache. Suggests fixes when something is missing.firma profileSet up goals interactively (5 fields, all optional)Portfolio
firma show portfolioHoldings with P&L, avg cost, market valuefirma show txns [ticker]Transaction history with running average costfirma show dividendEstimated annual dividend income + per-ticker yieldfirma show concentrationHHI concentration by ticker, currency, sector, countryfirma show snapshot [ticker]Portfolio value history. --from/--to for rangefirma show benchmarkPortfolio return vs SPY/QQQ. -b for custom benchmarksfirma show riskVolatility, drawdown, Sharpe, Sortino, and beta. Requires snapshotsfirma show profileStored goals (birth year, retirement target, target net worth, …)Net Worth & Cash Flow
firma add balance [-p YYYY-MM]Monthly asset & liability snapshot wizardfirma add flow [-p YYYY-MM]Monthly income & expense entry wizardfirma add monthly [-p YYYY-MM]Record balance and cash flow in one session. Best for month-endfirma show balance [-p YYYY-MM]Stored balance entriesfirma show flow [-p YYYY-MM]Stored flow entriesfirma reportNet worth trend + cash flow charts (combined)firma report balance / flow / settleTargeted views. -c USD to display in any currencyTransactions & Snapshots
firma add txnRecord one transaction: buy, sell, deposit, dividend, or taxfirma edit txn [id]Edit a transaction (date, shares, price, reason)firma delete txn [id]Delete a transactionfirma add snapshotSync prices and record today's portfolio snapshotfirma edit snapshotEdit a snapshot entry (interactive picker)firma delete snapshot [date]Delete all entries for a dateDaily Brief & Sync
firma briefMovers, news, earnings, and macro context. Cached daily, and it auto-snaps if today's snapshot is missing. --refresh regenerates it.firma syncFetch latest prices (Finnhub) + FX rate history (FRED)firma sync fxRefresh FX history only, with incremental backfillMacro
firma show macroVIX, 10Y yield, yield curve, USD index, HY spread, inflation, fed funds, FXfirma show stressEconomic Stress Index (0–100) from 5 FRED seriesfirma show regimeMacro regime bias. Risk-on / Mixed / Risk-offfirma show fx [currency]Cached FX history. --from/--to/--limitResearch
firma show news <ticker>Recent company newsfirma show insider <ticker>Insider buy/sell transactionsfirma show financials <ticker>SEC-reported quarterly financialsfirma show earnings [ticker]Earnings calendar + EPS historyTips
--json on every read commandPipe firma output into jq, scripts, or other tools. It is the same data Claude sees, with the same field names.
firma rm aliases firma deleteShorter form for the destructive verbs.
Local SQLite at
~/.firma/firma.dbEverything lives in one file. Back it up, copy it between machines, or open it directly with any SQLite client.