kintone-migrator 0.32.0 → 0.34.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 CHANGED
@@ -15,13 +15,13 @@ export KINTONE_PASSWORD=your_password
15
15
  export KINTONE_APP_ID=123
16
16
 
17
17
  # Capture current form schema
18
- kintone-migrator schema capture -f schema.yaml
18
+ kintone-migrator schema pull -f schema.yaml
19
19
 
20
20
  # Edit schema.yaml, then check diff
21
21
  kintone-migrator schema diff
22
22
 
23
23
  # Apply changes
24
- kintone-migrator schema migrate
24
+ kintone-migrator schema push
25
25
  ```
26
26
 
27
27
  Requires Node.js 22 or later.
@@ -179,38 +179,42 @@ Commands are organized into domain groups:
179
179
  | Group | Subcommand | Description |
180
180
  |---|---|---|
181
181
  | `schema` | `diff` | Show differences between schema file and kintone form |
182
- | `schema` | `migrate` | Apply schema changes (incremental) |
182
+ | `schema` | `migrate` | _Deprecated — use `schema push`._ Apply schema changes (incremental) |
183
183
  | `schema` | `override` | Overwrite entire form from schema |
184
- | `schema` | `capture` | Save current form schema to file |
184
+ | `schema` | `capture` | _Deprecated — use `schema pull`._ Save current form schema to file |
185
185
  | `schema` | `validate` | Validate schema file locally |
186
186
  | `schema` | `dump` | Dump raw field/layout JSON (for debugging) |
187
- | `seed` | `apply` | Apply seed data records |
187
+ | `seed` | `push` | Upsert seed data records (plain upsert; no 3-way merge) |
188
+ | `seed` | `apply` | _Deprecated alias for `seed push`._ |
188
189
  | `seed` | `capture` | Capture records from kintone app |
189
- | `customize` | `apply` | Apply JS/CSS customizations |
190
- | `field-acl` | `apply` | Apply field access permissions |
191
- | `field-acl` | `capture` | Save current field permissions to file |
192
- | `view` | `apply` | Apply view (list) settings |
193
- | `view` | `capture` | Save current view settings to file |
194
- | `app-acl` | `apply` | Apply app-level access permissions |
195
- | `app-acl` | `capture` | Save current app permissions to file |
196
- | `record-acl` | `apply` | Apply record-level access permissions |
197
- | `record-acl` | `capture` | Save current record permissions to file |
198
- | `process` | `apply` | Apply process management (workflow) settings |
199
- | `process` | `capture` | Save current process management settings to file |
200
- | `settings` | `apply` | Apply general app settings |
201
- | `settings` | `capture` | Save current general settings to file |
202
- | `notification` | `apply` | Apply notification settings |
203
- | `notification` | `capture` | Save current notification settings to file |
204
- | `report` | `apply` | Apply graph/report settings |
205
- | `report` | `capture` | Save current report settings to file |
206
- | `action` | `apply` | Apply action settings |
207
- | `action` | `capture` | Save current action settings to file |
208
- | `admin-notes` | `apply` | Apply admin notes |
209
- | `admin-notes` | `capture` | Save current admin notes to file |
210
- | `plugin` | `apply` | Apply plugin settings |
211
- | `plugin` | `capture` | Save current plugin settings to file |
212
-
213
- All commands support `--app <name>` and `--all` for [multi-app mode](#multi-app-project-config). Commands that modify data (`schema migrate`, `schema override`, `seed apply --clean`, `customize apply`) support `--yes` / `-y` to skip confirmation prompts.
190
+ | `customize` | `apply` | _Deprecated — use `customize push`._ Apply JS/CSS customizations |
191
+ | `customize` | `capture` | _Deprecated use `customize pull`._ Save current customizations to file |
192
+ | `field-acl` | `apply` | _Deprecated use `field-acl push`._ Apply field access permissions |
193
+ | `field-acl` | `capture` | _Deprecated use `field-acl pull`._ Save current field permissions to file |
194
+ | `view` | `apply` | _Deprecated use `view push`._ Apply view (list) settings |
195
+ | `view` | `capture` | _Deprecated use `view pull`._ Save current view settings to file |
196
+ | `app-acl` | `apply` | _Deprecated use `app-acl push`._ Apply app-level access permissions |
197
+ | `app-acl` | `capture` | _Deprecated — use `app-acl pull`._ Save current app permissions to file |
198
+ | `record-acl` | `apply` | _Deprecated use `record-acl push`._ Apply record-level access permissions |
199
+ | `record-acl` | `capture` | _Deprecated use `record-acl pull`._ Save current record permissions to file |
200
+ | `process` | `apply` | _Deprecated use `process push`._ Apply process management (workflow) settings |
201
+ | `process` | `capture` | _Deprecated use `process pull`._ Save current process management settings to file |
202
+ | `settings` | `apply` | _Deprecated use `settings push`._ Apply general app settings |
203
+ | `settings` | `capture` | _Deprecated use `settings pull`._ Save current general settings to file |
204
+ | `notification` | `apply` | _Deprecated use `notification push`._ Apply notification settings |
205
+ | `notification` | `capture` | _Deprecated use `notification pull`._ Save current notification settings to file |
206
+ | `report` | `apply` | _Deprecated use `report push`._ Apply graph/report settings |
207
+ | `report` | `capture` | _Deprecated use `report pull`._ Save current report settings to file |
208
+ | `action` | `apply` | _Deprecated use `action push`._ Apply action settings |
209
+ | `action` | `capture` | _Deprecated use `action pull`._ Save current action settings to file |
210
+ | `admin-notes` | `apply` | _Deprecated use `admin-notes push`._ Apply admin notes |
211
+ | `admin-notes` | `capture` | _Deprecated use `admin-notes pull`._ Save current admin notes to file |
212
+ | `plugin` | `apply` | _Deprecated use `plugin push`._ Apply plugin settings |
213
+ | `plugin` | `capture` | _Deprecated — use `plugin pull`._ Save current plugin settings to file |
214
+
215
+ > **Deprecation notice:** the `apply`/`capture`/`migrate` commands above are deprecated in favor of their per-domain `push`/`pull` successors and will be removed in a future major version. The top-level `apply`/`capture` aggregate commands are likewise superseded by the top-level `push`/`pull` aggregate commands (which run every domain at once), not by any single `<domain> push`/`<domain> pull`. `push` writes to kintone (with a drift guard; use `--force` for the legacy overwrite behavior) and `pull` reads from kintone (with 3-way merge; `--force` for legacy overwrite). `seed` is out of scope for 3-way merge, so it has `seed push` but no `seed pull` — keep using `seed capture` to read records.
216
+
217
+ All commands support `--app <name>` and `--all` for [multi-app mode](#multi-app-project-config). Commands that modify data (`schema push`, `schema override`, `seed push --clean`, `customize push`) support `--yes` / `-y` to skip confirmation prompts.
214
218
 
215
219
  ### `init` -- Project Initialization
216
220
 
@@ -254,6 +258,8 @@ kintone-migrator schema diff --app customer
254
258
 
255
259
  #### `schema migrate`
256
260
 
261
+ > **Deprecated.** Use `schema push` (drift-guarded) or `schema push --force` (legacy overwrite) instead. `schema migrate` keeps working but will be removed in a future major version.
262
+
257
263
  Applies only the detected differences (add, update, delete) to the kintone form.
258
264
 
259
265
  ```bash
