@stephendolan/ynab-cli 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/cli.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@ Or set `YNAB_API_KEY` environment variable.
|
|
|
45
45
|
```bash
|
|
46
46
|
ynab budgets list
|
|
47
47
|
ynab budgets view [id]
|
|
48
|
+
ynab budgets settings [id]
|
|
48
49
|
ynab budgets set-default <id>
|
|
49
50
|
```
|
|
50
51
|
|
|
@@ -91,6 +92,7 @@ ynab transactions split <id> --splits '[{"amount": -50.00, "category_id": "xxx"}
|
|
|
91
92
|
ynab payees list
|
|
92
93
|
ynab payees view <id>
|
|
93
94
|
ynab payees update <id> --name <name>
|
|
95
|
+
ynab payees locations <id>
|
|
94
96
|
ynab payees transactions <id>
|
|
95
97
|
```
|
|
96
98
|
|
|
@@ -116,6 +118,14 @@ ynab api GET /budgets
|
|
|
116
118
|
ynab api POST /budgets/{budget_id}/transactions --data '{"transaction": {...}}'
|
|
117
119
|
```
|
|
118
120
|
|
|
121
|
+
### MCP Server
|
|
122
|
+
|
|
123
|
+
Run as an MCP server for AI agent integration:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
ynab mcp
|
|
127
|
+
```
|
|
128
|
+
|
|
119
129
|
## Output
|
|
120
130
|
|
|
121
131
|
All commands return JSON. Use `--compact` for minified output.
|
package/dist/cli.js
CHANGED
|
@@ -1434,7 +1434,7 @@ function createMcpCommand() {
|
|
|
1434
1434
|
|
|
1435
1435
|
// src/cli.ts
|
|
1436
1436
|
var program = new Command12();
|
|
1437
|
-
program.name("ynab").description("A command-line interface for You Need a Budget (YNAB)").version("2.
|
|
1437
|
+
program.name("ynab").description("A command-line interface for You Need a Budget (YNAB)").version("2.3.0").option("-c, --compact", "Minified JSON output (single line)").hook("preAction", (thisCommand) => {
|
|
1438
1438
|
const options = thisCommand.opts();
|
|
1439
1439
|
setOutputOptions({
|
|
1440
1440
|
compact: options.compact
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stephendolan/ynab-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "A command-line interface for You Need a Budget (YNAB)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@biomejs/biome": "^1.9.4",
|
|
58
|
-
"@types/
|
|
58
|
+
"@types/bun": "latest",
|
|
59
59
|
"oxlint": "^0.16.0",
|
|
60
60
|
"tsup": "^8.0.0",
|
|
61
61
|
"tsx": "^4.7.0",
|