@tailor-platform/sdk 1.68.0 → 1.69.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/dist/application-Br48NXBD.mjs +4 -0
  3. package/dist/application-Cr-limKC.mjs +6192 -0
  4. package/dist/application-Cr-limKC.mjs.map +1 -0
  5. package/dist/cli/index.mjs +13 -12
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +234 -153
  8. package/dist/cli/lib.mjs +3 -3
  9. package/dist/cli/lib.mjs.map +1 -1
  10. package/dist/cli/skills.mjs +1 -1
  11. package/dist/completion/zsh-worker.zsh +23 -23
  12. package/dist/configure/index.d.mts +2 -2
  13. package/dist/configure/index.mjs +4 -0
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/{crashreport-u9y2npiy.mjs → crashreport-BqyvFk-_.mjs} +2 -2
  16. package/dist/{crashreport-u9y2npiy.mjs.map → crashreport-BqyvFk-_.mjs.map} +1 -1
  17. package/dist/{crashreport-6jpCceOF.mjs → crashreport-BwF8cHF0.mjs} +1 -1
  18. package/dist/enum-constants-C7DaWeQo.mjs.map +1 -1
  19. package/dist/field-C4zdJLW5.mjs.map +1 -1
  20. package/dist/file-utils-BHPxPXmn.mjs.map +1 -1
  21. package/dist/{idp-BlBPtXJ-.d.mts → idp-BmYwCXnJ.d.mts} +30 -3
  22. package/dist/{idp-BZPqpcYY.mjs → idp-ynUfzwpz.mjs} +9 -1
  23. package/dist/idp-ynUfzwpz.mjs.map +1 -0
  24. package/dist/{index-DvEUb3pX.d.mts → index-B7VbJm0_.d.mts} +25 -16
  25. package/dist/{index-DRhMpdnA.d.mts → index-dKNk8hjo.d.mts} +2 -2
  26. package/dist/job-BpsFXPbi.mjs.map +1 -1
  27. package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-CSoZxVKN.mjs} +2 -2
  28. package/dist/{kysely-type-D1e0Vwkd.mjs.map → kysely-type-CSoZxVKN.mjs.map} +1 -1
  29. package/dist/{logger-DpJyJvNz.mjs → logger-DKF-JsAK.mjs} +3 -3
  30. package/dist/{logger-DpJyJvNz.mjs.map → logger-DKF-JsAK.mjs.map} +1 -1
  31. package/dist/{mock-DMgIygjE.mjs → mock-wf5qeZLi.mjs} +19 -9
  32. package/dist/mock-wf5qeZLi.mjs.map +1 -0
  33. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  34. package/dist/plugin/index.mjs.map +1 -1
  35. package/dist/registry-D0uB0OrK.mjs.map +1 -1
  36. package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-DD5YP5mt.mjs} +4 -4
  37. package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-DD5YP5mt.mjs.map} +1 -1
  38. package/dist/runtime/globals.d.mts +3 -2
  39. package/dist/runtime/idp.d.mts +2 -2
  40. package/dist/runtime/idp.mjs +1 -1
  41. package/dist/runtime/index.d.mts +2 -2
  42. package/dist/runtime/index.mjs +1 -1
  43. package/dist/{runtime-DxaBq6U8.mjs → runtime-jowoN6qC.mjs} +84 -34
  44. package/dist/runtime-jowoN6qC.mjs.map +1 -0
  45. package/dist/schema-1msIhXwA.mjs.map +1 -1
  46. package/dist/seed-YAbtMy65.mjs.map +1 -1
  47. package/dist/{service-wI3Hvrgx.mjs → service-B2Jd9CxS.mjs} +2 -2
  48. package/dist/service-B2Jd9CxS.mjs.map +1 -0
  49. package/dist/service-CRaa4Joe.mjs +4 -0
  50. package/dist/{service-DMohAx8a.mjs → service-DDWgZL_L2.mjs} +2 -2
  51. package/dist/service-DDWgZL_L2.mjs.map +1 -0
  52. package/dist/service_pb-DGSmn-aF.mjs +4 -0
  53. package/dist/{application-WpWwTyk9.mjs → service_pb-DSNjrcbW.mjs} +22 -6176
  54. package/dist/service_pb-DSNjrcbW.mjs.map +1 -0
  55. package/dist/telemetry-BQbbVo2t.mjs.map +1 -1
  56. package/dist/types-CmzfQP_m.mjs.map +1 -1
  57. package/dist/utils/test/index.d.mts +2 -2
  58. package/dist/utils/test/index.mjs.map +1 -1
  59. package/dist/vitest/environment.mjs +1 -1
  60. package/dist/vitest/environment.mjs.map +1 -1
  61. package/dist/vitest/index.mjs +4 -4
  62. package/dist/vitest/index.mjs.map +1 -1
  63. package/dist/vitest/setup.mjs +1 -1
  64. package/dist/{workflow.generated-1S50BhEb.d.mts → workflow.generated-Br9bmLdX.d.mts} +98 -3
  65. package/docs/cli/application.md +5 -202
  66. package/docs/cli/auth.md +12 -256
  67. package/docs/cli/completion.md +0 -24
  68. package/docs/cli/crashreport.md +0 -58
  69. package/docs/cli/executor.md +2 -166
  70. package/docs/cli/function.md +2 -118
  71. package/docs/cli/organization.md +1 -211
  72. package/docs/cli/query.md +0 -20
  73. package/docs/cli/secret.md +70 -250
  74. package/docs/cli/setup.md +1 -41
  75. package/docs/cli/skills.md +0 -39
  76. package/docs/cli/staticwebsite.md +24 -172
  77. package/docs/cli/tailordb.md +5 -255
  78. package/docs/cli/upgrade.md +0 -20
  79. package/docs/cli/user.md +32 -247
  80. package/docs/cli/workflow.md +30 -189
  81. package/docs/cli/workspace.md +158 -537
  82. package/docs/cli-reference.md +55 -37
  83. package/docs/configuration.md +7 -1
  84. package/docs/services/idp.md +55 -2
  85. package/docs/services/staticwebsite.md +7 -1
  86. package/package.json +23 -18
  87. package/dist/application-Djeezk3m.mjs +0 -4
  88. package/dist/application-WpWwTyk9.mjs.map +0 -1
  89. package/dist/idp-BZPqpcYY.mjs.map +0 -1
  90. package/dist/mock-DMgIygjE.mjs.map +0 -1
  91. package/dist/runtime-DxaBq6U8.mjs.map +0 -1
  92. package/dist/service-BHQIerYh.mjs +0 -4
  93. package/dist/service-DMohAx8a.mjs.map +0 -1
  94. package/dist/service-wI3Hvrgx.mjs.map +0 -1
