@metabase/cli 0.1.0-alpha.workspaces-commands.9af92d7 → 0.1.0-alpha.workspaces-commands.66774cc

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 (123) hide show
  1. package/README.md +66 -31
  2. package/dist/{api-key-U35bYysN.mjs → api-key-Cy87ZD6J.mjs} +1 -1
  3. package/dist/{archive-t98qQCTg.mjs → archive-CYnqV6se.mjs} +5 -5
  4. package/dist/auth-B4W4K7j-.mjs +19 -0
  5. package/dist/{body-qjVMvNjF.mjs → body-CGoWst5q.mjs} +2 -2
  6. package/dist/{branches-GR_uFakd.mjs → branches-CLNtwBB2.mjs} +5 -5
  7. package/dist/{cancel-task-Bx4unmzB.mjs → cancel-task-DqdP2_8k.mjs} +5 -5
  8. package/dist/{card-2XdaHHSS.mjs → card-BOGKT258.mjs} +22 -1
  9. package/dist/card-drxclrvk.mjs +20 -0
  10. package/dist/{cards-CvXNClLR.mjs → cards-Bslh-gVE.mjs} +5 -5
  11. package/dist/cli.mjs +28 -20
  12. package/dist/{create-CT8GaHhd.mjs → create-CDa7ycuY.mjs} +22 -9
  13. package/dist/{create-78zUdOrE.mjs → create-DX5ZlJVx.mjs} +7 -7
  14. package/dist/{create-klUmZ4qb.mjs → create-Dfk-Cwra.mjs} +6 -6
  15. package/dist/{create-DRSgnSTg.mjs → create-MW9yGet7.mjs} +6 -6
  16. package/dist/{create-DOsPeHvv.mjs → create-O5_huJxw.mjs} +7 -7
  17. package/dist/{create-branch-95PKGg4J.mjs → create-branch-Di9ux42t.mjs} +5 -5
  18. package/dist/{create-A8ixnCEp.mjs → create-cAHtZgGR.mjs} +6 -6
  19. package/dist/{credentials-h6gwy6KC.mjs → credentials-CmfhxT15.mjs} +7 -7
  20. package/dist/{current-task-CKTHTDJ-.mjs → current-task-BT63IEqN.mjs} +5 -5
  21. package/dist/dashboard-DZvXencG.mjs +20 -0
  22. package/dist/{dashboard-DVCLGg3X.mjs → dashboard-nYIzB6gy.mjs} +3 -1
  23. package/dist/{database-VBWFKoFw.mjs → database-Zcv6o9HD.mjs} +3 -3
  24. package/dist/{db-BNIiulL8.mjs → db-CxjyjJjE.mjs} +2 -2
  25. package/dist/{delete-Dgw7tuwF.mjs → delete-BOqKxL9h.mjs} +6 -6
  26. package/dist/{delete-SpvnjwpH.mjs → delete-C5R9Ovcn.mjs} +6 -6
  27. package/dist/{delete-runtime-ZDxlvZa6.mjs → delete-runtime-BIDRhI6e.mjs} +3 -5
  28. package/dist/{delete-table-BXmFReAx.mjs → delete-table-CHwD8KMd.mjs} +6 -6
  29. package/dist/{deprovision-Cay-ixJs.mjs → deprovision-AMoA4GJ-.mjs} +10 -10
  30. package/dist/{dirty-CNjg0YSW.mjs → dirty-DGu-zGzj.mjs} +5 -5
  31. package/dist/{docker-D2GAMpHR.mjs → docker-JpSqfyrV.mjs} +22 -8
  32. package/dist/{eid-CLOyMi0C.mjs → eid-DOpqY6Xr.mjs} +1 -1
  33. package/dist/{export-D2PP3RlE.mjs → export-CM4xVQtO.mjs} +25 -20
  34. package/dist/{field-D9nztsQP.mjs → field-CvvYmcqL.mjs} +1 -1
  35. package/dist/{get-DtsLPlhf.mjs → get-B2gUIWWn.mjs} +5 -5
  36. package/dist/{get-CW0uHmFb.mjs → get-BCftPMeY.mjs} +5 -5
  37. package/dist/{get-BzfjbJ1f.mjs → get-BLDZmnI6.mjs} +6 -6
  38. package/dist/{get-Bc0yqaS1.mjs → get-B_TDKynl.mjs} +5 -5
  39. package/dist/{get-B32KbqqV.mjs → get-Bb0zpzfP.mjs} +5 -5
  40. package/dist/{get-qXYTmiCW.mjs → get-BmNatkw0.mjs} +5 -5
  41. package/dist/{get-gZ5sQoS9.mjs → get-C9hLsWZN.mjs} +6 -6
  42. package/dist/{get-B6PHgITW.mjs → get-CadG65Mw.mjs} +5 -5
  43. package/dist/{has-remote-changes-BjdywTVP.mjs → has-remote-changes-jcUyn4BL.mjs} +5 -5
  44. package/dist/{import-CVOFq6HN.mjs → import-DwxLbBqY.mjs} +6 -6
  45. package/dist/{input-DkgCMNA9.mjs → input-DMcm_A5s.mjs} +1 -0
  46. package/dist/{is-dirty-DgxNJz79.mjs → is-dirty-Bft_2Beg.mjs} +3 -3
  47. package/dist/is-dirty-DfpvMy-Z.mjs +10 -0
  48. package/dist/{license-B2eNHmdg.mjs → license-CEf37q8h.mjs} +3 -3
  49. package/dist/{list-AcUuhDxS.mjs → list-B-etmnDB.mjs} +4 -4
  50. package/dist/{list-B6LmdzL6.mjs → list-C4mEhTuI.mjs} +4 -4
  51. package/dist/{list-Cw0Geehz.mjs → list-C9__j3X6.mjs} +4 -4
  52. package/dist/{list-CW20Zfq-.mjs → list-D79qqG6n.mjs} +4 -4
  53. package/dist/{list-DEW7ZHzy.mjs → list-WabdLE4S.mjs} +4 -4
  54. package/dist/list-X1BvRpvu.mjs +55 -0
  55. package/dist/{list-B0durHcU.mjs → list-YEYFjczS.mjs} +4 -4
  56. package/dist/{list-B9ppD-U5.mjs → list-lMXe0ihm.mjs} +4 -4
  57. package/dist/{list-bSb_Y5k9.mjs → list-wflhJJRp.mjs} +6 -6
  58. package/dist/{login-ChQ9J6Ne.mjs → login-BvZe_SH8.mjs} +5 -5
  59. package/dist/{logout-Cit2O74l.mjs → logout-DS_iumfz.mjs} +6 -7
  60. package/dist/{logs-Ca_YA7A6.mjs → logs-B-UEyFH2.mjs} +5 -5
  61. package/dist/{manifest-IMg51yb7.mjs → manifest-QVMj24rH.mjs} +1 -1
  62. package/dist/{package-CVNZnqz9.mjs → package-DHwFgisf.mjs} +1 -1
  63. package/dist/{parse-id-YyyUbzvS.mjs → parse-id-BVuB-dYb.mjs} +1 -1
  64. package/dist/{poll-CxWRi3iY.mjs → poll-BkPMyRGr.mjs} +1 -1
  65. package/dist/{poll-task-DdXgrDJf.mjs → poll-task-8OfFZFlk.mjs} +3 -3
  66. package/dist/{provision-CV30W4mk.mjs → provision-9JcwXfaO.mjs} +10 -10
  67. package/dist/{ps-BR36xoRT.mjs → ps-BtV5q-v0.mjs} +3 -3
  68. package/dist/ps-CA2yc6af.mjs +10 -0
  69. package/dist/{query-Dnlo_5UK.mjs → query-CwGBNXRD.mjs} +5 -5
  70. package/dist/{query-DmeLeLlh.mjs → query-D6MUf1bB.mjs} +7 -7
  71. package/dist/{remove-ChoQTtcC.mjs → remove-D6dNO_JR.mjs} +6 -7
  72. package/dist/{remove-DfVVf1N9.mjs → remove-DRzzmp4L.mjs} +8 -8
  73. package/dist/{render-CZNR2MNK.mjs → render-BYWlZPEH.mjs} +7 -4
  74. package/dist/{run-BiXybcsl.mjs → run-CvcTc0Ij.mjs} +7 -7
  75. package/dist/{runtime-DR8NwmQU.mjs → runtime-Dm9yLeT_.mjs} +73 -3
  76. package/dist/{search-0cjOmsQu.mjs → search-BOESDli6.mjs} +4 -4
  77. package/dist/{set-CLsmPD8_.mjs → set-HliJC97V.mjs} +5 -5
  78. package/dist/{set-BeVw7OX5.mjs → set-sr3YCFCC.mjs} +7 -7
  79. package/dist/{setting-DEhllKkK.mjs → setting-DRiJcVn4.mjs} +3 -3
  80. package/dist/{setup-BYL5Yagu.mjs → setup-Cw7SZEte.mjs} +5 -5
  81. package/dist/{start-BdAhhZYt.mjs → start-BlTG8xm9.mjs} +18 -11
  82. package/dist/{stash-Ca63-mCs.mjs → stash-DtwiEyLc.mjs} +6 -6
  83. package/dist/{status-Bt6rZDLa.mjs → status-CQUYPa2m.mjs} +3 -3
  84. package/dist/{status-cZiC8-t_.mjs → status-CqwBiAEw.mjs} +6 -6
  85. package/dist/{status-D7Ihw-lN.mjs → status-Snec_vKv.mjs} +3 -3
  86. package/dist/{stop-BDeCLqh0.mjs → stop-ap-ezh_7.mjs} +7 -7
  87. package/dist/sync-BVrrn4wX.mjs +26 -0
  88. package/dist/{table-CjnruP5H.mjs → table-CISZRlK9.mjs} +2 -2
  89. package/dist/{table-BbNgtqbd.mjs → table-Dx6KCUVC.mjs} +1 -1
  90. package/dist/transform-job-Bo1rtoXO.mjs +19 -0
  91. package/dist/transform-oFy2JltU.mjs +21 -0
  92. package/dist/{translate-oHz4-5o0.mjs → translate-DsD_bI78.mjs} +5 -5
  93. package/dist/update-BS9zqDT2.mjs +57 -0
  94. package/dist/{update-WFBs9Nfq.mjs → update-CAhzSUHT.mjs} +8 -8
  95. package/dist/{update-Dtu0CHTJ.mjs → update-DeHlwttq.mjs} +7 -7
  96. package/dist/{update-BqI8hYNO.mjs → update-OAfGXSV1.mjs} +10 -10
  97. package/dist/{update-dashcard-BSf1-SfK.mjs → update-dashcard-H9G6T3zi.mjs} +7 -7
  98. package/dist/{update-CLXVmkyr.mjs → update-kh0X4VGX.mjs} +7 -7
  99. package/dist/{url-B0Bc70KV.mjs → url-vVkeIPup.mjs} +6 -6
  100. package/dist/{validate-query-DE4UouY3.mjs → validate-query-D0aAFTUs.mjs} +49 -3
  101. package/dist/{wait-DFI3pf6P.mjs → wait-DR3UCWim.mjs} +2 -2
  102. package/dist/{wait-Dkbfo1eS.mjs → wait-GYWtN1mb.mjs} +6 -6
  103. package/dist/{wait-flags-BIVgwvUI.mjs → wait-flags-DqDOwv0J.mjs} +2 -2
  104. package/dist/workspace-DmuFl7Iw.mjs +24 -0
  105. package/package.json +1 -1
  106. package/dist/auth-Pmzzbl9X.mjs +0 -18
  107. package/dist/card-CY60jlXc.mjs +0 -19
  108. package/dist/dashboard-BVEiysxL.mjs +0 -20
  109. package/dist/is-dirty-79hBpoVR.mjs +0 -10
  110. package/dist/ps-B9-TFn7r.mjs +0 -10
  111. package/dist/sync-BZPts11d.mjs +0 -26
  112. package/dist/transform-BXF9B-hF.mjs +0 -21
  113. package/dist/transform-job-DDsjt-4N.mjs +0 -19
  114. package/dist/workspace-Bv7qoaJi.mjs +0 -24
  115. /package/dist/{database-B9-7QAXE.mjs → database-CqVM76jo.mjs} +0 -0
  116. /package/dist/{field-D_g4xvH9.mjs → field-uWPctJqU.mjs} +0 -0
  117. /package/dist/{key-CpWh7W8M.mjs → key-DVHK0_ny.mjs} +0 -0
  118. /package/dist/{prompt-D8p00XDp.mjs → prompt-k9s4Ntk5.mjs} +0 -0
  119. /package/dist/{setting-Bm84ixxW.mjs → setting-DwFQyJPi.mjs} +0 -0
  120. /package/dist/{transform-CRRW0mFp.mjs → transform-h405NiRC.mjs} +0 -0
  121. /package/dist/{transform-job-BtCoVYsb.mjs → transform-job-oBa_OKqk.mjs} +0 -0
  122. /package/dist/{workspace-C3tGVQ6_.mjs → workspace-PL1je3wr.mjs} +0 -0
  123. /package/dist/{workspace-credentials-BxrU2xZb.mjs → workspace-credentials-DT-YilSB.mjs} +0 -0
