@tailor-platform/sdk 1.7.0 → 1.9.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 (41) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/application-BdZ8qL7I.mjs +4 -0
  3. package/dist/{application-Ba2B5A-w.mjs → application-_ArEfxmV.mjs} +94 -15
  4. package/dist/application-_ArEfxmV.mjs.map +1 -0
  5. package/dist/cli/index.mjs +46 -47
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +14 -7
  8. package/dist/cli/lib.mjs +2 -3
  9. package/dist/cli/lib.mjs.map +1 -1
  10. package/dist/configure/index.d.mts +3 -3
  11. package/dist/configure/index.mjs +778 -2
  12. package/dist/configure/index.mjs.map +1 -1
  13. package/dist/{index-BSrVjiPg.d.mts → index-Bd255ayy.d.mts} +81 -37
  14. package/dist/{index-DraFftyF.d.mts → index-DFEsnnHR.d.mts} +211 -181
  15. package/dist/{jiti-SMSW3TA0.mjs → jiti-ygK9KoRA.mjs} +1 -1
  16. package/dist/{jiti-SMSW3TA0.mjs.map → jiti-ygK9KoRA.mjs.map} +1 -1
  17. package/dist/{job-8XfvLyxH.mjs → job-l-pIR9IY.mjs} +1 -1
  18. package/dist/{job-8XfvLyxH.mjs.map → job-l-pIR9IY.mjs.map} +1 -1
  19. package/dist/{list-DArHhlnw.mjs → list-CYsYjREc.mjs} +178 -108
  20. package/dist/list-CYsYjREc.mjs.map +1 -0
  21. package/dist/{src-qLXX6nub.mjs → src-CG8kJBI9.mjs} +1 -1
  22. package/dist/{src-qLXX6nub.mjs.map → src-CG8kJBI9.mjs.map} +1 -1
  23. package/dist/utils/test/index.d.mts +2 -2
  24. package/dist/utils/test/index.mjs +1 -1
  25. package/docs/cli/application.md +114 -35
  26. package/docs/cli/auth.md +101 -44
  27. package/docs/cli/executor.md +65 -33
  28. package/docs/cli/secret.md +133 -51
  29. package/docs/cli/staticwebsite.md +78 -41
  30. package/docs/cli/tailordb.md +227 -155
  31. package/docs/cli/user.md +164 -66
  32. package/docs/cli/workflow.md +132 -73
  33. package/docs/cli/workspace.md +126 -45
  34. package/docs/generator/custom.md +2 -2
  35. package/docs/services/auth.md +88 -1
  36. package/package.json +3 -1
  37. package/dist/application-Ba2B5A-w.mjs.map +0 -1
  38. package/dist/application-C_MQabII.mjs +0 -5
  39. package/dist/auth-Co6vu1MY.mjs +0 -779
  40. package/dist/auth-Co6vu1MY.mjs.map +0 -1
  41. package/dist/list-DArHhlnw.mjs.map +0 -1
@@ -2,29 +2,98 @@
2
2
 
3
3
  Commands for managing and deploying static websites.
4
4
 
5
+ <!-- politty:command:staticwebsite:start -->
6
+
5
7
  ## staticwebsite
6
8
 
7
9
  Manage static websites in your workspace.
8
10
 
9
- ```bash
10
- tailor-sdk staticwebsite <subcommand> [options]
11
+ **Usage**
12
+
13
+ ```
14
+ tailor-sdk staticwebsite [command]
11
15
  ```
12
16
 
17
+ **Commands**
18
+
19
+ | Command | Description |
20
+ | ----------------------------------------------- | ----------------------------------------------------- |
21
+ | [`staticwebsite deploy`](#staticwebsite-deploy) | Deploy a static website from a local build directory. |
22
+ | [`staticwebsite get`](#staticwebsite-get) | Get details of a specific static website. |
23
+ | [`staticwebsite list`](#staticwebsite-list) | List all static websites in a workspace. |
24
+
25
+ <!-- politty:command:staticwebsite:end -->
26
+ <!-- politty:command:staticwebsite deploy:start -->
27
+
13
28
  ### staticwebsite deploy
14
29
 
15
30
  Deploy a static website from a local build directory.
16
31
 
17
- ```bash
32
+ **Usage**
33
+
34
+ ```
18
35
  tailor-sdk staticwebsite deploy [options]
19
36
  ```