@@ -2,29 +2,17 @@
2
2
 
3
3
  Commands for managing TailorDB tables, data, and schema migrations.
4
4
 
5
- <!-- politty:command:tailordb:heading:start -->
6
-
7
5
  ## tailordb
8
6
 
9
- <!-- politty:command:tailordb:heading:end -->
10
-
11
- <!-- politty:command:tailordb:description:start -->
12
-
13
7
  Manage TailorDB tables and data.
14
8
 
15
- <!-- politty:command:tailordb:description:end -->
16
-
17
- <!-- politty:command:tailordb:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
- tailor-sdk tailordb [command]
12
+ tailor-sdk tailordb <command>
23
13
  ```
24
14
 
25
- <!-- politty:command:tailordb:usage:end -->
26
-
27
- <!-- politty:command:tailordb:subcommands:start -->
15
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
28
16
 
29
17
  **Commands**
30
18
 
@@ -34,48 +22,22 @@ tailor-sdk tailordb [command]
34
22
  | [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations. |
35
23
  | [`tailordb erd`](#tailordb-erd) | Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta) |
36
24
 
37
- <!-- politty:command:tailordb:subcommands:end -->
38
-
39
- <!-- politty:command:tailordb:global-options-link:start -->
40
-
41
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
42
-
43
- <!-- politty:command:tailordb:global-options-link:end -->
44
-
45
- <!-- politty:command:tailordb truncate:heading:start -->
46
-
47
25
  ### tailordb truncate
48
26
 
49
- <!-- politty:command:tailordb truncate:heading:end -->
50
-
51
- <!-- politty:command:tailordb truncate:description:start -->
52
-
53
27
  Truncate (delete all records from) TailorDB tables.
54
28
 
55
- <!-- politty:command:tailordb truncate:description:end -->
56
-
57
- <!-- politty:command:tailordb truncate:usage:start -->
58
-
59
29
  **Usage**
60
30
 
61
31
  ```