@@ -279,6 +285,8 @@ kintone-migrator schema override --all --yes
279
285
 
280
286
  #### `schema capture`
281
287
 
288
+ > **Deprecated.** Use `schema pull` (3-way merge) or `schema pull --force` (legacy overwrite) instead. `schema capture` keeps working but will be removed in a future major version.
289
+
282
290
  Saves the current kintone form schema to a YAML file.
283
291
 
284
292
  ```bash
@@ -305,20 +313,20 @@ kintone-migrator schema dump
305
313
 
306
314
  ### `seed` -- Seed Data Management
307
315
 
308
- #### `seed apply`
316
+ #### `seed push`
309
317
 
310
- Upserts seed data records into a kintone app.
318
+ Upserts seed data records into a kintone app. seed is out of scope for 3-way merge, so this is a plain upsert with no drift guard. `seed apply` remains as a deprecated alias for `seed push`. There is no `seed pull`; use `seed capture` to read records.
311
319
 
312
320
  ```bash
313
- kintone-migrator seed apply # Apply seed data
314
- kintone-migrator seed apply --clean --yes # Delete all records first
321
+ kintone-migrator seed push # Upsert seed data
322
+ kintone-migrator seed push --clean --yes # Delete all records first
323
+ kintone-migrator seed apply # Deprecated alias for `seed push`
315
324
  ```
316
325
 
317
326
  | Option | Description |
318
327
  |---|---|
319
328
  | `--seed-file`, `-s` | Seed file path (default: `seed.yaml`) |
320
- | `--key-field`, `-k` | Key field code for upsert |
321
- | `--clean` | Delete all records before applying. |
329
+ | `--clean` | Delete all existing records before upserting seed data (clean push). |
322
330
  | `--yes`, `-y` | Skip confirmation prompts (for `--clean` mode). |
323
331
 
324
332
  #### `seed capture`
@@ -338,6 +346,8 @@ kintone-migrator seed capture --key-field customer_code
338
346
 
339
347
  #### `customize apply`
340
348
 
349
+ > **Deprecated.** Use `customize push` instead (and `customize pull` in place of `customize capture`). The legacy commands keep working but will be removed in a future major version.
350
+
341
351
  Applies JS/CSS customizations from a YAML config file. Local files are uploaded and merged with existing settings.
342
352
 
343
353
  ```bash
