@metabase/cli 0.1.0-alpha.workspaces-commands.5ab9ca6 → 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.
- package/README.md +66 -31
- package/dist/{api-key-aNbgDn-8.mjs → api-key-Cy87ZD6J.mjs} +1 -1
- package/dist/{archive-WGVkPuf8.mjs → archive-CYnqV6se.mjs} +5 -5
- package/dist/auth-B4W4K7j-.mjs +19 -0
- package/dist/{body-Diijawme.mjs → body-CGoWst5q.mjs} +2 -2
- package/dist/{branches-BlSi3TBx.mjs → branches-CLNtwBB2.mjs} +5 -5
- package/dist/{cancel-task-IE1xGzfI.mjs → cancel-task-DqdP2_8k.mjs} +5 -5
- package/dist/{card-2XdaHHSS.mjs → card-BOGKT258.mjs} +22 -1
- package/dist/card-drxclrvk.mjs +20 -0
- package/dist/{cards-DnUcsvj8.mjs → cards-Bslh-gVE.mjs} +5 -5
- package/dist/cli.mjs +28 -20
- package/dist/{create-QXhhxZr5.mjs → create-CDa7ycuY.mjs} +22 -9
- package/dist/{create-3d18k8Id.mjs → create-DX5ZlJVx.mjs} +7 -7
- package/dist/{create-DmakvRrX.mjs → create-Dfk-Cwra.mjs} +6 -6
- package/dist/{create-D62m-Ubn.mjs → create-MW9yGet7.mjs} +6 -6
- package/dist/{create-DYo4lbI2.mjs → create-O5_huJxw.mjs} +7 -7
- package/dist/{create-branch-C2Bdsd5R.mjs → create-branch-Di9ux42t.mjs} +5 -5
- package/dist/{create-D-ByDVsB.mjs → create-cAHtZgGR.mjs} +6 -6
- package/dist/{credentials-QKZob37v.mjs → credentials-CmfhxT15.mjs} +7 -7
- package/dist/{current-task-DGuhFVZr.mjs → current-task-BT63IEqN.mjs} +5 -5
- package/dist/dashboard-DZvXencG.mjs +20 -0
- package/dist/{dashboard-DVCLGg3X.mjs → dashboard-nYIzB6gy.mjs} +3 -1
- package/dist/{database-Bw72HWEJ.mjs → database-Zcv6o9HD.mjs} +3 -3
- package/dist/{db-BA6VieA7.mjs → db-CxjyjJjE.mjs} +2 -2
- package/dist/{delete-CTl8JxXL.mjs → delete-BOqKxL9h.mjs} +6 -6
- package/dist/{delete-CYvfBnPq.mjs → delete-C5R9Ovcn.mjs} +6 -6
- package/dist/{delete-runtime-ZDxlvZa6.mjs → delete-runtime-BIDRhI6e.mjs} +3 -5
- package/dist/{delete-table-CZZncGrk.mjs → delete-table-CHwD8KMd.mjs} +6 -6
- package/dist/{deprovision-C_UQ1JgA.mjs → deprovision-AMoA4GJ-.mjs} +10 -10
- package/dist/{dirty-B798WgvJ.mjs → dirty-DGu-zGzj.mjs} +5 -5
- package/dist/{docker-CJur3rjL.mjs → docker-JpSqfyrV.mjs} +21 -7
- package/dist/{eid-DANih6Hk.mjs → eid-DOpqY6Xr.mjs} +1 -1
- package/dist/{export-DdkQHl4m.mjs → export-CM4xVQtO.mjs} +25 -20
- package/dist/{field-CAvHQkzI.mjs → field-CvvYmcqL.mjs} +1 -1
- package/dist/{get-CuiofGwZ.mjs → get-B2gUIWWn.mjs} +5 -5
- package/dist/{get-soL4Z2jq.mjs → get-BCftPMeY.mjs} +5 -5
- package/dist/{get-D7DCc-zR.mjs → get-BLDZmnI6.mjs} +6 -6
- package/dist/{get-Ldui5Vyl.mjs → get-B_TDKynl.mjs} +5 -5
- package/dist/{get-BIzIOb3U.mjs → get-Bb0zpzfP.mjs} +5 -5
- package/dist/{get-HNKc0k5G.mjs → get-BmNatkw0.mjs} +5 -5
- package/dist/{get-C7lv9SOO.mjs → get-C9hLsWZN.mjs} +6 -6
- package/dist/{get-BrpB_58I.mjs → get-CadG65Mw.mjs} +5 -5
- package/dist/{has-remote-changes-6bXwJa7C.mjs → has-remote-changes-jcUyn4BL.mjs} +5 -5
- package/dist/{import-ys-pzibQ.mjs → import-DwxLbBqY.mjs} +6 -6
- package/dist/{input-DkgCMNA9.mjs → input-DMcm_A5s.mjs} +1 -0
- package/dist/{is-dirty-AUZADvDx.mjs → is-dirty-Bft_2Beg.mjs} +3 -3
- package/dist/is-dirty-DfpvMy-Z.mjs +10 -0
- package/dist/{license-Cr24Ibp3.mjs → license-CEf37q8h.mjs} +3 -3
- package/dist/{list-SQESC1Z9.mjs → list-B-etmnDB.mjs} +4 -4
- package/dist/{list-DI9--PcL.mjs → list-C4mEhTuI.mjs} +4 -4
- package/dist/{list-Cwcz1wg7.mjs → list-C9__j3X6.mjs} +4 -4
- package/dist/{list-CeqlehZp.mjs → list-D79qqG6n.mjs} +4 -4
- package/dist/{list-DxOceJmQ.mjs → list-WabdLE4S.mjs} +4 -4
- package/dist/list-X1BvRpvu.mjs +55 -0
- package/dist/{list-owVW2jma.mjs → list-YEYFjczS.mjs} +4 -4
- package/dist/{list-C737c643.mjs → list-lMXe0ihm.mjs} +4 -4
- package/dist/{list-DD0dVVEl.mjs → list-wflhJJRp.mjs} +6 -6
- package/dist/{login-Bw7TcgTG.mjs → login-BvZe_SH8.mjs} +5 -5
- package/dist/{logout-DEzazQMO.mjs → logout-DS_iumfz.mjs} +6 -7
- package/dist/{logs-QMdzAnlJ.mjs → logs-B-UEyFH2.mjs} +5 -5
- package/dist/{manifest-IMg51yb7.mjs → manifest-QVMj24rH.mjs} +1 -1
- package/dist/{package-ROuZ4tbw.mjs → package-DHwFgisf.mjs} +1 -1
- package/dist/{parse-id-CGyF8OPI.mjs → parse-id-BVuB-dYb.mjs} +1 -1
- package/dist/{poll-B5RO0ias.mjs → poll-BkPMyRGr.mjs} +1 -1
- package/dist/{poll-task-BU0gpBIk.mjs → poll-task-8OfFZFlk.mjs} +3 -3
- package/dist/{provision-CH7aVxXn.mjs → provision-9JcwXfaO.mjs} +10 -10
- package/dist/{ps-DP5XSIOy.mjs → ps-BtV5q-v0.mjs} +3 -3
- package/dist/ps-CA2yc6af.mjs +10 -0
- package/dist/{query-DNiw6JKA.mjs → query-CwGBNXRD.mjs} +5 -5
- package/dist/{query-DwBWeir4.mjs → query-D6MUf1bB.mjs} +7 -7
- package/dist/{remove-WGIoTwsl.mjs → remove-D6dNO_JR.mjs} +6 -7
- package/dist/{remove-CmF7i1Jq.mjs → remove-DRzzmp4L.mjs} +8 -8
- package/dist/{render-CZNR2MNK.mjs → render-BYWlZPEH.mjs} +7 -4
- package/dist/{run-CabruqrJ.mjs → run-CvcTc0Ij.mjs} +7 -7
- package/dist/{runtime-8SAm0dHE.mjs → runtime-Dm9yLeT_.mjs} +73 -3
- package/dist/{search-DNvad2hL.mjs → search-BOESDli6.mjs} +4 -4
- package/dist/{set-Cog7mkJT.mjs → set-HliJC97V.mjs} +5 -5
- package/dist/{set-BclYXZNW.mjs → set-sr3YCFCC.mjs} +7 -7
- package/dist/{setting-jFe6Zt2S.mjs → setting-DRiJcVn4.mjs} +3 -3
- package/dist/{setup-Cw5pIrBj.mjs → setup-Cw7SZEte.mjs} +5 -5
- package/dist/{start-CNn99SQU.mjs → start-BlTG8xm9.mjs} +10 -10
- package/dist/{stash-BWCuQzmR.mjs → stash-DtwiEyLc.mjs} +6 -6
- package/dist/{status-CSAGf0mB.mjs → status-CQUYPa2m.mjs} +3 -3
- package/dist/{status-yZk5nUq3.mjs → status-CqwBiAEw.mjs} +6 -6
- package/dist/{status-CCqjWCFF.mjs → status-Snec_vKv.mjs} +3 -3
- package/dist/{stop-DMZey9PG.mjs → stop-ap-ezh_7.mjs} +7 -7
- package/dist/sync-BVrrn4wX.mjs +26 -0
- package/dist/{table-BGLcZjyq.mjs → table-CISZRlK9.mjs} +2 -2
- package/dist/{table-BbNgtqbd.mjs → table-Dx6KCUVC.mjs} +1 -1
- package/dist/transform-job-Bo1rtoXO.mjs +19 -0
- package/dist/transform-oFy2JltU.mjs +21 -0
- package/dist/{translate-p5_8y0R7.mjs → translate-DsD_bI78.mjs} +5 -5
- package/dist/update-BS9zqDT2.mjs +57 -0
- package/dist/{update-DbY0q1Ja.mjs → update-CAhzSUHT.mjs} +8 -8
- package/dist/{update-Bh9gTZQA.mjs → update-DeHlwttq.mjs} +7 -7
- package/dist/{update-CBaL4nmE.mjs → update-OAfGXSV1.mjs} +10 -10
- package/dist/{update-dashcard-oH6KxEfS.mjs → update-dashcard-H9G6T3zi.mjs} +7 -7
- package/dist/{update-Bz63bSR3.mjs → update-kh0X4VGX.mjs} +7 -7
- package/dist/{url-rF80dSIr.mjs → url-vVkeIPup.mjs} +6 -6
- package/dist/{validate-query-DE4UouY3.mjs → validate-query-D0aAFTUs.mjs} +49 -3
- package/dist/{wait-BMxAPnb0.mjs → wait-DR3UCWim.mjs} +2 -2
- package/dist/{wait-CLNtd-on.mjs → wait-GYWtN1mb.mjs} +6 -6
- package/dist/{wait-flags-lGEHf-vx.mjs → wait-flags-DqDOwv0J.mjs} +2 -2
- package/dist/workspace-DmuFl7Iw.mjs +24 -0
- package/package.json +1 -1
- package/dist/auth-BV8kyXup.mjs +0 -18
- package/dist/card-Dj-6OZZT.mjs +0 -19
- package/dist/dashboard-DG6URsA8.mjs +0 -20
- package/dist/is-dirty-DG5Samxj.mjs +0 -10
- package/dist/ps-D930MtWo.mjs +0 -10
- package/dist/sync-BgVaAyuq.mjs +0 -26
- package/dist/transform-DpYeGyik.mjs +0 -21
- package/dist/transform-job-B1s0Q-rD.mjs +0 -19
- package/dist/workspace-BVCgMRZS.mjs +0 -24
- /package/dist/{database-B9-7QAXE.mjs → database-CqVM76jo.mjs} +0 -0
- /package/dist/{field-D_g4xvH9.mjs → field-uWPctJqU.mjs} +0 -0
- /package/dist/{key-CpWh7W8M.mjs → key-DVHK0_ny.mjs} +0 -0
- /package/dist/{prompt-D8p00XDp.mjs → prompt-k9s4Ntk5.mjs} +0 -0
- /package/dist/{setting-Bm84ixxW.mjs → setting-DwFQyJPi.mjs} +0 -0
- /package/dist/{transform-CRRW0mFp.mjs → transform-h405NiRC.mjs} +0 -0
- /package/dist/{transform-job-BtCoVYsb.mjs → transform-job-oBa_OKqk.mjs} +0 -0
- /package/dist/{workspace-C3tGVQ6_.mjs → workspace-PL1je3wr.mjs} +0 -0
- /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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Card, cardView } from "./card-
|
|
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-
|
|
3
|
-
import { parseJson } from "./runtime-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./render-
|
|
3
|
+
import { renderList } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./render-
|
|
3
|
+
import { renderList } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-
|
|
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-
|
|
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-
|
|
15
|
-
license: () => import("./license-
|
|
16
|
-
db: () => import("./db-
|
|
17
|
-
table: () => import("./table-
|
|
18
|
-
field: () => import("./field-
|
|
19
|
-
card: () => import("./card-
|
|
20
|
-
dashboard: () => import("./dashboard-
|
|
21
|
-
transform: () => import("./transform-
|
|
22
|
-
"transform-job": () => import("./transform-job-
|
|
23
|
-
setting: () => import("./setting-
|
|
24
|
-
search: () => import("./search-
|
|
25
|
-
sync: () => import("./sync-
|
|
26
|
-
workspace: () => import("./workspace-
|
|
27
|
-
setup: () => import("./setup-
|
|
28
|
-
"api-key": () => import("./api-key-
|
|
29
|
-
eid: () => import("./eid-
|
|
30
|
-
query: () => import("./query-
|
|
31
|
-
__manifest: () => import("./manifest-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
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-
|
|
10
|
-
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
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-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
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-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
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-
|
|
10
|
-
import { Transform, TransformCreateInput, transformView } from "./transform-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
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-
|
|
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-
|
|
1
|
+
import "./package-DHwFgisf.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
3
|
+
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { defineMetabaseCommand, localUrl, outputFlags, parseJson } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-
|
|
9
|
-
import { WorkspaceCredentials } from "./workspace-credentials-
|
|
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
|