20
37
 
21
- **Options:**
38
+ **Options**
39
+
40
+ | Option | Alias | Description | Default |
41
+ | ------------------------------- | ----- | -------------------------------- | ------- |
42
+ | `--json` | `-j` | Output as JSON | `false` |
43
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
44
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
45
+ | `--name <NAME>` | `-n` | Static website name | - |
46
+ | `--dir <DIR>` | `-d` | Path to the static website files | - |
47
+
48
+ <!-- politty:command:staticwebsite deploy:end -->
49
+ <!-- politty:command:staticwebsite list:start -->
22
50
 
23
- - `-n, --name` - Static website name (required)
24
- - `-d, --dir` - Path to the static website files (required)
25
- - `-w, --workspace-id` - ID of the workspace
26
- - `-p, --profile` - Workspace profile to use
27
- - `-j, --json` - Output as JSON
51
+ ### staticwebsite list
52
+
53
+ List all static websites in a workspace.
54
+
55
+ **Usage**
56
+
57
+ ```
58
+ tailor-sdk staticwebsite list [options]
59
+ ```
60
+
61
+ **Options**
62
+
63
+ | Option | Alias | Description | Default |
64
+ | ------------------------------- | ----- | ----------------- | ------- |
65
+ | `--json` | `-j` | Output as JSON | `false` |
66
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
67
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
68
+
69
+ <!-- politty:command:staticwebsite list:end -->
70
+ <!-- politty:command:staticwebsite get:start -->
71
+
72
+ ### staticwebsite get
73
+
74
+ Get details of a specific static website.
75
+
76
+ **Usage**
77
+
78
+ ```
79
+ tailor-sdk staticwebsite get [options] <name>
80
+ ```
81
+
82
+ **Arguments**
83
+
84
+ | Argument | Description | Required |
85
+ | -------- | ------------------- | -------- |
86
+ | `name` | Static website name | Yes |
87
+
88
+ **Options**
89
+
90
+ | Option | Alias | Description | Default |
91
+ | ------------------------------- | ----- | ----------------- | ------- |
92
+ | `--json` | `-j` | Output as JSON | `false` |
93
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
94
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
95
+
96
+ <!-- politty:command:staticwebsite get:end -->
28
97
 
29
98
  **Example:**
30
99
 
@@ -43,20 +112,6 @@ tailor-sdk staticwebsite deploy -n my-website -d ./dist -w ws_abc123
43
112
  - Unsupported file types or invalid files will be skipped with warnings
44
113
  - The deployment URL is returned after successful deployment
45
114
 
46
- ### staticwebsite list
47
-
48
- List all static websites in a workspace.
49
-
50
- ```bash
51
- tailor-sdk staticwebsite list [options]
52
- ```
53
-
54
- **Options:**
55
-
56
- - `-w, --workspace-id` - ID of the workspace
57
- - `-p, --profile` - Workspace profile to use
58
- - `-j, --json` - Output as JSON
59
-
60
115
  **Example:**
61
116
 
62
117
  ```bash
@@ -67,24 +122,6 @@ tailor-sdk staticwebsite list
67
122
  tailor-sdk staticwebsite list --json
68
123
  ```
69
124
 
70
- ### staticwebsite get
71
-
72
- Get details of a specific static website.
73
-
74
- ```bash
75
- tailor-sdk staticwebsite get <name> [options]
76
- ```
77
-
78
- **Arguments:**
79
-
80
- - `name` - Static website name (required)
81
-
82
- **Options:**
83
-
84
- - `-w, --workspace-id` - ID of the workspace
85
- - `-p, --profile` - Workspace profile to use
86
- - `-j, --json` - Output as JSON
87
-
88
125
  **Example:**
89
126
 