@@ -355,6 +365,8 @@ kintone-migrator customize apply --all --yes
355
365
 
356
366
  #### `field-acl apply`
357
367
 
368
+ > **Deprecated.** Use `field-acl push` instead (and `field-acl pull` in place of `field-acl capture`). The legacy commands keep working but will be removed in a future major version.
369
+
358
370
  Applies field access permissions from a YAML config file. Uses full replacement -- the file defines the complete desired state.
359
371
 
360
372
  ```bash
@@ -379,6 +391,8 @@ kintone-migrator field-acl capture --field-acl-file my-field-acl.yaml
379
391
 
380
392
  #### `view apply`
381
393
 
394
+ > **Deprecated.** Use `view push` instead (and `view pull` in place of `view capture`). The legacy commands keep working but will be removed in a future major version.
395
+
382
396
  Applies view settings from a YAML config file.
383
397
 
384
398
  ```bash
@@ -402,6 +416,8 @@ kintone-migrator view capture
402
416
 
403
417
  #### `app-acl apply`
404
418
 
419
+ > **Deprecated.** Use `app-acl push` instead (and `app-acl pull` in place of `app-acl capture`). The legacy commands keep working but will be removed in a future major version.
420
+
405
421
  Applies app-level access permissions from a YAML config file.
406
422
 
407
423
  ```bash
@@ -425,6 +441,8 @@ kintone-migrator app-acl capture
425
441
 
426
442
  #### `record-acl apply`
427
443
 
444
+ > **Deprecated.** Use `record-acl push` instead (and `record-acl pull` in place of `record-acl capture`). The legacy commands keep working but will be removed in a future major version.
445
+
428
446
  Applies record-level access permissions from a YAML config file.
429
447
 
430
448
  ```bash
@@ -448,6 +466,8 @@ kintone-migrator record-acl capture
448
466
 
449
467
  #### `process apply`
450
468
 
469
+ > **Deprecated.** Use `process push` instead (and `process pull` in place of `process capture`). The legacy commands keep working but will be removed in a future major version.
470
+
451
471
  Applies process management settings (statuses, actions, assignees) from a YAML config file.
452
472
 
453
473
  ```bash
@@ -471,6 +491,8 @@ kintone-migrator process capture
471
491
 
472
492
  #### `settings apply`
473
493
 
494
+ > **Deprecated.** Use `settings push` instead (and `settings pull` in place of `settings capture`). The legacy commands keep working but will be removed in a future major version.
495
+
474
496
  Applies general app settings (name, description, icon, theme, etc.) from a YAML config file.
475
497
 
476
498
  ```bash
@@ -494,6 +516,8 @@ kintone-migrator settings capture
494
516
 
495
517
  #### `notification apply`
496
518
 
519
+ > **Deprecated.** Use `notification push` instead (and `notification pull` in place of `notification capture`). The legacy commands keep working but will be removed in a future major version.
520
+
497
521
  Applies notification settings (general, per-record, reminder) from a YAML config file.
498
522
 
499
523
  ```bash
@@ -517,6 +541,8 @@ kintone-migrator notification capture
517
541
 
518
542
  #### `report apply`
519
543
 
544
+ > **Deprecated.** Use `report push` instead (and `report pull` in place of `report capture`). The legacy commands keep working but will be removed in a future major version.
545
+
520
546
  Applies graph and report settings from a YAML config file.
521
547
 
522
548
  ```bash
@@ -540,6 +566,8 @@ kintone-migrator report capture
540
566
 
541
567
  #### `action apply`
542
568
 
569
+ > **Deprecated.** Use `action push` instead (and `action pull` in place of `action capture`). The legacy commands keep working but will be removed in a future major version.
570
+
543
571
  Applies action settings (record copy actions) from a YAML config file.
544
572
 
545
573
  ```bash
@@ -563,6 +591,8 @@ kintone-migrator action capture
563
591
 
564
592
  #### `admin-notes apply`
565
593
 
594
+ > **Deprecated.** Use `admin-notes push` instead (and `admin-notes pull` in place of `admin-notes capture`). The legacy commands keep working but will be removed in a future major version.
595
+
566
596
  Applies admin notes from a YAML config file.
567
597
 
568
598
  ```bash
@@ -586,6 +616,8 @@ kintone-migrator admin-notes capture
586
616
 
587
617
  #### `plugin apply`
588
618
 
619
+ > **Deprecated.** Use `plugin push` instead (and `plugin pull` in place of `plugin capture`). The legacy commands keep working but will be removed in a future major version.
620
+
589
621
  Applies plugin settings (enable/disable installed plugins) from a YAML config file.
590
622
 
591
623
  ```bash