package/README.md CHANGED
@@ -63,6 +63,19 @@ metabase auth status --profile staging
63
63
  | `--profile <name>` | Profile to inspect (default: `default`). |
64
64
  | `--json` | Emit JSON. Auto-enabled on non-TTY. |
65
65
 
66
+ ### `metabase auth list`
67
+
68
+ List configured authentication profiles. The index is maintained at `<configDir>/profiles.json` and updated on every `auth login` / `auth logout`. Profiles whose URL/API key were stored in the OS keychain before the index existed are picked up by a one-time backfill from `credentials.json`; profiles that exist only in the keyring (no entry in `credentials.json`) appear after the next `auth login` or `auth logout` against them.
69
+
70
+ ```sh
71
+ metabase auth list
72
+ metabase auth list --json
73
+ ```
74
+
75
+ | Flag | Description |
76
+ | -------- | ----------------------------------- |
77
+ | `--json` | Emit JSON. Auto-enabled on non-TTY. |
78
+
66
79
  ### `metabase auth logout`
67
80
 
68
81
  Clear stored credentials for a profile.
@@ -72,10 +85,10 @@ metabase auth logout --yes
72
85
  metabase auth logout --profile staging --yes
73
86
  ```
74
87
 
75
- | Flag | Description |
76
- | ------------------ | --------------------------------------- |
77
- | `--profile <name>` | Profile to clear (default: `default`). |
78
- | `--yes` | Skip confirmation. Required on non-TTY. |
88
+ | Flag | Description |
89
+ | ------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
90
+ | `--profile <name>` | Profile to clear (default: `default`). |
91
+ | `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
79
92
 