62
32
  tailor-sdk tailordb truncate [options] [types]
63
33
  ```
64
34
 
65
- <!-- politty:command:tailordb truncate:usage:end -->
66
-
67
- <!-- politty:command:tailordb truncate:arguments:start -->
68
-
69
35
  **Arguments**
70
36
 
71
37
  | Argument | Description | Required |
72
38
  | -------- | ---------------------- | -------- |
73
39
  | `types` | Type names to truncate | No |
74
40
 
75
- <!-- politty:command:tailordb truncate:arguments:end -->
76
-
77
- <!-- politty:command:tailordb truncate:options:start -->
78
-
79
41
  **Options**
80
42
 
81
43
  | Option | Alias | Description | Required | Default | Env |
@@ -87,14 +49,8 @@ tailor-sdk tailordb truncate [options] [types]
87
49
  | `--all` | `-a` | Truncate all tables in all owned namespaces (excludes external namespaces) | No | `false` | - |
88
50
  | `--namespace <NAMESPACE>` | `-n` | Truncate all tables in specified namespace | No | - | - |
89
51
 
90
- <!-- politty:command:tailordb truncate:options:end -->
91
-
92
- <!-- politty:command:tailordb truncate:global-options-link:start -->
93
-
94
52
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
95
53
 
96
- <!-- politty:command:tailordb truncate:global-options-link:end -->
97
-
98
54
  **Usage Examples:**
99
55
 
100
56
  ```bash
@@ -125,32 +81,18 @@ tailor-sdk tailordb truncate User Post --yes
125
81
  - Use `--yes` flag to skip confirmation prompts (useful for scripts and CI/CD)
126
82
  - Namespaces declared with `{ external: true }` are skipped by `--all` and rejected with a dedicated error when targeted by `--namespace`. Run truncate from the app that owns the namespace.
127
83
 
128
- <!-- politty:command:tailordb migration:heading:start -->
129
-
130
84
  ### tailordb migration
131
85
 
132
- <!-- politty:command:tailordb migration:heading:end -->
133
-
134
- <!-- politty:command:tailordb migration:description:start -->
135
-
136
86
  Manage TailorDB schema migrations.
137
87
 
