This CLI is intended to simplify some of the tedious bits of YNAB categorization, specifically around importing amazon orders (and hopefully other vendors soon). It allows the user to scrape amazon and match their orders with the categories in YNAB, then add a memo in YNAB in order to categorize them more simply.
You will Need to have a YNAB PAT in order to set up initially.
npm i
npm link
ynab setup
You should now be able to run ynab <command>
from anywhere.
ynab scrape [site]
- scrapes a site and syncs to ynab. (Default site:amazon
). Optionally pass in-a
to get all transactions that are uncategorized, even if they already have a memo filled in.ynab set-logging [level]
- sets the logging level for the CLIynab debug
- debugging the cli info
By default, ynab scrape
will scrape Amazon. If this is the first time running the scrape, you will be prompted for your username and password. Once the scrape executes, it will ask you to verify each order and add a memo in YNAB based on your input.