80
93
  ## License
81
94
 
@@ -113,9 +126,9 @@ Clear the stored license.
113
126
  metabase license remove --yes
114
127
  ```
115
128
 
116
- | Flag | Description |
117
- | ------- | --------------------------------------- |
118
- | `--yes` | Skip confirmation. Required on non-TTY. |
129
+ | Flag | Description |
130
+ | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
131
+ | `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
119
132
 
120
133
  Common output flags (`--json`, `--format`, `--detail`, `--fields`, `--max-bytes`) are accepted; the result payload is rendered through the standard output layer.
121
134
 
@@ -162,9 +175,9 @@ Same `--body` / `--file` resolution as `create`. Stdin is auto-detected when not
162
175
  metabase transform delete 1 --yes
163
176
  ```
164
177
 
165
- | Flag | Description |
166
- | ------- | --------------------------------------- |
167
- | `--yes` | Skip confirmation. Required on non-TTY. |
178
+ | Flag | Description |
179
+ | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
180
+ | `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
168
181
 
169
182
  ### `metabase transform run <id>`
170
183
 
@@ -220,9 +233,9 @@ metabase transform-job update 1 --body '{"schedule":"0 0 6 * * ?"}'
220
233
  metabase transform-job delete 1 --yes
221
234
  ```
222
235
 
223
- | Flag | Description |
224
- | ------- | --------------------------------------- |
225
- | `--yes` | Skip confirmation. Required on non-TTY. |
236
+ | Flag | Description |
237
+ | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
238
+ | `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
226
239
 