138
- <!-- politty:command:tailordb migration:description:end -->
139
-
140
88
  Note: Migration scripts are automatically executed during `tailor-sdk deploy`. See [Automatic Migration Execution](../services/tailordb-migration.md#automatic-migration-execution) for details.
141
89
 
142
- <!-- politty:command:tailordb migration:usage:start -->
143
-
144
90
  **Usage**
145
91
 
146
92
  ```
147
- tailor-sdk tailordb migration [command]
93
+ tailor-sdk tailordb migration <command>
148
94
  ```
149
95
 
150
- <!-- politty:command:tailordb migration:usage:end -->
151
-
152
- <!-- politty:command:tailordb migration:subcommands:start -->
153
-
154
96
  **Commands**
155
97
 
156
98
  | Command | Description |
@@ -161,37 +103,18 @@ tailor-sdk tailordb migration [command]
161
103
  | [`tailordb migration status`](#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
162
104
  | [`tailordb migration sync`](#tailordb-migration-sync) | Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift). |
163
105
 
164
- <!-- politty:command:tailordb migration:subcommands:end -->
165
-
166
- <!-- politty:command:tailordb migration:global-options-link:start -->
167
-
168
106
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
169
107
 
170
- <!-- politty:command:tailordb migration:global-options-link:end -->
171
- <!-- politty:command:tailordb migration generate:heading:start -->
172
-
173
108
  #### tailordb migration generate
174
109
 
175
- <!-- politty:command:tailordb migration generate:heading:end -->
176
-
177
- <!-- politty:command:tailordb migration generate:description:start -->
178
-
179
110
  Generate migration files by detecting schema differences between current local types and the previous migration snapshot.
180
111
 
181
- <!-- politty:command:tailordb migration generate:description:end -->
182
-
183
- <!-- politty:command:tailordb migration generate:usage:start -->
184
-
185
112
  **Usage**
186
113
 
187
114
  ```
188
115
  tailor-sdk tailordb migration generate [options]
189
116
  ```
190
117
 
191
- <!-- politty:command:tailordb migration generate:usage:end -->
192
-
193
- <!-- politty:command:tailordb migration generate:options:start -->
194
-
195
118
  **Options**
196
119
 
197
120
  | Option | Alias | Description | Required | Default | Env |
@@ -201,47 +124,24 @@ tailor-sdk tailordb migration generate [options]
201
124
  | `--name <NAME>` | `-n` | Optional description for the migration | No | - | - |
202
125
  | `--init` | - | Delete existing migrations and start fresh | No | `false` | - |
203
126
 
204
- <!-- politty:command:tailordb migration generate:options:end -->
205
-
206
- <!-- politty:command:tailordb migration generate:global-options-link:start -->
207
-
208
127
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
209
128
 
210
- <!-- politty:command:tailordb migration generate:global-options-link:end -->
211
- <!-- politty:command:tailordb migration script:heading:start -->
212
-
213
129
  #### tailordb migration script
214
130
 
215
- <!-- politty:command:tailordb migration script:heading:end -->
216
-
217
- <!-- politty:command:tailordb migration script:description:start -->
218
-
219
131
  Add a migration script (migrate.ts) template to an existing migration directory.
220
132
 
221
- <!-- politty:command:tailordb migration script:description:end -->
222
-
223
- <!-- politty:command:tailordb migration script:usage:start -->
224
-
225
133
  **Usage**
226
134
 
227
135
  ```
228
136
  tailor-sdk tailordb migration script [options] <number>
229
137
  ```
230
138
 
231
- <!-- politty:command:tailordb migration script:usage:end -->
232
-
233
- <!-- politty:command:tailordb migration script:arguments:start -->
234
-
235
139
  **Arguments**
236
140
 
237
141
  | Argument | Description | Required |
238
142
  | -------- | ----------------------------------------------------- | -------- |
239
143
  | `number` | Migration number to add a script to (e.g., 0001 or 1) | Yes |
240
144
 
241
- <!-- politty:command:tailordb migration script:arguments:end -->
242
-
243
- <!-- politty:command:tailordb migration script:options:start -->
244
-
245
145
  **Options**
246
146
 
247
147
  | Option | Alias | Description | Required | Default | Env |
@@ -249,48 +149,24 @@ tailor-sdk tailordb migration script [options] <number>
249
149
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
250
150
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
251
151
 
252
- <!-- politty:command:tailordb migration script:options:end -->
253
-
254
- <!-- politty:command:tailordb migration script:global-options-link:start -->
255
-
256
152
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
257
153
 
258
- <!-- politty:command:tailordb migration script:global-options-link:end -->
259
-
260
- <!-- politty:command:tailordb migration set:heading:start -->
261
-
262
154
  #### tailordb migration set
263
155
 
264
- <!-- politty:command:tailordb migration set:heading:end -->
265
-
266
- <!-- politty:command:tailordb migration set:description:start -->
267
-
268
156
  Set migration checkpoint to a specific number.
269
157
 
270
- <!-- politty:command:tailordb migration set:description:end -->
271
-
272
- <!-- politty:command:tailordb migration set:usage:start -->
273
-
274
158
  **Usage**
275
159
 
276
160
  ```
277
161
  tailor-sdk tailordb migration set [options] <number>
278
162
  ```
279
163
 
280
- <!-- politty:command:tailordb migration set:usage:end -->
281
-
282
- <!-- politty:command:tailordb migration set:arguments:start -->
283
-
284
164
  **Arguments**
285
165
 
286
166
  | Argument | Description | Required |
287
167
  | -------- | ----------------------------------------- | -------- |
288
168
  | `number` | Migration number to set (e.g., 0001 or 1) | Yes |
289
169
 
290
- <!-- politty:command:tailordb migration set:arguments:end -->
291
-
292
- <!-- politty:command:tailordb migration set:options:start -->
293
-
294
170
  **Options**
295
171
 
296
172
  | Option | Alias | Description | Required | Default | Env |
@@ -301,37 +177,18 @@ tailor-sdk tailordb migration set [options] <number>
301
177
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
302
178
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
303
179
 
304
- <!-- politty:command:tailordb migration set:options:end -->
305
-
306
- <!-- politty:command:tailordb migration set:global-options-link:start -->
307
-
308
180
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
309
181
 
310
- <!-- politty:command:tailordb migration set:global-options-link:end -->
311
- <!-- politty:command:tailordb migration status:heading:start -->
312
-
313
182
  #### tailordb migration status
314
183
 
315
- <!-- politty:command:tailordb migration status:heading:end -->
316
-
317
- <!-- politty:command:tailordb migration status:description:start -->
318
-
319
184
  Show the current migration status for TailorDB namespaces, including applied and pending migrations.
320
185
 
321
- <!-- politty:command:tailordb migration status:description:end -->
322
-
323
- <!-- politty:command:tailordb migration status:usage:start -->
324
-
325
186
  **Usage**
326
187
 
327
188
  ```
328
189
  tailor-sdk tailordb migration status [options]
329
190
  ```
330
191
 
331
- <!-- politty:command:tailordb migration status:usage:end -->
332
-
333
- <!-- politty:command:tailordb migration status:options:start -->
334
-
335
192
  **Options**
336
193
 
337
194
  | Option | Alias | Description | Required | Default | Env |
@@ -341,48 +198,24 @@ tailor-sdk tailordb migration status [options]
341
198
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
342
199
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (shows all namespaces if not specified) | No | - | - |
343
200
 
344
- <!-- politty:command:tailordb migration status:options:end -->
345
-
346
- <!-- politty:command:tailordb migration status:global-options-link:start -->
347
-
348
201
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
349
202
 
350
- <!-- politty:command:tailordb migration status:global-options-link:end -->
351
-
352
- <!-- politty:command:tailordb migration sync:heading:start -->
353
-
354
203
  #### tailordb migration sync
355
204
 
356
- <!-- politty:command:tailordb migration sync:heading:end -->
357
-
358
- <!-- politty:command:tailordb migration sync:description:start -->
359
-
360
205
  Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift).
361
206
 
362
- <!-- politty:command:tailordb migration sync:description:end -->
363
-
364
- <!-- politty:command:tailordb migration sync:usage:start -->
365
-
366
207
  **Usage**
367
208
 
368
209
  ```
369
210
  tailor-sdk tailordb migration sync [options] <number>
370
211
  ```
371
212
 
372
- <!-- politty:command:tailordb migration sync:usage:end -->
373
-
374
- <!-- politty:command:tailordb migration sync:arguments:start -->
375
-
376
213
  **Arguments**
377
214
 
378
215
  | Argument | Description | Required |
379
216
  | -------- | ------------------------------------------------------------------------------ | -------- |
380
217
  | `number` | Migration number to sync to (e.g., 0001 or 1; 0 targets the baseline snapshot) | Yes |
381
218
 
382
- <!-- politty:command:tailordb migration sync:arguments:end -->
383
-
384
- <!-- politty:command:tailordb migration sync:options:start -->
385
-
386
219
  **Options**
387
220
 
388
221
  | Option | Alias | Description | Required | Default | Env |
@@ -393,39 +226,21 @@ tailor-sdk tailordb migration sync [options] <number>
393
226
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
394
227
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
395
228
 
396
- <!-- politty:command:tailordb migration sync:options:end -->
397
-
398
- <!-- politty:command:tailordb migration sync:global-options-link:start -->
399
-
400
229
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
401
230
 
402
- <!-- politty:command:tailordb migration sync:global-options-link:end -->
403
-
404
231
  **See also:** For migration concepts, configuration, workflow, and troubleshooting, see the [TailorDB Migrations guide](../services/tailordb-migration.md).
405
232
 
406
- <!-- politty:command:tailordb erd:heading:start -->
407
-
408
233
  ### tailordb erd
409
234
 
410
- <!-- politty:command:tailordb erd:heading:end -->
411
-
412
- <!-- politty:command:tailordb erd:description:start -->
413
-
414
235
  Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta)
415
236
 
416
- <!-- politty:command:tailordb erd:description:end -->
417
-
418
- <!-- politty:command:tailordb erd:usage:start -->
419
-
420
237
  **Usage**
421
238
 
422
239
  ```
423
- tailor-sdk tailordb erd [command]
240
+ tailor-sdk tailordb erd <command>
424
241
  ```
425
242
 
426
- <!-- politty:command:tailordb erd:usage:end -->
427
-
428
- <!-- politty:command:tailordb erd:subcommands:start -->
243
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
429
244
 
430
245
  **Commands**
431
246
 
@@ -435,37 +250,16 @@ tailor-sdk tailordb erd [command]
435
250
  | [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve TailorDB ERD locally with watch reload. (beta) |
436
251
  | [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
437
252
 
438
- <!-- politty:command:tailordb erd:subcommands:end -->
439
-
440
- <!-- politty:command:tailordb erd:global-options-link:start -->
441
-
442
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
443
-
444
- <!-- politty:command:tailordb erd:global-options-link:end -->
445
- <!-- politty:command:tailordb erd export:heading:start -->
446
-
447
253
  #### tailordb erd export
448
254
 
449
- <!-- politty:command:tailordb erd export:heading:end -->
450
-
451
- <!-- politty:command:tailordb erd export:description:start -->
452
-
453
255
  Export TailorDB ERD static viewer from local TailorDB schema.
454
256
 
455
- <!-- politty:command:tailordb erd export:description:end -->
456
-
457
- <!-- politty:command:tailordb erd export:usage:start -->
458
-
459
257
  **Usage**
460
258
 
461
259
  ```
462
260
  tailor-sdk tailordb erd export [options]
463
261
  ```
464
262
 
465
- <!-- politty:command:tailordb erd export:usage:end -->
466
-
467
- <!-- politty:command:tailordb erd export:options:start -->
468
-
469
263
  **Options**
470
264
 
471
265
  | Option | Alias | Description | Required | Default | Env |
@@ -474,37 +268,18 @@ tailor-sdk tailordb erd export [options]
474
268
  | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
475
269
  | `--output <OUTPUT>` | `-o` | Output directory path for TailorDB ERD viewer files (writes to `<outputDir>/<namespace>/dist`) | No | `".tailor-sdk/erd"` | - |
476
270
 
477
- <!-- politty:command:tailordb erd export:options:end -->
478
-
479
- <!-- politty:command:tailordb erd export:global-options-link:start -->
480
-
481
271
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
482
272
 
483
- <!-- politty:command:tailordb erd export:global-options-link:end -->
484
- <!-- politty:command:tailordb erd serve:heading:start -->
485
-
486
273
  #### tailordb erd serve
487
274
 
488
- <!-- politty:command:tailordb erd serve:heading:end -->
489
-
490
- <!-- politty:command:tailordb erd serve:description:start -->
491
-
492
275
  Generate and serve TailorDB ERD locally with watch reload. (beta)
493
276
 
494
- <!-- politty:command:tailordb erd serve:description:end -->
495
-
496
- <!-- politty:command:tailordb erd serve:usage:start -->
497
-
498
277
  **Usage**
499
278
 
500
279
  ```
501
280
  tailor-sdk tailordb erd serve [options]
502
281
  ```
503
282
 
504
- <!-- politty:command:tailordb erd serve:usage:end -->
505
-
506
- <!-- politty:command:tailordb erd serve:options:start -->
507
-
508
283
  **Options**
509
284
 
510
285
  | Option | Alias | Description | Required | Default | Env |
@@ -514,37 +289,18 @@ tailor-sdk tailordb erd serve [options]
514
289
  | `--port <PORT>` | - | Local server port (0 selects a free port) | No | `0` | - |
515
290
  | `--open` | - | Open the ERD viewer in the default browser | No | `false` | - |
516
291
 
517
- <!-- politty:command:tailordb erd serve:options:end -->
518
-
519
- <!-- politty:command:tailordb erd serve:global-options-link:start -->
520
-
521
292
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
522
293
 
523
- <!-- politty:command:tailordb erd serve:global-options-link:end -->
524
- <!-- politty:command:tailordb erd deploy:heading:start -->
525
-
526
294
  #### tailordb erd deploy
527
295
 
528
- <!-- politty:command:tailordb erd deploy:heading:end -->
529
-
530
- <!-- politty:command:tailordb erd deploy:description:start -->
531
-
532
296
  Deploy ERD static website for TailorDB namespace(s).
533
297
 
534
- <!-- politty:command:tailordb erd deploy:description:end -->
535
-
536
- <!-- politty:command:tailordb erd deploy:usage:start -->
537
-
538
298
  **Usage**
539
299
 
540
300
  ```
541
301
  tailor-sdk tailordb erd deploy [options]
542
302
  ```
543
303
 
544
- <!-- politty:command:tailordb erd deploy:usage:end -->
545
-
546
- <!-- politty:command:tailordb erd deploy:options:start -->
547
-
548
304
  **Options**
549
305
 
550
306
  | Option | Alias | Description | Required | Default | Env |
@@ -554,14 +310,8 @@ tailor-sdk tailordb erd deploy [options]
554
310
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
555
311
  | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted) | No | - | - |
556
312
 
557
- <!-- politty:command:tailordb erd deploy:options:end -->
558
-
559
- <!-- politty:command:tailordb erd deploy:global-options-link:start -->
560
-
561
313
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
562
314
 
563
- <!-- politty:command:tailordb erd deploy:global-options-link:end -->
564
-
565
315
  **Notes:**
566
316
 
567
317
  - ERD commands build from the local TailorDB schema, including plugin-generated TailorDB types.
@@ -1,27 +1,13 @@
1
- <!-- politty:command:upgrade:heading:start -->
2
-
3
1
  ## upgrade
4
2
 
5
- <!-- politty:command:upgrade:heading:end -->
6
-
7
- <!-- politty:command:upgrade:description:start -->
8
-
9
3
  Run codemods to upgrade your project to a newer SDK version.
10
4
 
11
- <!-- politty:command:upgrade:description:end -->
12
-
13
- <!-- politty:command:upgrade:usage:start -->
14
-
15
5
  **Usage**
16
6
 
17
7
  ```
18
8
  tailor-sdk upgrade [options]
19
9
  ```
20
10
 
21
- <!-- politty:command:upgrade:usage:end -->
22
-
23
- <!-- politty:command:upgrade:options:start -->
24
-
25
11
  **Options**
26
12
 
27
13
  | Option | Alias | Description | Required | Default |
@@ -30,14 +16,8 @@ tailor-sdk upgrade [options]
30
16
  | `--dry-run` | `-d` | Preview changes without modifying files | No | `false` |
31
17
  | `--path <PATH>` | - | Project directory to upgrade | No | `"."` |
32
18
 
33
- <!-- politty:command:upgrade:options:end -->
34
-
35
- <!-- politty:command:upgrade:global-options-link:start -->
36
-
37
19
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
38
20
 
39
- <!-- politty:command:upgrade:global-options-link:end -->
40
-
41
21
  ### How It Works
42
22
 
43
23
  The `upgrade` command runs codemods that automatically transform your project code for breaking changes between SDK versions. The target version (`--to`) is auto-detected from the installed `@tailor-platform/sdk` in `node_modules`.