bkper 4.4.0 → 4.5.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 +180 -156
- package/lib/commands/accounts/batch-create.d.ts +1 -1
- package/lib/commands/accounts/batch-create.d.ts.map +1 -1
- package/lib/commands/accounts/batch-create.js +17 -22
- package/lib/commands/accounts/batch-create.js.map +1 -1
- package/lib/commands/accounts/list.js +1 -1
- package/lib/commands/accounts/list.js.map +1 -1
- package/lib/commands/accounts/register.d.ts.map +1 -1
- package/lib/commands/accounts/register.js +3 -0
- package/lib/commands/accounts/register.js.map +1 -1
- package/lib/commands/groups/batch-create.d.ts +1 -1
- package/lib/commands/groups/batch-create.d.ts.map +1 -1
- package/lib/commands/groups/batch-create.js +17 -22
- package/lib/commands/groups/batch-create.js.map +1 -1
- package/lib/commands/groups/list.d.ts +3 -0
- package/lib/commands/groups/list.d.ts.map +1 -1
- package/lib/commands/groups/list.js +4 -1
- package/lib/commands/groups/list.js.map +1 -1
- package/lib/commands/groups/register.d.ts.map +1 -1
- package/lib/commands/groups/register.js +3 -0
- package/lib/commands/groups/register.js.map +1 -1
- package/lib/commands/transactions/batch-create.d.ts +1 -1
- package/lib/commands/transactions/batch-create.d.ts.map +1 -1
- package/lib/commands/transactions/batch-create.js +17 -22
- package/lib/commands/transactions/batch-create.js.map +1 -1
- package/lib/commands/transactions/batch-update.d.ts +13 -0
- package/lib/commands/transactions/batch-update.d.ts.map +1 -0
- package/lib/commands/transactions/batch-update.js +55 -0
- package/lib/commands/transactions/batch-update.js.map +1 -0
- package/lib/commands/transactions/create.d.ts +2 -2
- package/lib/commands/transactions/create.d.ts.map +1 -1
- package/lib/commands/transactions/create.js +5 -1
- package/lib/commands/transactions/create.js.map +1 -1
- package/lib/commands/transactions/index.d.ts +1 -0
- package/lib/commands/transactions/index.d.ts.map +1 -1
- package/lib/commands/transactions/index.js +1 -0
- package/lib/commands/transactions/index.js.map +1 -1
- package/lib/commands/transactions/list.d.ts +11 -8
- package/lib/commands/transactions/list.d.ts.map +1 -1
- package/lib/commands/transactions/list.js +34 -19
- package/lib/commands/transactions/list.js.map +1 -1
- package/lib/commands/transactions/register.d.ts.map +1 -1
- package/lib/commands/transactions/register.js +32 -23
- package/lib/commands/transactions/register.js.map +1 -1
- package/lib/input/index.d.ts +6 -1
- package/lib/input/index.d.ts.map +1 -1
- package/lib/input/index.js +14 -2
- package/lib/input/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,29 +7,18 @@ A **command-line interface** for [Bkper](https://bkper.com), a financial account
|
|
|
7
7
|
|
|
8
8
|
[](https://www.npmjs.com/package/bkper)
|
|
9
9
|
|
|
10
|
-
##
|
|
11
|
-
|
|
12
|
-
- [Quick Start](#quick-start)
|
|
13
|
-
- [App Management](#app-management)
|
|
14
|
-
- [Data Management](#data-management)
|
|
15
|
-
- [Output Format](#output-format)
|
|
16
|
-
- [Library](#library)
|
|
17
|
-
- [Documentation](#documentation)
|
|
10
|
+
## Quick Start
|
|
18
11
|
|
|
19
|
-
|
|
12
|
+
### Prerequisites
|
|
20
13
|
|
|
21
|
-
|
|
14
|
+
- [Node.js](https://nodejs.org/) >= 18
|
|
22
15
|
|
|
23
16
|
### Install
|
|
24
17
|
|
|
25
18
|
```bash
|
|
19
|
+
# bun
|
|
26
20
|
bun add -g bkper
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
<details>
|
|
30
|
-
<summary>Other package managers</summary>
|
|
31
21
|
|
|
32
|
-
```bash
|
|
33
22
|
# npm
|
|
34
23
|
npm i -g bkper
|
|
35
24
|
|
|
@@ -37,140 +26,27 @@ npm i -g bkper
|
|
|
37
26
|
yarn global add bkper
|
|
38
27
|
```
|
|
39
28
|
|
|
40
|
-
</details>
|
|
41
|
-
|
|
42
29
|
### Authenticate
|
|
43
30
|
|
|
44
31
|
```bash
|
|
45
32
|
bkper login
|
|
46
33
|
```
|
|
47
34
|
|
|
48
|
-
###
|
|
35
|
+
### Try It
|
|
49
36
|
|
|
50
37
|
```bash
|
|
51
|
-
bkper
|
|
52
|
-
cd my-app
|
|
53
|
-
bkper app dev
|
|
38
|
+
bkper book list
|
|
54
39
|
```
|
|
55
40
|
|
|
56
|
-
|
|
41
|
+
Pick a book and create your first transaction:
|
|
57
42
|
|
|
58
43
|
```bash
|
|
59
|
-
bkper
|
|
44
|
+
bkper transaction create -b <bookId> --description "Office supplies 123.78"
|
|
60
45
|
```
|
|
61
46
|
|
|
62
47
|
> Run `bkper --help` or `bkper <command> --help` for built-in documentation on any command.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
## App Management
|
|
67
|
-
|
|
68
|
-
**Build, deploy, and manage Bkper apps.**
|
|
69
|
-
|
|
70
|
-
### Development Workflow
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
# Scaffold a new app from the template
|
|
74
|
-
bkper app init my-app
|
|
75
|
-
|
|
76
|
-
# Start local development servers
|
|
77
|
-
bkper app dev
|
|
78
|
-
|
|
79
|
-
# Build artifacts
|
|
80
|
-
bkper app build
|
|
81
|
-
|
|
82
|
-
# Sync configuration and deploy to production
|
|
83
|
-
bkper app sync && bkper app deploy
|
|
84
|
-
|
|
85
|
-
# Deploy to development environment
|
|
86
|
-
bkper app deploy --preview
|
|
87
|
-
|
|
88
|
-
# Deploy only the events handler
|
|
89
|
-
bkper app deploy --events
|
|
90
|
-
|
|
91
|
-
# Check deployment status
|
|
92
|
-
bkper app status
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Install Apps on Books
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
# Install an app on a book
|
|
99
|
-
bkper app install my-app -b abc123
|
|
100
|
-
|
|
101
|
-
# Uninstall an app from a book
|
|
102
|
-
bkper app uninstall my-app -b abc123
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### Secrets
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
# Store a secret (prompts for value)
|
|
109
|
-
bkper app secrets put API_KEY
|
|
110
|
-
|
|
111
|
-
# List all secrets
|
|
112
|
-
bkper app secrets list
|
|
113
|
-
|
|
114
|
-
# Delete a secret
|
|
115
|
-
bkper app secrets delete API_KEY
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### Configuration
|
|
119
|
-
|
|
120
|
-
Apps are configured via a `bkper.yaml` file in the project root. See the complete reference with all available fields: **[bkper.yaml reference]**.
|
|
121
|
-
|
|
122
|
-
**Environment variables:**
|
|
123
|
-
|
|
124
|
-
- `BKPER_API_KEY` -- Optional. If not set, uses the Bkper API proxy with a managed API key. Set it for direct API access with your own quotas. Follow [these steps](https://bkper.com/docs/#rest-api-enabling) to enable.
|
|
125
|
-
|
|
126
|
-
<details>
|
|
127
|
-
<summary>Command reference</summary>
|
|
128
|
-
|
|
129
|
-
#### Authentication
|
|
130
|
-
|
|
131
|
-
- `login` - Authenticate with Bkper, storing credentials locally
|
|
132
|
-
- `logout` - Remove stored credentials
|
|
133
|
-
|
|
134
|
-
#### App Lifecycle
|
|
135
|
-
|
|
136
|
-
- `app init <name>` - Scaffold a new app from the template
|
|
137
|
-
- `app list` - List all apps you have access to
|
|
138
|
-
- `app sync` - Sync [bkper.yaml reference] configuration (URLs, description) to Bkper API
|
|
139
|
-
- `app build` - Build app artifacts
|
|
140
|
-
- `app deploy` - Deploy built artifacts to Cloudflare Workers for Platforms
|
|
141
|
-
- `-p, --preview` - Deploy to preview environment
|
|
142
|
-
- `--events` - Deploy events handler instead of web handler
|
|
143
|
-
- `app status` - Show deployment status
|
|
144
|
-
- `app undeploy` - Remove app from platform
|
|
145
|
-
- `-p, --preview` - Remove from preview environment
|
|
146
|
-
- `--events` - Remove events handler instead of web handler
|
|
147
|
-
- `--delete-data` - Permanently delete all associated data (requires confirmation)
|
|
148
|
-
- `--force` - Skip confirmation prompts (use with `--delete-data` for automation)
|
|
149
|
-
- `app dev` - Run local development servers
|
|
150
|
-
- `--cp, --client-port <port>` - Client dev server port (default: `5173`)
|
|
151
|
-
- `--sp, --server-port <port>` - Server simulation port (default: `8787`)
|
|
152
|
-
- `--ep, --events-port <port>` - Events handler port (default: `8791`)
|
|
153
|
-
- `-w, --web` - Run only the web handler
|
|
154
|
-
- `-e, --events` - Run only the events handler
|
|
155
|
-
- `--no-open` - Do not open browser on startup
|
|
156
|
-
|
|
157
|
-
> **Note:** `sync` and `deploy` are independent operations. Use `sync` to update your app's URLs in Bkper (required for webhooks and menu integration). Use `deploy` to push code to Cloudflare. For a typical deployment workflow, run both: `bkper app sync && bkper app deploy`
|
|
158
|
-
|
|
159
|
-
#### App Installation
|
|
160
|
-
|
|
161
|
-
- `app install <appId> -b <bookId>` - Install an app on a book
|
|
162
|
-
- `app uninstall <appId> -b <bookId>` - Uninstall an app from a book
|
|
163
|
-
|
|
164
|
-
#### Secrets Management
|
|
165
|
-
|
|
166
|
-
- `app secrets put <name>` - Store a secret
|
|
167
|
-
- `-p, --preview` - Set in preview environment
|
|
168
|
-
- `app secrets list` - List all secrets
|
|
169
|
-
- `-p, --preview` - List from preview environment
|
|
170
|
-
- `app secrets delete <name>` - Delete a secret
|
|
171
|
-
- `-p, --preview` - Delete from preview environment
|
|
172
|
-
|
|
173
|
-
</details>
|
|
48
|
+
>
|
|
49
|
+
> To build and deploy Bkper Apps, see [App Management](#app-management).
|
|
174
50
|
|
|
175
51
|
---
|
|
176
52
|
|
|
@@ -178,7 +54,7 @@ Apps are configured via a `bkper.yaml` file in the project root. See the complet
|
|
|
178
54
|
|
|
179
55
|
**Interact with books, accounts, transactions, and balances.**
|
|
180
56
|
|
|
181
|
-
All data commands that operate within a book use `-b, --book <bookId>` to specify the book context.
|
|
57
|
+
All data commands that operate within a book use `-b, --book <bookId>` to specify the book context.
|
|
182
58
|
|
|
183
59
|
### Books
|
|
184
60
|
|
|
@@ -318,7 +194,10 @@ bkper group delete "Cash" -b abc123
|
|
|
318
194
|
Record, query, and manage financial transactions.
|
|
319
195
|
|
|
320
196
|
```bash
|
|
321
|
-
# Create a transaction
|
|
197
|
+
# Create a draft transaction
|
|
198
|
+
bkper transaction create -b abc123 --description "Office supplies"
|
|
199
|
+
|
|
200
|
+
# Create a complete transaction
|
|
322
201
|
bkper transaction create -b abc123 --date 2025-01-15 --amount 100.50 \
|
|
323
202
|
--from "Bank Account" --to "Office Supplies" --description "Printer paper"
|
|
324
203
|
|
|
@@ -347,26 +226,25 @@ bkper transaction merge tx_123 tx_456 -b abc123
|
|
|
347
226
|
<details>
|
|
348
227
|
<summary>Command reference</summary>
|
|
349
228
|
|
|
350
|
-
- `transaction list -b <bookId> -q <query>` - List transactions matching a query
|
|
351
|
-
- `-l, --limit <limit>` - Maximum number of results (`1`-`1000`, default `100`)
|
|
352
|
-
- `-c, --cursor <cursor>` - Pagination cursor
|
|
229
|
+
- `transaction list -b <bookId> -q <query>` - List transactions matching a query (auto-paginates through all results)
|
|
353
230
|
- `-p, --properties` - Include custom properties in the output
|
|
354
231
|
- `transaction create -b <bookId>` - Create a transaction
|
|
355
|
-
- `--date <date>` - Transaction date
|
|
356
|
-
- `--amount <amount>` - Transaction amount
|
|
232
|
+
- `--date <date>` - Transaction date
|
|
233
|
+
- `--amount <amount>` - Transaction amount
|
|
357
234
|
- `--description <description>` - Transaction description
|
|
358
235
|
- `--from <from>` - Credit account (source)
|
|
359
236
|
- `--to <to>` - Debit account (destination)
|
|
360
237
|
- `--url <url>` - URL (repeatable)
|
|
361
238
|
- `--remote-id <remoteId>` - Remote ID (repeatable)
|
|
362
239
|
- `-p, --property <key=value>` - Set a property (repeatable, empty value deletes)
|
|
363
|
-
- `transaction update
|
|
240
|
+
- `transaction update [transactionId] -b <bookId>` - Update a transaction (or batch update via stdin)
|
|
364
241
|
- `--date <date>` - Transaction date
|
|
365
242
|
- `--amount <amount>` - Transaction amount
|
|
366
243
|
- `--description <description>` - Transaction description
|
|
367
244
|
- `--from <from>` - Credit account (source)
|
|
368
245
|
- `--to <to>` - Debit account (destination)
|
|
369
246
|
- `--url <url>` - URL (repeatable, replaces all)
|
|
247
|
+
- `--update-checked` - Also update checked transactions
|
|
370
248
|
- `-p, --property <key=value>` - Set a property (repeatable, empty value deletes)
|
|
371
249
|
- `transaction post <id> -b <bookId>` - Post a draft transaction
|
|
372
250
|
- `transaction check <id> -b <bookId>` - Check a transaction
|
|
@@ -433,9 +311,7 @@ bkper collection delete col_789
|
|
|
433
311
|
|
|
434
312
|
</details>
|
|
435
313
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
## Output Format
|
|
314
|
+
### Output Format
|
|
439
315
|
|
|
440
316
|
All commands support three output formats via the `--format` global flag:
|
|
441
317
|
|
|
@@ -456,16 +332,14 @@ bkper account list -b abc123 --format json
|
|
|
456
332
|
bkper account list -b abc123 --format csv
|
|
457
333
|
```
|
|
458
334
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
CSV output is designed for machine consumption:
|
|
335
|
+
**CSV output details:**
|
|
462
336
|
|
|
463
337
|
- **RFC 4180 compliant** -- proper quoting, CRLF line endings, no truncation
|
|
464
338
|
- **All metadata included** -- IDs, properties, hidden properties, URLs, and timestamps are enabled
|
|
465
339
|
- **Raw values** -- dates stay in ISO format, numbers are unformatted (no locale formatting)
|
|
466
340
|
- **Single-item commands** (e.g. `account get`, `transaction create`) fall back to JSON since CSV adds no value for non-tabular data
|
|
467
341
|
|
|
468
|
-
|
|
342
|
+
**AI agent guidance:**
|
|
469
343
|
|
|
470
344
|
When using the CLI from an AI agent, LLM, or automated script:
|
|
471
345
|
|
|
@@ -473,9 +347,9 @@ When using the CLI from an AI agent, LLM, or automated script:
|
|
|
473
347
|
- **Use `--format json` for single-item commands** (`get`, `create`, `update`) where you need structured field access.
|
|
474
348
|
- **Pipe data in via stdin** for batch operations (see below).
|
|
475
349
|
|
|
476
|
-
###
|
|
350
|
+
### Batch Operations & Piping
|
|
477
351
|
|
|
478
|
-
Write commands (`account create`, `group create`, `transaction create`) accept JSON data piped via stdin for batch operations. The input format follows the [Bkper API Types](https://raw.githubusercontent.com/bkper/bkper-api-types/refs/heads/master/index.d.ts) exactly -- a single JSON object or an array of objects.
|
|
352
|
+
Write commands (`account create`, `group create`, `transaction create`) accept JSON data piped via stdin for batch operations. The `transaction update` command also accepts stdin for batch updates. The input format follows the [Bkper API Types](https://raw.githubusercontent.com/bkper/bkper-api-types/refs/heads/master/index.d.ts) exactly -- a single JSON object or an array of objects.
|
|
479
353
|
|
|
480
354
|
```bash
|
|
481
355
|
# Create transactions
|
|
@@ -509,21 +383,58 @@ echo '[{"name":"Cash","type":"ASSET"}]' | \
|
|
|
509
383
|
bkper account create -b abc123 -p "region=LATAM"
|
|
510
384
|
```
|
|
511
385
|
|
|
512
|
-
**Batch output:** results are
|
|
386
|
+
**Batch output:** results are output as a flat JSON array, matching the same format as list commands:
|
|
513
387
|
|
|
388
|
+
```bash
|
|
389
|
+
bkper account create -b abc123 < accounts.json
|
|
390
|
+
# Output: [{"id":"acc-abc","name":"Cash",...}, {"id":"acc-def","name":"Revenue",...}]
|
|
514
391
|
```
|
|
515
|
-
|
|
516
|
-
|
|
392
|
+
|
|
393
|
+
**Piping between commands:**
|
|
394
|
+
|
|
395
|
+
All JSON output is designed to be piped directly as stdin to other commands. The output of any list or batch create command can feed directly into a create or update command:
|
|
396
|
+
|
|
397
|
+
```bash
|
|
398
|
+
# Copy all accounts from one book to another
|
|
399
|
+
bkper account list -b $BOOK_A --format json | bkper account create -b $BOOK_B
|
|
400
|
+
|
|
401
|
+
# Copy all groups from one book to another
|
|
402
|
+
bkper group list -b $BOOK_A --format json | bkper group create -b $BOOK_B
|
|
403
|
+
|
|
404
|
+
# Copy transactions matching a query
|
|
405
|
+
bkper transaction list -b $BOOK_A -q "after:2025-01-01" --format json | \
|
|
406
|
+
bkper transaction create -b $BOOK_B
|
|
407
|
+
|
|
408
|
+
# Clone a full chart of accounts: groups, then accounts, then transactions
|
|
409
|
+
bkper group list -b $SOURCE --format json | bkper group create -b $DEST
|
|
410
|
+
bkper account list -b $SOURCE --format json | bkper account create -b $DEST
|
|
411
|
+
bkper transaction list -b $SOURCE -q "after:2025-01-01" --format json | \
|
|
412
|
+
bkper transaction create -b $DEST
|
|
413
|
+
|
|
414
|
+
# Batch update: list transactions, modify, and pipe back to update
|
|
415
|
+
bkper transaction list -b $BOOK -q "after:2025-01-01" --format json | \
|
|
416
|
+
jq '[.[] | .description = "Updated: " + .description]' | \
|
|
417
|
+
bkper transaction update -b $BOOK
|
|
418
|
+
|
|
419
|
+
# Batch update: add a property to all matching transactions
|
|
420
|
+
bkper transaction list -b $BOOK -q "account:Expenses" --format json | \
|
|
421
|
+
bkper transaction update -b $BOOK -p "reviewed=true"
|
|
422
|
+
|
|
423
|
+
# Batch update checked transactions
|
|
424
|
+
bkper transaction list -b $BOOK -q "is:checked after:2025-01-01" --format json | \
|
|
425
|
+
bkper transaction update -b $BOOK --update-checked -p "migrated=true"
|
|
517
426
|
```
|
|
518
427
|
|
|
519
|
-
|
|
428
|
+
<details>
|
|
429
|
+
<summary>Writable fields reference</summary>
|
|
520
430
|
|
|
521
|
-
Only the fields below are meaningful when creating resources via stdin.
|
|
431
|
+
Only the fields below are meaningful when creating or updating resources via stdin. For batch updates, items must include an `id` field. Other read-only fields (`createdAt`, `updatedAt`, etc.) are ignored.
|
|
522
432
|
|
|
523
433
|
**Transaction** (`bkper.Transaction`)
|
|
524
434
|
|
|
525
435
|
| Field | Type | Notes |
|
|
526
436
|
| --------------- | ---------------------------------- | --------------------------------------------- |
|
|
437
|
+
| `id` | `string` | Required for batch updates, ignored on create |
|
|
527
438
|
| `date` | `string` | ISO format `yyyy-MM-dd` |
|
|
528
439
|
| `amount` | `string` | Decimal format `####.##` (string, not number) |
|
|
529
440
|
| `creditAccount` | `{"name":"..."}` or `{"id":"..."}` | Reference to an existing account |
|
|
@@ -554,6 +465,119 @@ Only the fields below are meaningful when creating resources via stdin. Read-onl
|
|
|
554
465
|
| `parent` | `{"name":"..."}` or `{"id":"..."}` | Parent group for nesting |
|
|
555
466
|
| `properties` | `{"key": "value", ...}` | Custom key/value properties |
|
|
556
467
|
|
|
468
|
+
</details>
|
|
469
|
+
|
|
470
|
+
---
|
|
471
|
+
|
|
472
|
+
## App Management
|
|
473
|
+
|
|
474
|
+
**Build, deploy, and manage Bkper apps.**
|
|
475
|
+
|
|
476
|
+
### Development Workflow
|
|
477
|
+
|
|
478
|
+
```bash
|
|
479
|
+
# Scaffold a new app from the template
|
|
480
|
+
bkper app init my-app
|
|
481
|
+
|
|
482
|
+
# Start local development servers
|
|
483
|
+
bkper app dev
|
|
484
|
+
|
|
485
|
+
# Build artifacts
|
|
486
|
+
bkper app build
|
|
487
|
+
|
|
488
|
+
# Sync configuration and deploy to production
|
|
489
|
+
bkper app sync && bkper app deploy
|
|
490
|
+
|
|
491
|
+
# Deploy to development environment
|
|
492
|
+
bkper app deploy --preview
|
|
493
|
+
|
|
494
|
+
# Deploy only the events handler
|
|
495
|
+
bkper app deploy --events
|
|
496
|
+
|
|
497
|
+
# Check deployment status
|
|
498
|
+
bkper app status
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Install Apps on Books
|
|
502
|
+
|
|
503
|
+
```bash
|
|
504
|
+
# Install an app on a book
|
|
505
|
+
bkper app install my-app -b abc123
|
|
506
|
+
|
|
507
|
+
# Uninstall an app from a book
|
|
508
|
+
bkper app uninstall my-app -b abc123
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
### Secrets
|
|
512
|
+
|
|
513
|
+
```bash
|
|
514
|
+
# Store a secret (prompts for value)
|
|
515
|
+
bkper app secrets put API_KEY
|
|
516
|
+
|
|
517
|
+
# List all secrets
|
|
518
|
+
bkper app secrets list
|
|
519
|
+
|
|
520
|
+
# Delete a secret
|
|
521
|
+
bkper app secrets delete API_KEY
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
### Configuration
|
|
525
|
+
|
|
526
|
+
Apps are configured via a `bkper.yaml` file in the project root. See the complete reference with all available fields: **[bkper.yaml reference]**.
|
|
527
|
+
|
|
528
|
+
**Environment variables:**
|
|
529
|
+
|
|
530
|
+
- `BKPER_API_KEY` -- Optional. If not set, uses the Bkper API proxy with a managed API key. Set it for direct API access with your own quotas. Follow [these steps](https://bkper.com/docs/#rest-api-enabling) to enable.
|
|
531
|
+
|
|
532
|
+
<details>
|
|
533
|
+
<summary>Command reference</summary>
|
|
534
|
+
|
|
535
|
+
#### Authentication
|
|
536
|
+
|
|
537
|
+
- `login` - Authenticate with Bkper, storing credentials locally
|
|
538
|
+
- `logout` - Remove stored credentials
|
|
539
|
+
|
|
540
|
+
#### App Lifecycle
|
|
541
|
+
|
|
542
|
+
- `app init <name>` - Scaffold a new app from the template
|
|
543
|
+
- `app list` - List all apps you have access to
|
|
544
|
+
- `app sync` - Sync [bkper.yaml reference] configuration (URLs, description) to Bkper API
|
|
545
|
+
- `app build` - Build app artifacts
|
|
546
|
+
- `app deploy` - Deploy built artifacts to Cloudflare Workers for Platforms
|
|
547
|
+
- `-p, --preview` - Deploy to preview environment
|
|
548
|
+
- `--events` - Deploy events handler instead of web handler
|
|
549
|
+
- `app status` - Show deployment status
|
|
550
|
+
- `app undeploy` - Remove app from platform
|
|
551
|
+
- `-p, --preview` - Remove from preview environment
|
|
552
|
+
- `--events` - Remove events handler instead of web handler
|
|
553
|
+
- `--delete-data` - Permanently delete all associated data (requires confirmation)
|
|
554
|
+
- `--force` - Skip confirmation prompts (use with `--delete-data` for automation)
|
|
555
|
+
- `app dev` - Run local development servers
|
|
556
|
+
- `--cp, --client-port <port>` - Client dev server port (default: `5173`)
|
|
557
|
+
- `--sp, --server-port <port>` - Server simulation port (default: `8787`)
|
|
558
|
+
- `--ep, --events-port <port>` - Events handler port (default: `8791`)
|
|
559
|
+
- `-w, --web` - Run only the web handler
|
|
560
|
+
- `-e, --events` - Run only the events handler
|
|
561
|
+
- `--no-open` - Do not open browser on startup
|
|
562
|
+
|
|
563
|
+
> **Note:** `sync` and `deploy` are independent operations. Use `sync` to update your app's URLs in Bkper (required for webhooks and menu integration). Use `deploy` to push code to Cloudflare. For a typical deployment workflow, run both: `bkper app sync && bkper app deploy`
|
|
564
|
+
|
|
565
|
+
#### App Installation
|
|
566
|
+
|
|
567
|
+
- `app install <appId> -b <bookId>` - Install an app on a book
|
|
568
|
+
- `app uninstall <appId> -b <bookId>` - Uninstall an app from a book
|
|
569
|
+
|
|
570
|
+
#### Secrets Management
|
|
571
|
+
|
|
572
|
+
- `app secrets put <name>` - Store a secret
|
|
573
|
+
- `-p, --preview` - Set in preview environment
|
|
574
|
+
- `app secrets list` - List all secrets
|
|
575
|
+
- `-p, --preview` - List from preview environment
|
|
576
|
+
- `app secrets delete <name>` - Delete a secret
|
|
577
|
+
- `-p, --preview` - Delete from preview environment
|
|
578
|
+
|
|
579
|
+
</details>
|
|
580
|
+
|
|
557
581
|
---
|
|
558
582
|
|
|
559
583
|
## Library
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-create.d.ts","sourceRoot":"","sources":["../../../src/commands/accounts/batch-create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"batch-create.d.ts","sourceRoot":"","sources":["../../../src/commands/accounts/batch-create.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAC7B,OAAO,CAAC,IAAI,CAAC,CA4Bf"}
|
|
@@ -10,10 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { getBkperInstance } from '../../bkper-factory.js';
|
|
11
11
|
import { Account } from 'bkper-js';
|
|
12
12
|
import { parsePropertyFlag } from '../../utils/properties.js';
|
|
13
|
-
const CHUNK_SIZE = 100;
|
|
14
13
|
/**
|
|
15
14
|
* Creates multiple accounts from stdin items using the batch API.
|
|
16
|
-
* Outputs
|
|
15
|
+
* Outputs a flat JSON array of all created accounts.
|
|
17
16
|
*
|
|
18
17
|
* Stdin items must follow the bkper.Account format exactly.
|
|
19
18
|
*
|
|
@@ -25,30 +24,26 @@ export function batchCreateAccounts(bookId, items, propertyOverrides) {
|
|
|
25
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
25
|
const bkper = getBkperInstance();
|
|
27
26
|
const book = yield bkper.getBook(bookId);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
else {
|
|
41
|
-
account.setProperty(key, value);
|
|
42
|
-
}
|
|
27
|
+
const accounts = [];
|
|
28
|
+
for (const item of items) {
|
|
29
|
+
const account = new Account(book, item);
|
|
30
|
+
// CLI --property flags override stdin properties
|
|
31
|
+
if (propertyOverrides) {
|
|
32
|
+
for (const raw of propertyOverrides) {
|
|
33
|
+
const [key, value] = parsePropertyFlag(raw);
|
|
34
|
+
if (value === '') {
|
|
35
|
+
account.deleteProperty(key);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
account.setProperty(key, value);
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
|
-
accounts.push(account);
|
|
46
|
-
}
|
|
47
|
-
const results = yield book.batchCreateAccounts(accounts);
|
|
48
|
-
for (const result of results) {
|
|
49
|
-
console.log(JSON.stringify(result.json()));
|
|
50
41
|
}
|
|
42
|
+
accounts.push(account);
|
|
51
43
|
}
|
|
44
|
+
const results = yield book.batchCreateAccounts(accounts);
|
|
45
|
+
const allResults = results.map(result => result.json());
|
|
46
|
+
console.log(JSON.stringify(allResults, null, 2));
|
|
52
47
|
});
|
|
53
48
|
}
|
|
54
49
|
//# sourceMappingURL=batch-create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-create.js","sourceRoot":"","sources":["../../../src/commands/accounts/batch-create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D
|
|
1
|
+
{"version":3,"file":"batch-create.js","sourceRoot":"","sources":["../../../src/commands/accounts/batch-create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;;;;;GASG;AACH,MAAM,UAAgB,mBAAmB,CACrC,MAAc,EACd,KAAgC,EAChC,iBAA4B;;QAE5B,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;QACjC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAEzC,MAAM,QAAQ,GAAc,EAAE,CAAC;QAE/B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,IAAqB,CAAC,CAAC;YAEzD,iDAAiD;YACjD,IAAI,iBAAiB,EAAE,CAAC;gBACpB,KAAK,MAAM,GAAG,IAAI,iBAAiB,EAAE,CAAC;oBAClC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;oBAC5C,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;wBACf,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;oBAChC,CAAC;yBAAM,CAAC;wBACJ,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;oBACpC,CAAC;gBACL,CAAC;YACL,CAAC;YAED,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAExD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACrD,CAAC;CAAA"}
|
|
@@ -18,7 +18,7 @@ import { AccountsDataTableBuilder } from 'bkper-js';
|
|
|
18
18
|
export function listAccounts(bookId) {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const bkper = getBkperInstance();
|
|
21
|
-
const book = yield bkper.getBook(bookId);
|
|
21
|
+
const book = yield bkper.getBook(bookId, true, true);
|
|
22
22
|
const accounts = yield book.getAccounts();
|
|
23
23
|
return accounts || [];
|
|
24
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/accounts/list.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAW,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAG7D;;;;;GAKG;AACH,MAAM,UAAgB,YAAY,CAAC,MAAc;;QAC7C,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;QACjC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/accounts/list.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAW,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAG7D;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EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/commands/accounts/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAezC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAqG9D"}
|
|
@@ -48,6 +48,9 @@ export function registerAccountCommands(program) {
|
|
|
48
48
|
throwIfErrors(validateRequiredOptions(options, [{ name: 'book', flag: '--book' }]));
|
|
49
49
|
yield batchCreateAccounts(options.book, stdinData.items, options.property);
|
|
50
50
|
}
|
|
51
|
+
else if (stdinData && stdinData.items.length === 0) {
|
|
52
|
+
console.log(JSON.stringify([], null, 2));
|
|
53
|
+
}
|
|
51
54
|
else {
|
|
52
55
|
throwIfErrors(validateRequiredOptions(options, [
|
|
53
56
|
{ name: 'book', flag: '--book' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../src/commands/accounts/register.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACH,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,mBAAmB,GACtB,MAAM,YAAY,CAAC;AAEpB,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACpD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAEjF,cAAc;SACT,OAAO,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,CAAC,OAAO,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS;YAC5E,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC7B,CAAC,CAAC;QACH,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC,CAAA,CAAC,EAAE,CACP,CAAC;IAEN,cAAc;SACT,OAAO,CAAC,mBAAmB,CAAC;SAC5B,WAAW,CAAC,mBAAmB,CAAC;SAChC,MAAM,CAAC,qBAAqB,EAAE,SAAS,CAAC;SACxC,MAAM,CAAC,CAAC,QAAgB,EAAE,OAAO,EAAE,EAAE,CAClC,UAAU,CAAC,kBAAkB,EAAE,CAAM,MAAM,EAAC,EAAE;QAC1C,aAAa,CAAC,uBAAuB,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;QACpF,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC5D,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC,CAAA,CAAC,EAAE,CACP,CAAC;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-create.d.ts","sourceRoot":"","sources":["../../../src/commands/groups/batch-create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"batch-create.d.ts","sourceRoot":"","sources":["../../../src/commands/groups/batch-create.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,CACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAC7B,OAAO,CAAC,IAAI,CAAC,CA4Bf"}
|