← Back to list

nab-cli-basics
by jameskraus
Nab, the Agent-friendly YNAB CLI
⭐ 1🍴 0📅 Jan 24, 2026
SKILL.md
name: nab-cli-basics description: Basics for using the nab CLI (YNAB tool). Use when asked how to run nab commands, set up authentication tokens/PATs, configure or override the default budget id, or troubleshoot missing NAB_TOKENS/NAB_BUDGET_ID.
Nab CLI Basics
Overview
Use this guide to explain the minimal setup (auth token + budget id) and common commands for the nab CLI.
Quick start
- Requires Bun (https://bun.sh).
- Run
bunx @jameskraus/nab --helpto list commands and global options. - Follow the pattern
bunx @jameskraus/nab <resource> <action> [options]. - Use
--format table|json|tsv|idsto change output format. - Run common read commands:
bunx @jameskraus/nab budget listbunx @jameskraus/nab account listbunx @jameskraus/nab category listbunx @jameskraus/nab payee listbunx @jameskraus/nab tx listbunx @jameskraus/nab tx get --id <TRANSACTION_ID>
Set auth token (required)
- Use YNAB Personal Access Tokens only (no OAuth).
- Get a PAT from https://app.ynab.com/settings/developer.
- Store tokens with
bunx @jameskraus/nab auth token add <PAT>.
Set budget id (required for most commands)
- Run
bunx @jameskraus/nab budget list --format jsonand copy theidfield. - Store a default budget id with
bunx @jameskraus/nab budget set-default --id <BUDGET_ID>. - Override per command with
--budget-id <BUDGET_ID>. - Show the effective budget id with
bunx @jameskraus/nab budget current.
Notes
- Use date-only strings (
YYYY-MM-DD). - Use
--dry-runto preview mutations and--yesto apply them.
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon