-
Notifications
You must be signed in to change notification settings - Fork 22
/
cli.js
executable file
·41 lines (36 loc) · 1.08 KB
/
cli.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env node
const meow = require("meow");
const actualPlaid = require("./index");
const cli = meow(
`
Usage
$ actualplaid <command> <flags>
Commands & Options
setup Link bank accounts with your Actual Budget accounts via Plai
ls List currently syncing accounts
import Sync bank accounts to Actual Budget
--account, -a The account to import, ex: --account="My Checking"
--since, -s The start date after which transactions should be imported. Defaults to beginning of current month, format: yyyy-MM-dd, ex: --since=2020-05-28
config Print the location of actualplaid the config file
--version Print the version of actualplaid being used
Examples
$ actualplaid import --account="My Checking" --since="2020-05-28"
`,
{
flags: {
reset: {
alias: "r",
type: "string",
},
account: {
alias: "a",
type: "string",
},
since: {
alias: "s",
type: "string",
},
},
}
);
actualPlaid(cli.input[0], cli.flags);