90
127
  ```bash
@@ -2,26 +2,241 @@
2
2
 
3
3
  Commands for managing TailorDB tables, data, and schema migrations.
4
4
 
5
- ## tailordb truncate
5
+ <!-- politty:command:tailordb:start -->
6
+
7
+ ## tailordb
8
+
9
+ Manage TailorDB tables and data.
10
+
11
+ **Usage**
12
+
13
+ ```
14
+ tailor-sdk tailordb [command]
15
+ ```
16
+
17
+ **Commands**
18
+
19
+ | Command | Description |
20
+ | ------------------------------------------- | --------------------------------------------------------------------- |
21
+ | [`tailordb erd`](#tailordb-erd) | Generate ERD artifacts for TailorDB namespaces using Liam ERD. (beta) |
22
+ | [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations. |
23
+ | [`tailordb truncate`](#tailordb-truncate) | Truncate (delete all records from) TailorDB tables. |
24
+
25
+ <!-- politty:command:tailordb:end -->
26
+ <!-- politty:command:tailordb truncate:start -->
27
+
28
+ ### tailordb truncate
6
29
 
7
30
  Truncate (delete all records from) TailorDB tables.
8
31
 
9
- ```bash
10
- tailor-sdk tailordb truncate [types...] [options]
32
+ **Usage**
33
+
34
+ ```
35
+ tailor-sdk tailordb truncate [options] [types]
36
+ ```
37
+
38
+ **Arguments**
39
+
40
+ | Argument | Description | Required |
41
+ | -------- | ---------------------- | -------- |
42
+ | `types` | Type names to truncate | No |
43
+
44
+ **Options**
45
+
46
+ | Option | Alias | Description | Default |
47
+ | ------------------------------- | ----- | ------------------------------------------ | -------------------- |
48
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
49
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
50
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | `"tailor.config.ts"` |
51
+ | `--yes` | `-y` | Skip confirmation prompts | `false` |
52
+ | `--all` | `-a` | Truncate all tables in all namespaces | `false` |
53
+ | `--namespace <NAMESPACE>` | `-n` | Truncate all tables in specified namespace | - |
54
+
55
+ <!-- politty:command:tailordb truncate:end -->
56
+ <!-- politty:command:tailordb migration:start -->
57
+
58
+ ### tailordb migration
59
+
60
+ Manage TailorDB schema migrations.
61
+
62
+ **Usage**
63
+
64
+ ```
65
+ tailor-sdk tailordb migration [command]
66
+ ```
67
+
68
+ **Commands**
69
+
70
+ | Command | Description |
71
+ | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
72
+ | [`tailordb migration generate`](#tailordb-migration-generate) | Generate migration files by detecting schema differences between current local types and the previous migration snapshot. |
73
+ | [`tailordb migration set`](#tailordb-migration-set) | Set migration checkpoint to a specific number. |
74
+ | [`tailordb migration status`](#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
75
+
76
+ <!-- politty:command:tailordb migration:end -->
77
+ <!-- politty:command:tailordb migration generate:start -->
78
+
79
+ #### tailordb migration generate
80
+
81
+ Generate migration files by detecting schema differences between current local types and the previous migration snapshot.
82
+
83
+ **Usage**
84
+
85
+ ```
86
+ tailor-sdk tailordb migration generate [options]
87
+ ```
88
+
89
+ **Options**
90
+
91
+ | Option | Alias | Description | Default |
92
+ | ------------------- | ----- | ------------------------------------------ | -------------------- |
93
+ | `--yes` | `-y` | Skip confirmation prompts | `false` |
94
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | `"tailor.config.ts"` |
95
+ | `--name <NAME>` | `-n` | Optional description for the migration | - |
96
+ | `--init` | - | Delete existing migrations and start fresh | `false` |
97
+
98
+ <!-- politty:command:tailordb migration generate:end -->
99
+ <!-- politty:command:tailordb migration set:start -->
100
+
101
+ #### tailordb migration set
102
+
103
+ Set migration checkpoint to a specific number.
104
+
105
+ **Usage**
106
+
107
+ ```
108
+ tailor-sdk tailordb migration set [options] <number>
109
+ ```
110
+
111
+ **Arguments**
112
+
113
+ | Argument | Description | Required |
114
+ | -------- | ----------------------------------------- | -------- |
115
+ | `number` | Migration number to set (e.g., 0001 or 1) | Yes |
116
+
117
+ **Options**
118
+
119
+ | Option | Alias | Description | Default |
120
+ | ------------------------------- | ----- | ----------------------------------------------------------------- | -------------------- |
121
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
122
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
123
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | `"tailor.config.ts"` |
124
+ | `--yes` | `-y` | Skip confirmation prompts | `false` |
125
+ | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | - |
126
+
127
+ <!-- politty:command:tailordb migration set:end -->
128
+ <!-- politty:command:tailordb migration status:start -->
129
+
130
+ #### tailordb migration status
131
+
132
+ Show the current migration status for TailorDB namespaces, including applied and pending migrations.
133
+
134
+ **Usage**
135
+
136
+ ```
137
+ tailor-sdk tailordb migration status [options]
138
+ ```
139
+
140
+ **Options**
141
+
142
+ | Option | Alias | Description | Default |
143
+ | ------------------------------- | ----- | ----------------------------------------------------------------- | -------------------- |
144
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
145
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
146
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | `"tailor.config.ts"` |
147
+ | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (shows all namespaces if not specified) | - |
148
+
149
+ <!-- politty:command:tailordb migration status:end -->
150
+ <!-- politty:command:tailordb erd:start -->
151
+
152
+ ### tailordb erd
153
+
154
+ Generate ERD artifacts for TailorDB namespaces using Liam ERD. (beta)
155
+
156
+ **Usage**
157
+
158
+ ```
159
+ tailor-sdk tailordb erd [command]
160
+ ```
161
+
162
+ **Commands**
163
+
164
+ | Command | Description |
165
+ | --------------------------------------------- | ---------------------------------------------------------------- |
166
+ | [`tailordb erd export`](#tailordb-erd-export) | Export Liam ERD dist from applied TailorDB schema. |
167
+ | [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve ERD locally (liam build + serve dist). (beta) |
168
+ | [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
169
+
170
+ <!-- politty:command:tailordb erd:end -->
171
+ <!-- politty:command:tailordb erd export:start -->
172
+
173
+ #### tailordb erd export
174
+
175
+ Export Liam ERD dist from applied TailorDB schema.
176
+
177
+ **Usage**
178
+
179
+ ```
180
+ tailor-sdk tailordb erd export [options]
181
+ ```
182
+
183
+ **Options**
184
+
185
+ | Option | Alias | Description | Default |
186
+ | ------------------------------- | ----- | -------------------------------------------------------------------------------------------------- | -------------------- |
187
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
188
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
189
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | `"tailor.config.ts"` |
190
+ | `--json` | `-j` | Output as JSON | `false` |
191
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | - |
192
+ | `--output <OUTPUT>` | `-o` | Output directory path for tbls-compatible ERD JSON (writes to <outputDir>/<namespace>/schema.json) | `".tailor-sdk/erd"` |
193
+
194
+ <!-- politty:command:tailordb erd export:end -->
195
+ <!-- politty:command:tailordb erd serve:start -->
196
+
197
+ #### tailordb erd serve
198
+
199
+ Generate and serve ERD locally (liam build + serve dist). (beta)
200
+
201
+ **Usage**
202
+
203
+ ```
204
+ tailor-sdk tailordb erd serve [options]
11
205
  ```
12
206
 
13
- **Arguments:**
207
+ **Options**
14
208
 
15
- - `types...` - Space-separated list of type names to truncate (optional)
209
+ | Option | Alias | Description | Default |
210
+ | ------------------------------- | ----- | ------------------------------------------------------------------------- | -------------------- |
211
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
212
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
213
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | `"tailor.config.ts"` |
214
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | - |
16
215
 
17
- **Options:**
216
+ <!-- politty:command:tailordb erd serve:end -->
217
+ <!-- politty:command:tailordb erd deploy:start -->
18
218
 
19
- - `-a, --all` - Truncate all tables in all namespaces
20
- - `-n, --namespace` - Truncate all tables in the specified namespace
21
- - `-y, --yes` - Skip confirmation prompt
22
- - `-w, --workspace-id` - ID of the workspace
23
- - `-p, --profile` - Workspace profile to use
24
- - `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
219
+ #### tailordb erd deploy
220
+
221
+ Deploy ERD static website for TailorDB namespace(s).
222
+
223
+ **Usage**
224
+
225
+ ```
226
+ tailor-sdk tailordb erd deploy [options]
227
+ ```
228
+
229
+ **Options**
230
+
231
+ | Option | Alias | Description | Default |
232
+ | ------------------------------- | ----- | ----------------------------------------------------------------------------------- | -------------------- |
233
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | - |
234
+ | `--profile <PROFILE>` | `-p` | Workspace profile | - |
235
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | `"tailor.config.ts"` |
236
+ | `--json` | `-j` | Output as JSON | `false` |
237
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted) | - |
238
+
239
+ <!-- politty:command:tailordb erd deploy:end -->
25
240
 
26
241
  **Usage Examples:**
27
242
 
@@ -52,14 +267,6 @@ tailor-sdk tailordb truncate User Post --yes
52
267
  - Specific types: requires typing `yes`
53
268
  - Use `--yes` flag to skip confirmation prompts (useful for scripts and CI/CD)
54
269
 
55
- ## tailordb migration
56
-
57
- Manage TailorDB schema migrations. Migrations allow you to safely evolve your database schema with data transformations.
58
-
59
- ```bash
60
- tailor-sdk tailordb migration <subcommand> [options]
61
- ```
62
-
63
270
  ### Overview
64
271
 
65
272
  The migration system detects field-level schema differences between your local type definitions and the previous snapshot, then generates migration files to safely apply those changes with data transformations.
@@ -71,21 +278,6 @@ The migration system detects field-level schema differences between your local t
71
278
  - **Automatic execution during apply** - pending migrations run as part of `tailor-sdk apply`
72
279
  - **TypeScript migration scripts** - type-safe data transformations using Kysely
73
280
 
74
- ### tailordb migration generate
75
-
76
- Generate migration files by detecting schema differences between current local types and the previous migration snapshot.
77
-
78
- ```bash
79
- tailor-sdk tailordb migration generate [options]
80
- ```
81
-
82
- **Options:**
83
-
84
- - `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
85
- - `-n, --name` - Optional description for the migration
86
- - `-y, --yes` - Skip confirmation prompts
87
- - `--init` - Delete existing migrations and start fresh
88
-
89
281
  **Usage Examples:**
90
282
 
91
283
  ```bash
@@ -142,26 +334,6 @@ tailor-sdk tailordb migration generate
142
334
  # → After generation, vim opens XXXX/migrate.ts
143
335
  ```
144
336
 
145
- ### tailordb migration set
146
-
147
- Manually set the migration checkpoint to a specific number. This is useful for skipping failed migrations or resetting migration state.
148
-
149
- ```bash
150
- tailor-sdk tailordb migration set <number> [options]
151
- ```
152
-
153
- **Arguments:**
154
-
155
- - `number` - Migration number to set (e.g., `0001` or `1`)
156
-
157
- **Options:**
158
-
159
- - `-n, --namespace` - Target TailorDB namespace (required if multiple exist)
160
- - `-y, --yes` - Skip confirmation prompt
161
- - `-w, --workspace-id` - ID of the workspace
162
- - `-p, --profile` - Workspace profile to use
163
- - `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
164
-
165
337
  **Usage Examples:**
166
338
 
167
339
  ```bash
@@ -187,21 +359,6 @@ Setting the migration checkpoint changes which migrations will be executed on ne
187
359
 
188
360
  The command always displays a warning and requires confirmation unless `--yes` is specified.
189
361
 
190
- ### tailordb migration status
191
-
192
- Show the current migration status for TailorDB namespaces, including applied and pending migrations.
193
-
194
- ```bash
195
- tailor-sdk tailordb migration status [options]
196
- ```
197
-
198
- **Options:**
199
-
200
- - `-n, --namespace` - Show status for specific namespace only
201
- - `-w, --workspace-id` - ID of the workspace
202
- - `-p, --profile` - Workspace profile to use
203
- - `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
204
-
205
362
  **Usage Examples:**
206
363
 
207
364
  ```bash
@@ -491,14 +648,6 @@ tailor-sdk apply --no-schema-check
491
648
  3. Fix the script
492
649
  4. Apply again: `tailor-sdk apply`
493
650
 
494
- ## tailordb erd (beta)
495
-
496
- Generate ERD artifacts for TailorDB namespaces using [Liam ERD](https://liambx.com/erd).
497
-
498
- ```bash
499
- tailor-sdk tailordb erd <subcommand> [options]
500
- ```
501
-
502
651
  **Notes:**
503
652
 
504
653
  - This command is a beta feature and may introduce breaking changes in future releases
@@ -515,83 +664,6 @@ yarn add -D @liam-hq/cli serve
515
664
  pnpm add -D @liam-hq/cli serve
516
665
  ```
517
666
 
518
- ### tailordb erd export
519
-
520
- Export Liam ERD dist from applied TailorDB schema.
521
-
522
- ```bash
523
- tailor-sdk tailordb erd export [options]
524
- ```
525
-
526
- **Options:**
527
-
528
- - `-n, --namespace` - TailorDB namespace name (optional - exports all namespaces with erdSite if omitted)
529
- - `-o, --output` - Output directory path for tbls-compatible ERD JSON (writes to `<outputDir>/<namespace>/schema.json`) (default: `.tailor-sdk/erd`)
530
- - `-j, --json` - Output as JSON
531
- - `-w, --workspace-id` - ID of the workspace
532
- - `-p, --profile` - Workspace profile to use
533
- - `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
534
- - `-e, --env-file` - Path to the environment file
535
-
536
- **Usage Examples:**
537
-
538
- ```bash
539
- # Export ERD for all namespaces with erdSite configured
540
- tailor-sdk tailordb erd export
541
-
542
- # Export ERD for a specific namespace
543
- tailor-sdk tailordb erd export --namespace myNamespace
544
-
545
- # Export ERD with custom output directory
546
- tailor-sdk tailordb erd export --output ./my-erd
547
-
548
- # Export ERD with JSON output
549
- tailor-sdk tailordb erd export --json
550
- ```
551
-
552
- ### tailordb erd serve
553
-
554
- Generate and serve ERD locally (liam build + `serve dist`).
555
-
556
- ```bash
557
- tailor-sdk tailordb erd serve [options]
558
- ```
559
-
560
- **Options:**
561
-
562
- - `-n, --namespace` - TailorDB namespace name (uses first namespace with erdSite if not specified)
563
- - `-w, --workspace-id` - ID of the workspace
564
- - `-p, --profile` - Workspace profile to use
565
- - `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
566
- - `-e, --env-file` - Path to the environment file
567
-
568
- **Usage Examples:**
569
-
570
- ```bash
571
- # Serve ERD for the first namespace with erdSite configured
572
- tailor-sdk tailordb erd serve
573
-
574
- # Serve ERD for a specific namespace
575
- tailor-sdk tailordb erd serve --namespace myNamespace
576
- ```
577
-
578
- ### tailordb erd deploy
579
-
580
- Deploy ERD static website for TailorDB namespace(s).
581
-
582
- ```bash
583
- tailor-sdk tailordb erd deploy [options]
584
- ```
585
-
586
- **Options:**
587
-
588
- - `-n, --namespace` - TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted)
589
- - `-j, --json` - Output as JSON
590
- - `-w, --workspace-id` - ID of the workspace
591
- - `-p, --profile` - Workspace profile to use
592
- - `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
593
- - `-e, --env-file` - Path to the environment file
594
-
595
667
  **Usage Examples:**
596
668
 
597
669
  ```bash