227
240
  ## Cards
228
241
 
@@ -279,9 +292,28 @@ metabase card create --body '{"name":"x","display":"table","dataset_query":{...}
279
292
  | `--body <json>` | Inline JSON body. |
280
293
  | `--file <path>` | Path to JSON body file. |
281
294
 
295
+ ### `metabase card update <id>`
296
+
297
+ Patch a card. Body is a partial subset of the create shape (`name`, `display`, `dataset_query`, `visualization_settings`, `description`, `archived`, `collection_id`, `dashboard_id`, `cache_ttl`, `parameters`, `parameter_mappings`, etc.). Only the keys you send are touched. If `dataset_query` is MBQL 5 (`lib/type: "mbql/query"`) it goes through the same pre-flight validation as `card create` and `metabase query`; pass `--skip-validate` to bypass.
298
+
299
+ ```sh
300
+ cat patch.json | metabase card update 1
301
+ metabase card update 1 --file patch.json
302
+ metabase card update 1 --body '{"name":"renamed"}'
303
+ metabase card update 1 --body '{"display":"bar"}'
304
+ metabase card update 1 --body '{"archived":true}'
305
+ metabase card update 1 --file patch.json --skip-validate
306
+ ```
307
+
308
+ | Flag | Description |
309
+ | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
310
+ | `--body <json>` | Inline JSON body. |
311
+ | `--file <path>` | Path to JSON body file. |
312
+ | `--skip-validate` | Skip the local MBQL 5 pre-flight validation; let the server be the authority. Use only when the bundled schema disagrees with what the server accepts. |
313
+
282
314
  ### `metabase card archive <id>`
283
315
 
284
- Soft-delete a card by setting `archived: true`. The archived card stays available via `card list --filter archived` and `card get <id>` until permanently deleted server-side.
316
+ Soft-delete a card by setting `archived: true`. The archived card stays available via `card list --filter archived` and `card get <id>` until permanently deleted server-side. To unarchive (or otherwise toggle the flag) use `metabase card update <id> --body '{"archived":false}'`.
285
317
 
286
318
  ```sh
287
319
  metabase card archive 1
@@ -325,16 +357,19 @@ metabase dashboard cards 1 --json
325
357
 
326
358
  ### `metabase dashboard create`
327
359
 
360
+ The body accepts the same dashboard-level fields as the underlying `POST /api/dashboard` (`name`, `description`, `parameters`, `cache_ttl`, `collection_id`, `collection_position`). It also accepts optional `dashcards` and `tabs`: when either is present, the CLI chains a `PUT /api/dashboard/:id` after the create and returns the updated dashboard with its dashcards/tabs applied. Use a negative `id` on a dashcard to indicate one the server should newly create.
361
+
328
362
  ```sh
329
363
  cat dashboard.json | metabase dashboard create
330
364
  metabase dashboard create --file dashboard.json
331
365
  metabase dashboard create --body '{"name":"My Dashboard","collection_id":4}'
366
+ metabase dashboard create --body '{"name":"D","dashcards":[{"id":-1,"card_id":42,"row":0,"col":0,"size_x":12,"size_y":6}]}'
332
367
  ```
333
368
 
334
- | Flag | Description |
335
- | --------------- | ----------------------- |
336
- | `--body <json>` | Inline JSON body. |
337
- | `--file <path>` | Path to JSON body file. |
369
+ | Flag | Description |
370
+ | --------------- | --------------------------------------------------- |
371
+ | `--body <json>` | Inline JSON body. |
372
+ | `--file <path>` | Path to JSON body file. Use `-` to read from stdin. |
338
373
 
339
374
  ### `metabase dashboard update <id>`
340
375
 
@@ -644,12 +679,12 @@ metabase workspace database deprovision 1 5 --yes
644
679
  metabase workspace database deprovision 1 5 --yes --wait
645
680
  ```
646
681
 
647
- | Flag | Description |
648
- | ----------------- | ------------------------------------------------------------ |
649
- | `--yes` | Skip confirmation. Required on non-TTY. |
650
- | `--wait` | Poll until the database entry is removed from the workspace. |
651
- | `--timeout <ms>` | Polling timeout in ms (default 600000). Used with `--wait`. |
652
- | `--interval <ms>` | Polling interval in ms (default 2000). Used with `--wait`. |
682
+ | Flag | Description |
683
+ | ----------------- | --------------------------------------------------------------------------------------------------------------------------------- |
684
+ | `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
685
+ | `--wait` | Poll until the database entry is removed from the workspace. |
686
+ | `--timeout <ms>` | Polling timeout in ms (default 600000). Used with `--wait`. |
687
+ | `--interval <ms>` | Polling interval in ms (default 2000). Used with `--wait`. |
653
688
 
654
689
  ### Local runtime
655
690
 
@@ -706,10 +741,10 @@ metabase workspace remove 1 --keep-volume --yes
706
741
 
707
742
  Stops and removes the container. By default, also removes the app-db volume — pass `--keep-volume` to preserve it across rebuilds. **Does not affect the remote workspace** on the parent.
708
743
 
709
- | Flag | Description |
710
- | --------------- | ------------------------------------------------------------- |
711
- | `--yes` | Skip confirmation. Required on non-TTY. |
712
- | `--keep-volume` | Preserve the app-db volume (`metabase-workspace-<id>-appdb`). |
744
+ | Flag | Description |
745
+ | --------------- | --------------------------------------------------------------------------------------------------------------------------------- |
746
+ | `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
747
+ | `--keep-volume` | Preserve the app-db volume (`metabase-workspace-<id>-appdb`). |
713
748
 
