Manage YNAB budgets, accounts, categories, and transactions.
2026-03-31
新闻来源:网淘吧
围观:19
电脑广告
手机广告
YNAB CLI
安装
npm i -g @stephendolan/ynab-cli
认证

# Get API key from https://app.ynab.com/settings/developer
# Then set YNAB_API_KEY env var, or:
ynab auth login
ynab auth status
预算
ynab budgets list
ynab budgets view [id]
ynab budgets set-default <id>
账户
ynab accounts list
ynab accounts view <id>
ynab accounts transactions <id>
类别
ynab categories list
ynab categories view <id>
ynab categories transactions <id>
ynab categories budget <id> --month <YYYY-MM> --amount <amount>
交易
ynab transactions list
ynab transactions list --account <id> --since <YYYY-MM-DD>
ynab transactions list --approved=false --min-amount 100
ynab transactions search --memo "coffee"
ynab transactions search --payee-name "Amazon"
ynab transactions view <id>
ynab transactions create --account <id> --amount <amount> --date <YYYY-MM-DD>
ynab transactions update <id> --amount <amount>
ynab transactions delete <id>
ynab transactions split <id> --splits '[{"amount": -50.00, "category_id": "xxx"}]'
收款方
ynab payees list
ynab payees view <id>
ynab payees update <id> --name <name>
ynab payees transactions <id>
月份
ynab months list
ynab months view <YYYY-MM>
已安排
ynab scheduled list
ynab scheduled view <id>
ynab scheduled delete <id>
原始API
ynab api GET /budgets
ynab api POST /budgets/{budget_id}/transactions --data '{"transaction": {...}}'
备注
- 金额单位为您预算的货币单位,而非毫单位
- 使用
--compact以获取最小化的JSON格式 - 速率限制:200次请求/小时
- 无法通过API创建类别/分组/收款方
文章底部电脑广告
手机广告位-内容正文底部
上一篇:Essence Distiller
下一篇:Backend


微信扫一扫,打赏作者吧~