Basics for using the nab CLI (YNAB tool).
Use this guide to explain the minimal setup (auth token + budget id) and common commands for the nab CLI.
bunx @jameskraus/nab --help to list commands and global options.bunx @jameskraus/nab <resource> <action> [options].--format table|json|tsv|ids to change output format.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>bunx @jameskraus/nab auth token add <PAT>.bunx @jameskraus/nab budget list --format json and copy the id field.bunx @jameskraus/nab budget set-default --id <BUDGET_ID>.--budget-id <BUDGET_ID>.bunx @jameskraus/nab budget current.YYYY-MM-DD).--dry-run to preview mutations and --yes to apply them.