714
749
  ### `metabase workspace logs <id>`
715
750
 
@@ -849,13 +884,13 @@ Output by mode:
849
884
  - Run failure (no `--dry-run`) — same `{ ok, errors }` envelope on stdout, exit 2, no request made.
850
885
  - Run success — the streamed `CardQueryResult`.
851
886
 
852
- ### MBQL 5 pre-flight in `card create` and `transform create`/`update`
887
+ ### MBQL 5 pre-flight in `card create`/`update` and `transform create`/`update`
853
888
 
854
889
  When the embedded query (`card.dataset_query`, or `transform.source.query` for `source.type: "query"`) is MBQL 5 (`lib/type: "mbql/query"`), it is pre-flight-validated against the same schema as `metabase query`. Validation failure: `{ ok, errors }` envelope on stdout, exit 2, request not made. MBQL 4 (legacy) bodies and Python transform sources skip validation — they're still accepted by the server and we don't ship a schema for them.
855
890
 
856
- Pass `--skip-validate` to bypass the pre-flight on `card create`, `transform create`, or `transform update` — the body is sent as-is and the server is the authority. Same escape hatch as on `metabase query`; use only when the bundled schema disagrees with what the server actually accepts.
891
+ Pass `--skip-validate` to bypass the pre-flight on `card create`, `card update`, `transform create`, or `transform update` — the body is sent as-is and the server is the authority. Same escape hatch as on `metabase query`; use only when the bundled schema disagrees with what the server actually accepts.
857
892
 
858
- Agent discovery path: `metabase __manifest` lists every command's args and description; the description for `card create` and `transform create`/`update` references `metabase query --print-schema` so an agent can fetch the validating schema directly.
893
+ Agent discovery path: `metabase __manifest` lists every command's args and description; the description for `card create`/`update` and `transform create`/`update` references `metabase query --print-schema` so an agent can fetch the validating schema directly.
859
894
 
860
895
  The bundled query schema is synced from a pinned `@metabase/representations` release via `bun run sync:representations`; CI guards against drift.
861
896
 
@@ -6,7 +6,7 @@ var api_key_default = defineCommand({
6
6
  name: "api-key",
7
7
  description: "Manage Metabase API keys"
8
8
  },
9
- subCommands: { create: () => import("./create-klUmZ4qb.mjs").then((mod) => mod.default) }
9
+ subCommands: { create: () => import("./create-Dfk-Cwra.mjs").then((mod) => mod.default) }
10
10
  });
11
11
 
12
12
  //#endregion
@@ -1,10 +1,10 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
6
- import { parseId } from "./parse-id-YyyUbzvS.mjs";
7
- import { Card, cardView } from "./card-2XdaHHSS.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
6
+ import { parseId } from "./parse-id-BVuB-dYb.mjs";
7
+ import { Card, cardView } from "./card-BOGKT258.mjs";
8
8
 
9
9
  //#region src/commands/card/archive.ts
10
10
  var archive_default = defineMetabaseCommand({
@@ -0,0 +1,19 @@
1
+ import { defineCommand } from "citty";
2
+
3
+ //#region src/commands/auth/index.ts
4
+ var auth_default = defineCommand({
5
+ meta: {
6
+ name: "auth",
7
+ description: "Authenticate against a Metabase instance"
8
+ },
9
+ default: "login",
10
+ subCommands: {
11
+ login: () => import("./login-BvZe_SH8.mjs").then((m) => m.default),
12
+ status: () => import("./status-Snec_vKv.mjs").then((m) => m.default),
13
+ list: () => import("./list-X1BvRpvu.mjs").then((m) => m.default),
14
+ logout: () => import("./logout-DS_iumfz.mjs").then((m) => m.default)
15
+ }
16
+ });
17
+
18
+ //#endregion
19
+ export { auth_default as default };
@@ -1,6 +1,6 @@
1
1
  import { ConfigError } from "./errors-C6w1eZ1F.mjs";
2
- import { readInput } from "./input-DkgCMNA9.mjs";
3
- import { parseJson } from "./runtime-DR8NwmQU.mjs";
2
+ import { readInput } from "./input-DMcm_A5s.mjs";
3
+ import { parseJson } from "./runtime-Dm9yLeT_.mjs";
4
4
 
5
5
  //#region src/runtime/body.ts
6
6
  async function readBody(sources, schema) {
@@ -1,10 +1,10 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderList } from "./render-CZNR2MNK.mjs";
3
+ import { renderList } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-DR8NwmQU.mjs";
6
- import { REMOTE_SYNC_PATHS } from "./poll-task-DdXgrDJf.mjs";
7
- import "./poll-CxWRi3iY.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-Dm9yLeT_.mjs";
6
+ import { REMOTE_SYNC_PATHS } from "./poll-task-8OfFZFlk.mjs";
7
+ import "./poll-BkPMyRGr.mjs";
8
8
  import { z } from "zod";
9
9
 
10
10
  //#region src/commands/sync/branches.ts
@@ -1,10 +1,10 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
6
- import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-DdXgrDJf.mjs";
7
- import "./poll-CxWRi3iY.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
6
+ import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-8OfFZFlk.mjs";
7
+ import "./poll-BkPMyRGr.mjs";
8
8
 
9
9
  //#region src/commands/sync/cancel-task.ts
10
10
  var cancel_task_default = defineMetabaseCommand({
@@ -80,6 +80,27 @@ const CardCreateInput = z.object({
80
80
  parameters: z.array(z.unknown()).optional(),
81
81
  parameter_mappings: z.array(z.unknown()).optional()
82
82
  }).loose();
83
+ const CardUpdateInput = z.object({
84
+ name: z.string().min(1).optional(),
85
+ type: CardType.optional(),
86
+ dataset_query: z.unknown().optional(),
87
+ display: z.string().min(1).optional(),
88
+ visualization_settings: z.unknown().optional(),
89
+ description: z.string().nullable().optional(),
90
+ archived: z.boolean().optional(),
91
+ enable_embedding: z.boolean().optional(),
92
+ embedding_type: z.string().optional(),
93
+ embedding_params: z.unknown().optional(),
94
+ collection_id: z.number().int().positive().nullable().optional(),
95
+ collection_position: z.number().int().positive().nullable().optional(),
96
+ collection_preview: z.boolean().optional(),
97
+ cache_ttl: z.number().int().positive().nullable().optional(),
98
+ dashboard_id: z.number().int().positive().nullable().optional(),
99
+ dashboard_tab_id: z.number().int().positive().nullable().optional(),
100
+ parameters: z.array(z.unknown()).optional(),
101
+ parameter_mappings: z.array(z.unknown()).optional(),
102
+ result_metadata: z.array(z.unknown()).nullable().optional()
103
+ }).loose();
83
104
  const QueryColumn = z.object({
84
105
  name: z.string(),
85
106
  display_name: z.string().optional(),
@@ -110,4 +131,4 @@ const cardQueryView = {
110
131
  };
111
132
 
112
133
  //#endregion
113
- export { Card, CardCompact, CardCreateInput, CardQueryResult, cardQueryView, cardView };
134
+ export { Card, CardCompact, CardCreateInput, CardQueryResult, CardUpdateInput, cardQueryView, cardView };
@@ -0,0 +1,20 @@
1
+ import { defineCommand } from "citty";
2
+
3
+ //#region src/commands/card/index.ts
4
+ var card_default = defineCommand({
5
+ meta: {
6
+ name: "card",
7
+ description: "Manage Metabase cards (questions, models, metrics)"
8
+ },
9
+ subCommands: {
10
+ list: () => import("./list-YEYFjczS.mjs").then((mod) => mod.default),
11
+ get: () => import("./get-Bb0zpzfP.mjs").then((mod) => mod.default),
12
+ query: () => import("./query-CwGBNXRD.mjs").then((mod) => mod.default),
13
+ create: () => import("./create-DX5ZlJVx.mjs").then((mod) => mod.default),
14
+ update: () => import("./update-BS9zqDT2.mjs").then((mod) => mod.default),
15
+ archive: () => import("./archive-CYnqV6se.mjs").then((mod) => mod.default)
16
+ }
17
+ });
18
+
19
+ //#endregion
20
+ export { card_default as default };
@@ -1,10 +1,10 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderList } from "./render-CZNR2MNK.mjs";
3
+ import { renderList } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-DR8NwmQU.mjs";
6
- import { parseId } from "./parse-id-YyyUbzvS.mjs";
7
- import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-DVCLGg3X.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-Dm9yLeT_.mjs";
6
+ import { parseId } from "./parse-id-BVuB-dYb.mjs";
7
+ import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-nYIzB6gy.mjs";
8
8
 
9
9
  //#region src/commands/dashboard/cards.ts
10
10
  const DashcardListEnvelope = listEnvelopeSchema(DashcardCompact);
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { package_default } from "./package-CVNZnqz9.mjs";
2
+ import { package_default } from "./package-DHwFgisf.mjs";
3
3
  import { getMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
4
4
  import { defineCommand, renderUsage, runMain } from "citty";
5
5
 
@@ -11,24 +11,24 @@ const main = defineCommand({
11
11
  description: package_default.description
12
12
  },
13
13
  subCommands: {
14
- auth: () => import("./auth-Pmzzbl9X.mjs").then((mod) => mod.default),
15
- license: () => import("./license-B2eNHmdg.mjs").then((mod) => mod.default),
16
- db: () => import("./db-BNIiulL8.mjs").then((mod) => mod.default),
17
- table: () => import("./table-CjnruP5H.mjs").then((mod) => mod.default),
18
- field: () => import("./field-D9nztsQP.mjs").then((mod) => mod.default),
19
- card: () => import("./card-CY60jlXc.mjs").then((mod) => mod.default),
20
- dashboard: () => import("./dashboard-BVEiysxL.mjs").then((mod) => mod.default),
21
- transform: () => import("./transform-BXF9B-hF.mjs").then((mod) => mod.default),
22
- "transform-job": () => import("./transform-job-DDsjt-4N.mjs").then((mod) => mod.default),
23
- setting: () => import("./setting-DEhllKkK.mjs").then((mod) => mod.default),
24
- search: () => import("./search-0cjOmsQu.mjs").then((mod) => mod.default),
25
- sync: () => import("./sync-BZPts11d.mjs").then((mod) => mod.default),
26
- workspace: () => import("./workspace-Bv7qoaJi.mjs").then((mod) => mod.default),
27
- setup: () => import("./setup-BYL5Yagu.mjs").then((mod) => mod.default),
28
- "api-key": () => import("./api-key-U35bYysN.mjs").then((mod) => mod.default),
29
- eid: () => import("./eid-CLOyMi0C.mjs").then((mod) => mod.default),
30
- query: () => import("./query-DmeLeLlh.mjs").then((mod) => mod.default),
31
- __manifest: () => import("./manifest-IMg51yb7.mjs").then((mod) => mod.createManifestCommand(main))
14
+ auth: () => import("./auth-B4W4K7j-.mjs").then((mod) => mod.default),
15
+ license: () => import("./license-CEf37q8h.mjs").then((mod) => mod.default),
16
+ db: () => import("./db-CxjyjJjE.mjs").then((mod) => mod.default),
17
+ table: () => import("./table-CISZRlK9.mjs").then((mod) => mod.default),
18
+ field: () => import("./field-CvvYmcqL.mjs").then((mod) => mod.default),
19
+ card: () => import("./card-drxclrvk.mjs").then((mod) => mod.default),
20
+ dashboard: () => import("./dashboard-DZvXencG.mjs").then((mod) => mod.default),
21
+ transform: () => import("./transform-oFy2JltU.mjs").then((mod) => mod.default),
22
+ "transform-job": () => import("./transform-job-Bo1rtoXO.mjs").then((mod) => mod.default),
23
+ setting: () => import("./setting-DRiJcVn4.mjs").then((mod) => mod.default),
24
+ search: () => import("./search-BOESDli6.mjs").then((mod) => mod.default),
25
+ sync: () => import("./sync-BVrrn4wX.mjs").then((mod) => mod.default),
26
+ workspace: () => import("./workspace-DmuFl7Iw.mjs").then((mod) => mod.default),
27
+ setup: () => import("./setup-Cw7SZEte.mjs").then((mod) => mod.default),
28
+ "api-key": () => import("./api-key-Cy87ZD6J.mjs").then((mod) => mod.default),
29
+ eid: () => import("./eid-DOpqY6Xr.mjs").then((mod) => mod.default),
30
+ query: () => import("./query-D6MUf1bB.mjs").then((mod) => mod.default),
31
+ __manifest: () => import("./manifest-QVMj24rH.mjs").then((mod) => mod.createManifestCommand(main))
32
32
  }
33
33
  });
34
34
  var main_default = main;
@@ -43,7 +43,7 @@ async function showUsage(cmd, parent) {
43
43
  const stripped = first === void 0 ? "" : first.replace(BREADCRUMB_SUFFIX, "$1");
44
44
  const body = [stripped, ...rest].join("\n");
45
45
  const examples = getMetabaseAugment(cmd)?.examples ?? [];
46
- process.stdout.write(body + renderExamples(examples) + "\n");
46
+ process.stdout.write(body + renderExamples(examples) + renderSchemaHint() + "\n");
47
47
  }
48
48
  function renderExamples(examples) {
49
49
  if (examples.length === 0) return "";
@@ -55,6 +55,14 @@ function renderExamples(examples) {
55
55
  for (const example of examples) lines.push(` ${example}`);
56
56
  return lines.join("\n");
57
57
  }
58
+ function renderSchemaHint() {
59
+ return [
60
+ "",
61
+ "SCHEMA",
62
+ "",
63
+ " metabase __manifest # machine-readable command tree (flags, output, examples)"
64
+ ].join("\n");
65
+ }
58
66
 
59
67
  //#endregion
60
68
  //#region src/cli.ts
@@ -1,12 +1,12 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import "./input-DkgCMNA9.mjs";
6
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
7
- import { readBody } from "./body-qjVMvNjF.mjs";
5
+ import "./input-DMcm_A5s.mjs";
6
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
7
+ import { readBody } from "./body-CGoWst5q.mjs";
8
8
  import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
9
- import { Dashboard, DashboardCreateInput, dashboardView } from "./dashboard-DVCLGg3X.mjs";
9
+ import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-nYIzB6gy.mjs";
10
10
 
11
11
  //#region src/commands/dashboard/create.ts
12
12
  var create_default = defineMetabaseCommand({
@@ -24,19 +24,32 @@ var create_default = defineMetabaseCommand({
24
24
  examples: [
25
25
  "cat dashboard.json | metabase dashboard create",
26
26
  "metabase dashboard create --file dashboard.json",
27
- "metabase dashboard create --body '{\"name\":\"My Dashboard\",\"collection_id\":4}'"
27
+ "metabase dashboard create --body '{\"name\":\"My Dashboard\",\"collection_id\":4}'",
28
+ "metabase dashboard create --body '{\"name\":\"D\",\"dashcards\":[{\"id\":-1,\"card_id\":42,\"row\":0,\"col\":0,\"size_x\":12,\"size_y\":6}]}'"
28
29
  ],
29
30
  async run({ args, ctx, getClient }) {
30
31
  const body = await readBody({
31
32
  flag: args.body,
32
33
  file: args.file
33
34
  }, DashboardCreateInput);
35
+ const { dashcards, tabs,...createOnly } = body;
34
36
  const client = await getClient();
35
37
  const created = await client.requestParsed(Dashboard, "/api/dashboard", {
36
38
  method: "POST",
37
- body
39
+ body: createOnly
38
40
  });
39
- renderItem(created, dashboardView, ctx);
41
+ if (dashcards === void 0 && tabs === void 0) {
42
+ renderItem(created, dashboardView, ctx);
43
+ return;
44
+ }
45
+ const updated = await client.requestParsed(DashboardDetail, `/api/dashboard/${created.id}`, {
46
+ method: "PUT",
47
+ body: {
48
+ dashcards,
49
+ tabs
50
+ }
51
+ });
52
+ renderItem(updated, dashboardView, ctx);
40
53
  }
41
54
  });
42
55
 
@@ -1,13 +1,13 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import "./input-DkgCMNA9.mjs";
6
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
7
- import { readBody } from "./body-qjVMvNjF.mjs";
5
+ import "./input-DMcm_A5s.mjs";
6
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
7
+ import { readBody } from "./body-CGoWst5q.mjs";
8
8
  import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
9
- import { Card, CardCreateInput, cardView } from "./card-2XdaHHSS.mjs";
10
- import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-DE4UouY3.mjs";
9
+ import { Card, CardCreateInput, cardView } from "./card-BOGKT258.mjs";
10
+ import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-D0aAFTUs.mjs";
11
11
 
12
12
  //#region src/commands/card/create.ts
13
13
  var create_default = defineMetabaseCommand({
@@ -1,13 +1,13 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import "./input-DkgCMNA9.mjs";
6
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
7
- import { readBody } from "./body-qjVMvNjF.mjs";
5
+ import "./input-DMcm_A5s.mjs";
6
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
7
+ import { readBody } from "./body-CGoWst5q.mjs";
8
8
  import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
9
9
  import { requireBothOrNeither } from "./flag-pair-Dz-mbq0z.mjs";
10
- import { parseId } from "./parse-id-YyyUbzvS.mjs";
10
+ import { parseId } from "./parse-id-BVuB-dYb.mjs";
11
11
  import { z } from "zod";
12
12
 
13
13
  //#region src/domain/api-key.ts
@@ -1,12 +1,12 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import "./input-DkgCMNA9.mjs";
6
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
7
- import { readBody } from "./body-qjVMvNjF.mjs";
5
+ import "./input-DMcm_A5s.mjs";
6
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
7
+ import { readBody } from "./body-CGoWst5q.mjs";
8
8
  import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
9
- import { Workspace, WorkspaceCreateInput, workspaceView } from "./workspace-C3tGVQ6_.mjs";
9
+ import { Workspace, WorkspaceCreateInput, workspaceView } from "./workspace-PL1je3wr.mjs";
10
10
 
11
11
  //#region src/commands/workspace/create.ts
12
12
  var create_default = defineMetabaseCommand({
@@ -1,13 +1,13 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import "./input-DkgCMNA9.mjs";
6
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
7
- import { readBody } from "./body-qjVMvNjF.mjs";
5
+ import "./input-DMcm_A5s.mjs";
6
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
7
+ import { readBody } from "./body-CGoWst5q.mjs";
8
8
  import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
9
- import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-DE4UouY3.mjs";
10
- import { Transform, TransformCreateInput, transformView } from "./transform-CRRW0mFp.mjs";
9
+ import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-D0aAFTUs.mjs";
10
+ import { Transform, TransformCreateInput, transformView } from "./transform-h405NiRC.mjs";
11
11
 
12
12
  //#region src/commands/transform/create.ts
13
13
  var create_default = defineMetabaseCommand({
@@ -1,10 +1,10 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import { ConfigError } from "./errors-C6w1eZ1F.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
6
- import { REMOTE_SYNC_PATHS } from "./poll-task-DdXgrDJf.mjs";
7
- import "./poll-CxWRi3iY.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
6
+ import { REMOTE_SYNC_PATHS } from "./poll-task-8OfFZFlk.mjs";
7
+ import "./poll-BkPMyRGr.mjs";
8
8
  import { z } from "zod";
9
9
 
10
10
  //#region src/commands/sync/create-branch.ts
@@ -1,12 +1,12 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import "./input-DkgCMNA9.mjs";
6
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-DR8NwmQU.mjs";
7
- import { readBody } from "./body-qjVMvNjF.mjs";
5
+ import "./input-DMcm_A5s.mjs";
6
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dm9yLeT_.mjs";
7
+ import { readBody } from "./body-CGoWst5q.mjs";
8
8
  import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
9
- import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-BtCoVYsb.mjs";
9
+ import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-oBa_OKqk.mjs";
10
10
 
11
11
  //#region src/commands/transform-job/create.ts
12
12
  var create_default = defineMetabaseCommand({
@@ -1,12 +1,12 @@
1
- import "./package-CVNZnqz9.mjs";
1
+ import "./package-DHwFgisf.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { renderItem } from "./render-CZNR2MNK.mjs";
3
+ import { renderItem } from "./render-BYWlZPEH.mjs";
4
4
  import "./errors-C6w1eZ1F.mjs";
5
- import { defineMetabaseCommand, localUrl, outputFlags, parseJson } from "./runtime-DR8NwmQU.mjs";
6
- import { parseId } from "./parse-id-YyyUbzvS.mjs";
7
- import "./poll-CxWRi3iY.mjs";
8
- import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-D2GAMpHR.mjs";
9
- import { WorkspaceCredentials } from "./workspace-credentials-BxrU2xZb.mjs";
5
+ import { defineMetabaseCommand, localUrl, outputFlags, parseJson } from "./runtime-Dm9yLeT_.mjs";
6
+ import { parseId } from "./parse-id-BVuB-dYb.mjs";
7
+ import "./poll-BkPMyRGr.mjs";
8
+ import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-JpSqfyrV.mjs";
9
+ import { WorkspaceCredentials } from "./workspace-credentials-DT-YilSB.mjs";
10
10
  import { z } from "zod";
11
11
 
12
12
  //#region src/commands/workspace/credentials.ts