@metabase/cli 0.1.0-alpha.workspaces-commands.935a64c → 0.1.1

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 (171) hide show
  1. package/README.md +54 -51
  2. package/dist/{add-collection-B-Ye-3rk.mjs → add-collection--zwkmE1S.mjs} +6 -6
  3. package/dist/{add-collection-FNN_Arg9.mjs → add-collection-B1qe0D1U.mjs} +6 -6
  4. package/dist/{api-key-3kWHdrkv.mjs → api-key-gzCbKDjL.mjs} +1 -1
  5. package/dist/{archive-PiPTzqta.mjs → archive-CitmlD1e.mjs} +3 -3
  6. package/dist/{archive-C-G9Nxoi.mjs → archive-CnhWegtR.mjs} +5 -4
  7. package/dist/{archive-CeBvAhT6.mjs → archive-DQjBOXnx.mjs} +4 -4
  8. package/dist/{archive-Ctx4ppbz.mjs → archive-Ni8-lQ1Y.mjs} +5 -5
  9. package/dist/auth-BPjsrFxM.mjs +19 -0
  10. package/dist/{body-DnyBxVKv.mjs → body-DRBgxS6-.mjs} +1 -1
  11. package/dist/{branches-fnskukyH.mjs → branches-C5Jcw8wu.mjs} +6 -6
  12. package/dist/{cancel-BHS55uG8.mjs → cancel-Ca3r7Y6v.mjs} +3 -3
  13. package/dist/{cancel-task--Ql2riG6.mjs → cancel-task-C1-8vDKS.mjs} +7 -7
  14. package/dist/card-BGAy3eIb.mjs +20 -0
  15. package/dist/{card-B2ZlGpQP.mjs → card-CAEZWixN.mjs} +11 -14
  16. package/dist/{cards-Tqz7qbEd.mjs → cards-CILfMPUP.mjs} +4 -4
  17. package/dist/cli.mjs +24 -24
  18. package/dist/{collection-DFqH6N7s.mjs → collection-B3sPXRLs.mjs} +5 -12
  19. package/dist/collection-D8cnCB98.mjs +19 -0
  20. package/dist/{create-DnboeX4b.mjs → create-3Z6rm-4O.mjs} +4 -4
  21. package/dist/{create-BPqZI8eJ.mjs → create-BsY5RrVY.mjs} +3 -3
  22. package/dist/{create-QfYOXoyJ.mjs → create-C4OCclBD.mjs} +3 -3
  23. package/dist/{create-DIEuYQS2.mjs → create-COsD7Vzm.mjs} +6 -6
  24. package/dist/{create-C4Fec2QG.mjs → create-CP8ou91U.mjs} +4 -4
  25. package/dist/{create-xCp5Qxzv.mjs → create-CeIi_QLj.mjs} +8 -7
  26. package/dist/{create-Bn3BDzsS.mjs → create-CqNw6PmR.mjs} +7 -6
  27. package/dist/{create-DX5SX5HJ.mjs → create-DE_5NrFy.mjs} +5 -5
  28. package/dist/{create-Ddk53JTY.mjs → create-MEhhhgMC.mjs} +4 -4
  29. package/dist/{create-DM5QcfYo.mjs → create-QxDmleKJ.mjs} +5 -5
  30. package/dist/{create-branch-BPTa-3oe.mjs → create-branch-CKMYaAHk.mjs} +7 -7
  31. package/dist/{credentials-DDGZCExr.mjs → credentials-CwRKvdP2.mjs} +5 -5
  32. package/dist/{current-task-CXqMeAkI.mjs → current-task-Dutjys16.mjs} +7 -7
  33. package/dist/dashboard-B4fVp392.mjs +20 -0
  34. package/dist/{database-CV_nC20t.mjs → database-BMTb0CzV.mjs} +3 -3
  35. package/dist/{database-DzcFix9u.mjs → database-Dvkfy3JM.mjs} +1 -1
  36. package/dist/db-ACuuaEok.mjs +22 -0
  37. package/dist/{delete-DOJmKqAE.mjs → delete-BMQZuVXZ.mjs} +3 -3
  38. package/dist/{delete-ChZr_uHC.mjs → delete-BvcA4jPj.mjs} +3 -3
  39. package/dist/{delete-table-BbD1ux3D.mjs → delete-table-DUPjHKk4.mjs} +3 -3
  40. package/dist/{deprovision-DR5NpXeq.mjs → deprovision-Bsc1S15j.mjs} +6 -6
  41. package/dist/{dirty-D7HBPBUv.mjs → dirty-CXcdoUhY.mjs} +6 -6
  42. package/dist/{docker-pmX_H1ii.mjs → docker-D-ieBsP7.mjs} +2 -2
  43. package/dist/{eid-DVc2ebwX.mjs → eid-pvOsEMPZ.mjs} +1 -1
  44. package/dist/{export-Bc6K_0BX.mjs → export-BjGhLEOi.mjs} +9 -9
  45. package/dist/field-BI2bt8e9.mjs +18 -0
  46. package/dist/field-DciLbuv-.mjs +276 -0
  47. package/dist/{fields-CNsoNqGV.mjs → fields-Do8HHm_T.mjs} +5 -5
  48. package/dist/{get-Cxo5iHU_.mjs → get-BGFGWkH0.mjs} +4 -4
  49. package/dist/{get-CKGYT_h9.mjs → get-BmE_VHdl.mjs} +3 -3
  50. package/dist/{get-CX_Ck6Nk.mjs → get-C7sshmqF.mjs} +4 -4
  51. package/dist/{get-DfKxQ_oa.mjs → get-CObKBj2J.mjs} +4 -4
  52. package/dist/{get-BS3kP2wR.mjs → get-Cq5U_Eep.mjs} +4 -4
  53. package/dist/{get-BL4-XDrc.mjs → get-D4GUJBiX.mjs} +4 -4
  54. package/dist/{get-CYZbQcOF.mjs → get-DFrsi77F.mjs} +2 -2
  55. package/dist/{get-CkYr30at.mjs → get-DczxeETg.mjs} +5 -5
  56. package/dist/{get-BjzVuL-u.mjs → get-DeQa3ThJ.mjs} +5 -4
  57. package/dist/{get-IBjYDviZ.mjs → get-DhZ_dGUb.mjs} +3 -3
  58. package/dist/{get-pklCz_0L.mjs → get-DzCVafyO.mjs} +3 -3
  59. package/dist/{get-Dm4j4-C2.mjs → get-YCnVqq-z.mjs} +6 -6
  60. package/dist/{get-run-R1jpsFMw.mjs → get-run-CTyW29s3.mjs} +3 -3
  61. package/dist/git-sync-BOmT8HEU.mjs +28 -0
  62. package/dist/{has-remote-changes-B5tQE21X.mjs → has-remote-changes-xX8vMVsX.mjs} +6 -6
  63. package/dist/{import-DdzCXmMi.mjs → import-CaAUNtXz.mjs} +9 -9
  64. package/dist/is-dirty-CPu-xqkW.mjs +10 -0
  65. package/dist/{is-dirty-bh6hmk9i.mjs → is-dirty-mgxEwEk4.mjs} +4 -4
  66. package/dist/{items-CrWoxVHo.mjs → items-Cg67tdto.mjs} +8 -8
  67. package/dist/{license-BOayhs8F.mjs → license-CwKzVMD0.mjs} +3 -3
  68. package/dist/{list-Cou-Ac2l.mjs → list-BqdNQ1nU.mjs} +3 -3
  69. package/dist/{list-D4LvgIyR.mjs → list-BwGdD45N.mjs} +3 -3
  70. package/dist/{list-MWSTuRJt.mjs → list-CfOVsAZz.mjs} +2 -2
  71. package/dist/{list-BjBJzP7V.mjs → list-CpyNn1Zn.mjs} +2 -2
  72. package/dist/{list-BYCK1KmR.mjs → list-CwwOoGLK.mjs} +2 -2
  73. package/dist/{list-DLypWjAD.mjs → list-DD8CQx8l.mjs} +5 -5
  74. package/dist/{list-gW9tCjmY.mjs → list-DL-RWpIE.mjs} +2 -2
  75. package/dist/{list-D3jKvEiW.mjs → list-DLlq3FyS.mjs} +5 -5
  76. package/dist/{list-BQV5NshX.mjs → list-DdQ4jmUQ.mjs} +3 -3
  77. package/dist/{list-Wgyl5jTw.mjs → list-DshbLoqR.mjs} +4 -3
  78. package/dist/{list-D6eczTGQ.mjs → list-DzTMpoBs.mjs} +3 -3
  79. package/dist/{list-Cxwr9_8m.mjs → list-JgRtCzz3.mjs} +2 -2
  80. package/dist/{list-IW7vnt50.mjs → list-WzgJcwB5.mjs} +2 -2
  81. package/dist/{login-Ce_o5MLd.mjs → login-DJnmR2wX.mjs} +2 -2
  82. package/dist/{logout-BBmwrBSd.mjs → logout-BMe_1Zp8.mjs} +2 -2
  83. package/dist/{logs-BH3YzGoR.mjs → logs-CQxKJ3HG.mjs} +5 -5
  84. package/dist/measure-BGyYbtqO.mjs +19 -0
  85. package/dist/{metadata-qxadwd31.mjs → metadata-CLIALntn.mjs} +5 -5
  86. package/dist/{metadata-CtHgIDV0.mjs → metadata-T-fNUWg_.mjs} +6 -6
  87. package/dist/{package-_D_P9V4h.mjs → package-DBsS7a5x.mjs} +1 -1
  88. package/dist/{parse-id-Dy4xSeLf.mjs → parse-id-BUOZQqjp.mjs} +1 -1
  89. package/dist/{parse-schemas-uB5tn5jL.mjs → parse-schemas-BnW4T1_I.mjs} +1 -1
  90. package/dist/{poll-DcT586gB.mjs → poll-DMmmZWvi.mjs} +1 -1
  91. package/dist/{poll-task-DgGZa-HF.mjs → poll-task-2Ckiwp8U.mjs} +5 -5
  92. package/dist/{preflight-DBQDG_jz.mjs → preflight-CC_g6EWU.mjs} +2 -2
  93. package/dist/{provision-RmlAclSj.mjs → provision-BUgWJWAV.mjs} +8 -8
  94. package/dist/{ps-BGzvw2a9.mjs → ps-BUNHygf-.mjs} +5 -5
  95. package/dist/{ps-cwwTN6HT.mjs → ps-Yv0JjLVN.mjs} +2 -2
  96. package/dist/{query-DhWf5_XU.mjs → query-CzfbuG8a.mjs} +36 -13
  97. package/dist/{query-RJ_1ZaP2.mjs → query-UIebHmbT.mjs} +7 -6
  98. package/dist/{remove-D9ZM9DBZ.mjs → remove-BAUbcwuF.mjs} +5 -5
  99. package/dist/{remove-CrAURrqj.mjs → remove-CN2PNGTR.mjs} +2 -2
  100. package/dist/{remove-collection-B2sz1JdF.mjs → remove-collection-C6NxEh53.mjs} +9 -9
  101. package/dist/{rescan-values-CQq-jhLD.mjs → rescan-values-CcB4F9qa.mjs} +6 -6
  102. package/dist/{run-NLdh0m0D.mjs → run-BjXZtu_6.mjs} +5 -5
  103. package/dist/{runs-oT0ELgMP.mjs → runs-CXx7l1NY.mjs} +4 -4
  104. package/dist/{runtime-C6l1Ju-X.mjs → runtime-D7jihh81.mjs} +1 -1
  105. package/dist/{schema-tables-BLYcUDzk.mjs → schema-tables-BCJT2DM_.mjs} +5 -5
  106. package/dist/{schemas-BVVEdKjp.mjs → schemas-DlNpbn4H.mjs} +3 -3
  107. package/dist/{search-BFam2-sx.mjs → search-Dt-6mdHZ.mjs} +3 -4
  108. package/dist/segment-C52QNnSs.mjs +19 -0
  109. package/dist/{set-KA89W3VR.mjs → set-DCESWpi3.mjs} +2 -2
  110. package/dist/{set-6L9BIstn.mjs → set-L7cuHjVZ.mjs} +3 -3
  111. package/dist/{setting-DXD5ho6c.mjs → setting-DysGAuYS.mjs} +3 -3
  112. package/dist/{setup-CFjHjBdY.mjs → setup-_ypJDPAY.mjs} +3 -3
  113. package/dist/snippet-vb3G9R8a.mjs +19 -0
  114. package/dist/{start-tLaBkkBI.mjs → start-BokXnb0V.mjs} +7 -8
  115. package/dist/{stash-DzHfWm1n.mjs → stash-CaGX6PfX.mjs} +7 -7
  116. package/dist/{status-EclMz7Yv.mjs → status-BaX9vedb.mjs} +8 -8
  117. package/dist/{status-51muEP07.mjs → status-CyecXzN4.mjs} +2 -2
  118. package/dist/{status-B5TB381j.mjs → status-RpVyPEty.mjs} +2 -2
  119. package/dist/{stop-C4bFdYps.mjs → stop-BRuF_Cg1.mjs} +6 -6
  120. package/dist/{summary-BNdAw8Te.mjs → summary-CpEOiOlZ.mjs} +4 -4
  121. package/dist/{sync-schema-YQWrC6jD.mjs → sync-schema-4Cl4h8Jn.mjs} +6 -6
  122. package/dist/table-BeMWuvzO.mjs +19 -0
  123. package/dist/{table-Ck9sInse.mjs → table-jljEqZ0R.mjs} +1 -5
  124. package/dist/transform-DwRc-w6y.mjs +24 -0
  125. package/dist/transform-job-BigWrctt.mjs +19 -0
  126. package/dist/{transform-job-DZ38Xc3k.mjs → transform-job-Csr86muI.mjs} +7 -0
  127. package/dist/{translate-DGO4Vbq8.mjs → translate-DqLlXXUx.mjs} +3 -3
  128. package/dist/{tree-DFBClf8v.mjs → tree-BT24nkLM.mjs} +3 -3
  129. package/dist/{update-BWanyZkB.mjs → update-BCXKQi2n.mjs} +6 -6
  130. package/dist/{update-owCnAziw.mjs → update-BXbLmC2b.mjs} +5 -5
  131. package/dist/{update-BGQ4CrAK.mjs → update-C1Frz9GR.mjs} +4 -4
  132. package/dist/{update-BoyiATwc.mjs → update-C5goGhNr.mjs} +6 -6
  133. package/dist/{update-BgHAOPmj.mjs → update-CCOyB0iT.mjs} +8 -8
  134. package/dist/{update-BFNyczga.mjs → update-D04NMueX.mjs} +8 -7
  135. package/dist/{update-DMMSjt0B.mjs → update-D6WVtNV1.mjs} +9 -8
  136. package/dist/{update-Dxyn8J5P.mjs → update-DFR46LsB.mjs} +7 -7
  137. package/dist/{update-D7phI8Ix.mjs → update-DyLItrpV.mjs} +6 -6
  138. package/dist/{update-dashcard-CdoKnQEk.mjs → update-dashcard-av0_PYeg.mjs} +10 -6
  139. package/dist/{update-C4oIEQ0a.mjs → update-mrgvQF4i.mjs} +5 -5
  140. package/dist/{url-mHVfZ4uL.mjs → url-x4wn_l3k.mjs} +5 -5
  141. package/dist/{uuid-BnDZbdAN.mjs → uuid-BZHbti8B.mjs} +2 -2
  142. package/dist/{validate-query-DQDzQCQv.mjs → validate-query-B07oGG4K.mjs} +1 -1
  143. package/dist/{values-CmTVidt-.mjs → values-Be6i0Fs9.mjs} +4 -4
  144. package/dist/{wait-DWDeV8l6.mjs → wait-BMqQD8k_.mjs} +8 -8
  145. package/dist/{wait-rHAJDRWM.mjs → wait-CWizX_sR.mjs} +1 -1
  146. package/dist/{wait-flags-DGvYn3LJ.mjs → wait-flags-DO3ar2tf.mjs} +2 -2
  147. package/dist/workspace-CG1xyJ86.mjs +24 -0
  148. package/package.json +1 -1
  149. package/dist/auth-yEUbA368.mjs +0 -19
  150. package/dist/card-Dnm0jydp.mjs +0 -20
  151. package/dist/collection-CXH6n3JD.mjs +0 -19
  152. package/dist/dashboard-B9zTXDYK.mjs +0 -20
  153. package/dist/db-D2koZa54.mjs +0 -22
  154. package/dist/field-D6CJbmAR.mjs +0 -142
  155. package/dist/field-ilGuKrWV.mjs +0 -18
  156. package/dist/is-dirty-BVGP-zkM.mjs +0 -10
  157. package/dist/measure-Bb_do8gt.mjs +0 -19
  158. package/dist/remote-sync-Wo7mzKgy.mjs +0 -28
  159. package/dist/segment-B0M4sLKF.mjs +0 -19
  160. package/dist/snippet-Cnk5Slje.mjs +0 -19
  161. package/dist/table-Dx13ukJ1.mjs +0 -19
  162. package/dist/transform-BaknXzIk.mjs +0 -24
  163. package/dist/transform-job-Cbg7x7Wv.mjs +0 -19
  164. package/dist/workspace-BBzIcZC3.mjs +0 -24
  165. /package/dist/{dashboard-DyrRSbqQ.mjs → dashboard-CnMD04PQ.mjs} +0 -0
  166. /package/dist/{manifest-VVjycZCe.mjs → manifest-Dv5B9Blc.mjs} +0 -0
  167. /package/dist/{measure-jbc7fsCs.mjs → measure-BEQfnLdN.mjs} +0 -0
  168. /package/dist/{paginate-B9W7ZuBj.mjs → paginate-CTSfuYiF.mjs} +0 -0
  169. /package/dist/{parse-ref-FBB8uGZw.mjs → parse-ref-DGvh4aDn.mjs} +0 -0
  170. /package/dist/{revision-message-flag-D4E1lKE5.mjs → revision-message-flag-CWQbKhdl.mjs} +0 -0
  171. /package/dist/{validate-GPoiblzw.mjs → validate-DCYx6jdL.mjs} +0 -0
package/README.md CHANGED
@@ -469,21 +469,24 @@ metabase card get 1 --json --detail full
469
469
 
470
470
  ### `metabase card query <id>`
471
471
 
472
- Run the card's query. Without `--export-format`, returns the Metabase JSON envelope (`status`, `row_count`, `data: { rows, cols }`, …). With `--export-format csv` or `--export-format xlsx`, the export bytes stream straight to stdout.
472
+ Run the card's query. Without `--export-format`, returns the Metabase JSON envelope (`status`, `row_count`, `data: { rows, cols }`, …). With `--export-format csv`, `--export-format json`, or `--export-format xlsx`, the export bytes stream straight to stdout.
473
473
 
474
474
  ```sh
475
475
  metabase card query 1 --json
476
476
  metabase card query 1 --json --limit 20
477
477
  metabase card query 1 --export-format csv > export.csv
478
+ metabase card query 1 --export-format json > export.json
478
479
  metabase card query 1 --export-format xlsx > export.xlsx
479
480
  metabase card query 1 --parameters '[{"type":"category","value":"A","target":["variable",["template-tag","c"]]}]'
480
481
  ```
481
482
 
482
- | Flag | Description |
483
- | ----------------------- | ------------------------------------------------------------------------------------------ |
484
- | `--export-format <fmt>` | Stream the export instead of the JSON envelope. One of `csv`, `xlsx`. |
485
- | `--parameters <json>` | JSON array of Metabase parameter objects (the same shape Metabase POSTs from a dashboard). |
486
- | `--limit <n>` | Cap rows kept in the JSON envelope. No effect on `csv` / `xlsx` exports. |
483
+ | Flag | Description |
484
+ | ----------------------- | ------------------------------------------------------------------------------------------------------ |
485
+ | `--export-format <fmt>` | Stream the export instead of the JSON envelope. One of `csv`, `json`, `xlsx`. |
486
+ | `--parameters <json>` | JSON array of Metabase parameter objects (the same shape Metabase POSTs from a dashboard). |
487
+ | `--limit <n>` | Cap rows kept in the JSON envelope. No effect on streamed exports. |
488
+ | `--format-rows` | Streamed exports only: apply the card's visualization-settings formatting to values (default `false`). |
489
+ | `--pivot-results` | Streamed exports only: emit the pivoted output for pivot questions (default `false`). |
487
490
 
488
491
  ### `metabase card create`
489
492
 
@@ -932,73 +935,73 @@ metabase search products --archived
932
935
  | `--table-db-id` | Restrict to items on a given database id. |
933
936
  | `--verified` | Only verified content. |
934
937
 
935
- ## Remote Sync
938
+ ## Git Sync
936
939
 
937
- Drive Metabase Enterprise Remote Sync (`/api/ee/remote-sync`) — import / export Metabase content against a configured git remote, inspect dirty state, and manage branches. All remote-sync commands require an active EE token and superuser credentials.
940
+ Drive Metabase Enterprise Remote Sync (`/api/ee/remote-sync`) — import / export Metabase content against a configured git remote, inspect dirty state, and manage branches. All git-sync commands require an active EE token and superuser credentials.
938
941
 
939
- ### `metabase remote-sync status`
942
+ ### `metabase git-sync status`
940
943
 
941
944
  Roll up the current sync state in one call: configured branch, dirty flag, and the most recent sync task (or `null` if none has ever run).
942
945
 
943
946
  ```sh
944
- metabase remote-sync status
945
- metabase remote-sync status --json
947
+ metabase git-sync status
948
+ metabase git-sync status --json
946
949
  ```
947
950
 
948
- ### `metabase remote-sync is-dirty`
951
+ ### `metabase git-sync is-dirty`
949
952
 
950
953
  Boolean check for whether any synced collection has unsynced local changes.
951
954
 
952
955
  ```sh
953
- metabase remote-sync is-dirty --json
956
+ metabase git-sync is-dirty --json
954
957
  ```
955
958
 
956
- ### `metabase remote-sync has-remote-changes`
959
+ ### `metabase git-sync has-remote-changes`
957
960
 
958
961
  Compare the latest version on the remote branch against the version Metabase last imported. Cached for a short TTL server-side; pass `--force-refresh` to bypass.
959
962
 
960
963
  ```sh
961
- metabase remote-sync has-remote-changes
962
- metabase remote-sync has-remote-changes --force-refresh --json
964
+ metabase git-sync has-remote-changes
965
+ metabase git-sync has-remote-changes --force-refresh --json
963
966
  ```
964
967
 
965
968
  | Flag | Description |
966
969
  | ----------------- | --------------------------------------------------- |
967
970
  | `--force-refresh` | Bypass the in-memory cache and re-check the remote. |
968
971
 
969
- ### `metabase remote-sync dirty`
972
+ ### `metabase git-sync dirty`
970
973
 
971
974
  List every object that has unsynced local changes (compact list envelope; `--full` for the per-row payload).
972
975
 
973
976
  ```sh
974
- metabase remote-sync dirty
975
- metabase remote-sync dirty --json
977
+ metabase git-sync dirty
978
+ metabase git-sync dirty --json
976
979
  ```
977
980
 
978
- ### `metabase remote-sync current-task`
981
+ ### `metabase git-sync current-task`
979
982
 
980
983
  Fetch the most recent sync task. Renders `{ status: "idle" }` when no task has ever run, otherwise the full task with its hydrated `status`.
981
984
 
982
985
  ```sh
983
- metabase remote-sync current-task
984
- metabase remote-sync current-task --json
986
+ metabase git-sync current-task
987
+ metabase git-sync current-task --json
985
988
  ```
986
989
 
987
- ### `metabase remote-sync cancel-task`
990
+ ### `metabase git-sync cancel-task`
988
991
 
989
992
  Cancel the currently running sync task. Fails with HTTP 400 if no task is running.
990
993
 
991
994
  ```sh
992
- metabase remote-sync cancel-task --json
995
+ metabase git-sync cancel-task --json
993
996
  ```
994
997
 
995
- ### `metabase remote-sync wait`
998
+ ### `metabase git-sync wait`
996
999
 
997
1000
  Poll `/current-task` until it reaches a terminal status (`successful`, `errored`, `cancelled`, `timed-out`, `conflict`). Exits 0 on `successful` or `cancelled`; exits 1 on `errored` / `timed-out` / `conflict`. Returns immediately with `{ status: "idle" }` if no task is running.
998
1001
 
999
1002
  ```sh
1000
- metabase remote-sync wait
1001
- metabase remote-sync wait --timeout 300000 --json
1003
+ metabase git-sync wait
1004
+ metabase git-sync wait --timeout 300000 --json
1002
1005
  ```
1003
1006
 
1004
1007
  | Flag | Description |
@@ -1006,14 +1009,14 @@ metabase remote-sync wait --timeout 300000 --json
1006
1009
  | `--timeout <ms>` | Polling timeout in ms (default 600000). |
1007
1010
  | `--interval <ms>` | Polling interval in ms (default 2000). |
1008
1011
 
1009
- ### `metabase remote-sync import`
1012
+ ### `metabase git-sync import`
1010
1013
 
1011
1014
  Import content from the configured git remote into Metabase (repo → Metabase). Auto-polls until the resulting task reaches a terminal status; pass `--no-wait` to return immediately after kickoff.
1012
1015
 
1013
1016
  ```sh
1014
- metabase remote-sync import
1015
- metabase remote-sync import --branch main --json
1016
- metabase remote-sync import --force --no-wait
1017
+ metabase git-sync import
1018
+ metabase git-sync import --branch main --json
1019
+ metabase git-sync import --force --no-wait
1017
1020
  ```
1018
1021
 
1019
1022
  | Flag | Description |
@@ -1024,14 +1027,14 @@ metabase remote-sync import --force --no-wait
1024
1027
  | `--timeout <ms>` | Polling timeout in ms (default 600000). Used with `--wait`. |
1025
1028
  | `--interval <ms>` | Polling interval in ms (default 2000). Used with `--wait`. |
1026
1029
 
1027
- ### `metabase remote-sync export`
1030
+ ### `metabase git-sync export`
1028
1031
 
1029
1032
  Export Metabase changes back to the configured git remote (Metabase → repo). Auto-polls by default.
1030
1033
 
1031
1034
  ```sh
1032
- metabase remote-sync export -m "update dashboards"
1033
- metabase remote-sync export --branch main --json
1034
- metabase remote-sync export --no-wait
1035
+ metabase git-sync export -m "update dashboards"
1036
+ metabase git-sync export --branch main --json
1037
+ metabase git-sync export --no-wait
1035
1038
  ```
1036
1039
 
1037
1040
  | Flag | Description |
@@ -1043,13 +1046,13 @@ metabase remote-sync export --no-wait
1043
1046
  | `--timeout <ms>` | Polling timeout in ms (default 600000). Used with `--wait`. |
1044
1047
  | `--interval <ms>` | Polling interval in ms (default 2000). Used with `--wait`. |
1045
1048
 
1046
- ### `metabase remote-sync stash`
1049
+ ### `metabase git-sync stash`
1047
1050
 
1048
1051
  Export the current Metabase state to a NEW branch on the remote and switch sync to it. Requires `remote-sync-type` to be `read-write`.
1049
1052
 
1050
1053
  ```sh
1051
- metabase remote-sync stash --new-branch wip
1052
- metabase remote-sync stash --new-branch wip -m "work in progress" --json
1054
+ metabase git-sync stash --new-branch wip
1055
+ metabase git-sync stash --new-branch wip -m "work in progress" --json
1053
1056
  ```
1054
1057
 
1055
1058
  | Flag | Description |
@@ -1060,41 +1063,41 @@ metabase remote-sync stash --new-branch wip -m "work in progress" --json
1060
1063
  | `--timeout <ms>` | Polling timeout in ms. Used with `--wait`. |
1061
1064
  | `--interval <ms>` | Polling interval in ms. Used with `--wait`. |
1062
1065
 
1063
- ### `metabase remote-sync branches`
1066
+ ### `metabase git-sync branches`
1064
1067
 
1065
1068
  List branches available on the configured git remote.
1066
1069
 
1067
1070
  ```sh
1068
- metabase remote-sync branches --json
1071
+ metabase git-sync branches --json
1069
1072
  ```
1070
1073
 
1071
- ### `metabase remote-sync create-branch <name>`
1074
+ ### `metabase git-sync create-branch <name>`
1072
1075
 
1073
1076
  Create a new branch on the git remote (from the last imported version) and switch sync to it.
1074
1077
 
1075
1078
  ```sh
1076
- metabase remote-sync create-branch feat/dashboards
1077
- metabase remote-sync create-branch feat/x --json
1079
+ metabase git-sync create-branch feat/dashboards
1080
+ metabase git-sync create-branch feat/x --json
1078
1081
  ```
1079
1082
 
1080
- ### `metabase remote-sync add-collection <id>`
1083
+ ### `metabase git-sync add-collection <id>`
1081
1084
 
1082
- Mark a collection as remote-synced. The toggle cascades to every descendant by `location` prefix, so flagging a parent flags the whole subtree. Returns `{ success, task_id? }`; `task_id` only appears when the toggle triggers a follow-up task (e.g. a finalization import after switching to read-only mode).
1085
+ Mark a collection as git-synced. The toggle cascades to every descendant by `location` prefix, so flagging a parent flags the whole subtree. Returns `{ success, task_id? }`; `task_id` only appears when the toggle triggers a follow-up task (e.g. a finalization import after switching to read-only mode).
1083
1086
 
1084
1087
  ```sh
1085
- metabase remote-sync add-collection 12
1086
- metabase remote-sync add-collection 12 --json --profile prod
1088
+ metabase git-sync add-collection 12
1089
+ metabase git-sync add-collection 12 --json --profile prod
1087
1090
  ```
1088
1091
 
1089
1092
  The server rejects toggles while `remote-sync-type` is `read-only` (the install default). Switch first with `metabase setting set remote-sync-type '"read-write"'`.
1090
1093
 
1091
- ### `metabase remote-sync remove-collection <id>`
1094
+ ### `metabase git-sync remove-collection <id>`
1092
1095
 
1093
- Unmark a collection as remote-synced. Same cascade and same `read-only` precondition as `add-collection`.
1096
+ Unmark a collection as git-synced. Same cascade and same `read-only` precondition as `add-collection`.
1094
1097
 
1095
1098
  ```sh
1096
- metabase remote-sync remove-collection 12
1097
- metabase remote-sync remove-collection 12 --json --profile prod
1099
+ metabase git-sync remove-collection 12
1100
+ metabase git-sync remove-collection 12 --json --profile prod
1098
1101
  ```
1099
1102
 
1100
1103
  ## Workspaces
@@ -1,11 +1,11 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import "./runtime-C6l1Ju-X.mjs";
6
- import "./parse-id-Dy4xSeLf.mjs";
7
- import "./poll-task-DgGZa-HF.mjs";
8
- import "./poll-DcT586gB.mjs";
9
- import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-FNN_Arg9.mjs";
5
+ import "./runtime-D7jihh81.mjs";
6
+ import "./parse-id-BUOZQqjp.mjs";
7
+ import "./poll-task-2Ckiwp8U.mjs";
8
+ import "./poll-DMmmZWvi.mjs";
9
+ import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-B1qe0D1U.mjs";
10
10
 
11
11
  export { add_collection_default as default };
@@ -1,10 +1,10 @@
1
1
  import { renderItem } from "./render-DXv-D6fU.mjs";
2
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C6l1Ju-X.mjs";
3
- import { parseId } from "./parse-id-Dy4xSeLf.mjs";
4
- import { REMOTE_SYNC_PATHS } from "./poll-task-DgGZa-HF.mjs";
2
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
3
+ import { parseId } from "./parse-id-BUOZQqjp.mjs";
4
+ import { REMOTE_SYNC_PATHS } from "./poll-task-2Ckiwp8U.mjs";
5
5
  import { z } from "zod";
6
6
 
7
- //#region src/commands/remote-sync/add-collection.ts
7
+ //#region src/commands/git-sync/add-collection.ts
8
8
  const SyncSettingsUpdateResult = z.object({
9
9
  success: z.boolean(),
10
10
  task_id: z.number().int().positive().optional()
@@ -28,7 +28,7 @@ async function setCollectionRemoteSynced(client, collectionId, synced) {
28
28
  var add_collection_default = defineMetabaseCommand({
29
29
  meta: {
30
30
  name: "add-collection",
31
- description: "Mark a collection as remote-synced; cascades to descendants by location prefix"
31
+ description: "Mark a collection as git-synced; cascades to descendants by location prefix"
32
32
  },
33
33
  args: {
34
34
  ...outputFlags,
@@ -41,7 +41,7 @@ var add_collection_default = defineMetabaseCommand({
41
41
  }
42
42
  },
43
43
  outputSchema: SyncSettingsUpdateResult,
44
- examples: ["metabase remote-sync add-collection 12", "metabase remote-sync add-collection 12 --json --profile prod"],
44
+ examples: ["metabase git-sync add-collection 12", "metabase git-sync add-collection 12 --json --profile prod"],
45
45
  async run({ args, ctx, getClient }) {
46
46
  const collectionId = parseId(args.id, "id");
47
47
  const client = await getClient();
@@ -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-C4Fec2QG.mjs").then((mod) => mod.default) }
9
+ subCommands: { create: () => import("./create-CP8ou91U.mjs").then((mod) => mod.default) }
10
10
  });
11
11
 
12
12
  //#endregion
@@ -1,9 +1,9 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import { renderItem } from "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C6l1Ju-X.mjs";
6
- import { parseId } from "./parse-id-Dy4xSeLf.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
6
+ import { parseId } from "./parse-id-BUOZQqjp.mjs";
7
7
  import { Snippet, snippetView } from "./snippet-Dw0Sjzkr.mjs";
8
8
 
9
9
  //#region src/commands/snippet/archive.ts
@@ -1,10 +1,11 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import { renderItem } from "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C6l1Ju-X.mjs";
6
- import { parseId } from "./parse-id-Dy4xSeLf.mjs";
7
- import { Card, cardView } from "./card-B2ZlGpQP.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
6
+ import { parseId } from "./parse-id-BUOZQqjp.mjs";
7
+ import "./field-DciLbuv-.mjs";
8
+ import { Card, cardView } from "./card-CAEZWixN.mjs";
8
9
 
9
10
  //#region src/commands/card/archive.ts
10
11
  var archive_default = defineMetabaseCommand({
@@ -1,10 +1,10 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import { renderItem } from "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C6l1Ju-X.mjs";
6
- import { parseId } from "./parse-id-Dy4xSeLf.mjs";
7
- import { revisionMessageFlag } from "./revision-message-flag-D4E1lKE5.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
6
+ import { parseId } from "./parse-id-BUOZQqjp.mjs";
7
+ import { revisionMessageFlag } from "./revision-message-flag-CWQbKhdl.mjs";
8
8
  import { Segment, segmentView } from "./segment-BMrUBz94.mjs";
9
9
 
10
10
  //#region src/commands/segment/archive.ts
@@ -1,11 +1,11 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import { renderItem } from "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C6l1Ju-X.mjs";
6
- import { parseId } from "./parse-id-Dy4xSeLf.mjs";
7
- import { Measure, measureView } from "./measure-jbc7fsCs.mjs";
8
- import { revisionMessageFlag } from "./revision-message-flag-D4E1lKE5.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
6
+ import { parseId } from "./parse-id-BUOZQqjp.mjs";
7
+ import { Measure, measureView } from "./measure-BEQfnLdN.mjs";
8
+ import { revisionMessageFlag } from "./revision-message-flag-CWQbKhdl.mjs";
9
9
 
10
10
  //#region src/commands/measure/archive.ts
11
11
  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-DJnmR2wX.mjs").then((m) => m.default),
12
+ status: () => import("./status-CyecXzN4.mjs").then((m) => m.default),
13
+ list: () => import("./list-CfOVsAZz.mjs").then((m) => m.default),
14
+ logout: () => import("./logout-BMe_1Zp8.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 "./predicates-DiIiS3k7.mjs";
2
2
  import { readInput } from "./input-ikCiip6x.mjs";
3
- import { parseJson } from "./runtime-C6l1Ju-X.mjs";
3
+ import { parseJson } from "./runtime-D7jihh81.mjs";
4
4
 
5
5
  //#region src/runtime/body.ts
6
6
  async function readBody(sources, schema) {
@@ -1,13 +1,13 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import { renderList } from "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-C6l1Ju-X.mjs";
6
- import { REMOTE_SYNC_PATHS } from "./poll-task-DgGZa-HF.mjs";
7
- import "./poll-DcT586gB.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-D7jihh81.mjs";
6
+ import { REMOTE_SYNC_PATHS } from "./poll-task-2Ckiwp8U.mjs";
7
+ import "./poll-DMmmZWvi.mjs";
8
8
  import { z } from "zod";
9
9
 
10
- //#region src/commands/remote-sync/branches.ts
10
+ //#region src/commands/git-sync/branches.ts
11
11
  const SyncBranchesApiResponse = z.object({ items: z.array(z.string()) });
12
12
  const BranchRow = z.object({ name: z.string() });
13
13
  const branchView = {
@@ -29,7 +29,7 @@ var branches_default = defineMetabaseCommand({
29
29
  ...connectionFlags
30
30
  },
31
31
  outputSchema: SyncBranchListEnvelope,
32
- examples: ["metabase remote-sync branches", "metabase remote-sync branches --json"],
32
+ examples: ["metabase git-sync branches", "metabase git-sync branches --json"],
33
33
  async run({ ctx, getClient }) {
34
34
  const client = await getClient();
35
35
  const response = await client.requestParsed(SyncBranchesApiResponse, REMOTE_SYNC_PATHS.branches);
@@ -1,9 +1,9 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import { renderItem } from "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C6l1Ju-X.mjs";
6
- import { parseId } from "./parse-id-Dy4xSeLf.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
6
+ import { parseId } from "./parse-id-BUOZQqjp.mjs";
7
7
  import { z } from "zod";
8
8
 
9
9
  //#region src/commands/transform/cancel.ts
@@ -1,16 +1,16 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import { renderItem } from "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C6l1Ju-X.mjs";
6
- import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-DgGZa-HF.mjs";
7
- import "./poll-DcT586gB.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
6
+ import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-2Ckiwp8U.mjs";
7
+ import "./poll-DMmmZWvi.mjs";
8
8
 
9
- //#region src/commands/remote-sync/cancel-task.ts
9
+ //#region src/commands/git-sync/cancel-task.ts
10
10
  var cancel_task_default = defineMetabaseCommand({
11
11
  meta: {
12
12
  name: "cancel-task",
13
- description: "Cancel the running remote-sync task"
13
+ description: "Cancel the running git-sync task"
14
14
  },
15
15
  args: {
16
16
  ...outputFlags,
@@ -18,7 +18,7 @@ var cancel_task_default = defineMetabaseCommand({
18
18
  ...connectionFlags
19
19
  },
20
20
  outputSchema: SyncTask,
21
- examples: ["metabase remote-sync cancel-task", "metabase remote-sync cancel-task --json"],
21
+ examples: ["metabase git-sync cancel-task", "metabase git-sync cancel-task --json"],
22
22
  async run({ ctx, getClient }) {
23
23
  const client = await getClient();
24
24
  const task = await client.requestParsed(SyncTask, REMOTE_SYNC_PATHS.cancelTask, { method: "POST" });
@@ -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-DshbLoqR.mjs").then((mod) => mod.default),
11
+ get: () => import("./get-DeQa3ThJ.mjs").then((mod) => mod.default),
12
+ query: () => import("./query-CzfbuG8a.mjs").then((mod) => mod.default),
13
+ create: () => import("./create-CqNw6PmR.mjs").then((mod) => mod.default),
14
+ update: () => import("./update-D04NMueX.mjs").then((mod) => mod.default),
15
+ archive: () => import("./archive-CnhWegtR.mjs").then((mod) => mod.default)
16
+ }
17
+ });
18
+
19
+ //#endregion
20
+ export { card_default as default };
@@ -1,3 +1,4 @@
1
+ import { FieldBaseType, FieldSemanticType } from "./field-DciLbuv-.mjs";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/domain/card.ts
@@ -73,8 +74,8 @@ const CardCreateInput = z.object({
73
74
  type: CardType.optional(),
74
75
  dataset_query: CardDatasetQuery,
75
76
  display: z.string().min(1),
76
- visualization_settings: z.unknown(),
77
- description: z.string().nullable().optional(),
77
+ visualization_settings: z.record(z.string(), z.unknown()),
78
+ description: z.string().min(1).nullable().optional(),
78
79
  collection_id: z.number().int().positive().nullable().optional(),
79
80
  collection_position: z.number().int().positive().nullable().optional(),
80
81
  dashboard_id: z.number().int().positive().nullable().optional(),
@@ -86,7 +87,7 @@ const CardUpdateInput = z.object({
86
87
  type: CardType.optional(),
87
88
  dataset_query: CardDatasetQuery.optional(),
88
89
  display: z.string().min(1).optional(),
89
- visualization_settings: z.unknown().optional(),
90
+ visualization_settings: z.record(z.string(), z.unknown()).optional(),
90
91
  description: z.string().nullable().optional(),
91
92
  archived: z.boolean().optional(),
92
93
  enable_embedding: z.boolean().optional(),
@@ -105,24 +106,20 @@ const CardUpdateInput = z.object({
105
106
  const QueryColumn = z.object({
106
107
  name: z.string(),
107
108
  display_name: z.string().optional(),
108
- base_type: z.string().optional(),
109
- semantic_type: z.string().nullable().optional()
109
+ base_type: FieldBaseType.optional(),
110
+ semantic_type: FieldSemanticType.nullable().optional()
110
111
  }).loose();
111
- const CardQueryDataCompleted = z.object({
112
+ const CardQueryData = z.object({
112
113
  rows: z.array(z.unknown()),
113
114
  cols: z.array(QueryColumn)
114
115
  }).loose();
115
- const CardQueryCompleted = z.object({
116
- status: z.literal("completed"),
117
- row_count: z.number().int().nonnegative(),
118
- data: CardQueryDataCompleted
119
- }).loose();
120
- const CardQueryFailed = z.object({
121
- status: z.literal("failed"),
116
+ const CardQueryResult = z.object({
117
+ status: z.string(),
118
+ row_count: z.number().int().nonnegative().optional(),
119
+ data: CardQueryData.optional(),
122
120
  error: z.string().nullable().optional(),
123
121
  error_type: z.string().nullable().optional()
124
122
  }).loose();
125
- const CardQueryResult = z.discriminatedUnion("status", [CardQueryCompleted, CardQueryFailed]);
126
123
  const cardQueryView = {
127
124
  compactPick: CardQueryResult,
128
125
  tableColumns: [{
@@ -1,10 +1,10 @@
1
- import "./package-_D_P9V4h.mjs";
1
+ import "./package-DBsS7a5x.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
3
  import { renderList } from "./render-DXv-D6fU.mjs";
4
4
  import "./predicates-DiIiS3k7.mjs";
5
- import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-C6l1Ju-X.mjs";
6
- import { parseId } from "./parse-id-Dy4xSeLf.mjs";
7
- import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-DyrRSbqQ.mjs";
5
+ import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-D7jihh81.mjs";
6
+ import { parseId } from "./parse-id-BUOZQqjp.mjs";
7
+ import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-CnMD04PQ.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-_D_P9V4h.mjs";
2
+ import { package_default } from "./package-DBsS7a5x.mjs";
3
3
  import { getMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
4
4
  import { defineCommand, renderUsage, runMain } from "citty";
5
5
 
@@ -11,29 +11,29 @@ const main = defineCommand({
11
11
  description: package_default.description
12
12
  },
13
13
  subCommands: {
14
- auth: () => import("./auth-yEUbA368.mjs").then((mod) => mod.default),
15
- license: () => import("./license-BOayhs8F.mjs").then((mod) => mod.default),
16
- db: () => import("./db-D2koZa54.mjs").then((mod) => mod.default),
17
- table: () => import("./table-Dx13ukJ1.mjs").then((mod) => mod.default),
18
- field: () => import("./field-ilGuKrWV.mjs").then((mod) => mod.default),
19
- card: () => import("./card-Dnm0jydp.mjs").then((mod) => mod.default),
20
- dashboard: () => import("./dashboard-B9zTXDYK.mjs").then((mod) => mod.default),
21
- collection: () => import("./collection-CXH6n3JD.mjs").then((mod) => mod.default),
22
- transform: () => import("./transform-BaknXzIk.mjs").then((mod) => mod.default),
23
- "transform-job": () => import("./transform-job-Cbg7x7Wv.mjs").then((mod) => mod.default),
24
- setting: () => import("./setting-DXD5ho6c.mjs").then((mod) => mod.default),
25
- search: () => import("./search-BFam2-sx.mjs").then((mod) => mod.default),
26
- "remote-sync": () => import("./remote-sync-Wo7mzKgy.mjs").then((mod) => mod.default),
27
- workspace: () => import("./workspace-BBzIcZC3.mjs").then((mod) => mod.default),
28
- setup: () => import("./setup-CFjHjBdY.mjs").then((mod) => mod.default),
29
- "api-key": () => import("./api-key-3kWHdrkv.mjs").then((mod) => mod.default),
30
- snippet: () => import("./snippet-Cnk5Slje.mjs").then((mod) => mod.default),
31
- segment: () => import("./segment-B0M4sLKF.mjs").then((mod) => mod.default),
32
- measure: () => import("./measure-Bb_do8gt.mjs").then((mod) => mod.default),
33
- eid: () => import("./eid-DVc2ebwX.mjs").then((mod) => mod.default),
34
- query: () => import("./query-RJ_1ZaP2.mjs").then((mod) => mod.default),
35
- uuid: () => import("./uuid-BnDZbdAN.mjs").then((mod) => mod.default),
36
- __manifest: () => import("./manifest-VVjycZCe.mjs").then((mod) => mod.createManifestCommand(main))
14
+ auth: () => import("./auth-BPjsrFxM.mjs").then((mod) => mod.default),
15
+ license: () => import("./license-CwKzVMD0.mjs").then((mod) => mod.default),
16
+ db: () => import("./db-ACuuaEok.mjs").then((mod) => mod.default),
17
+ table: () => import("./table-BeMWuvzO.mjs").then((mod) => mod.default),
18
+ field: () => import("./field-BI2bt8e9.mjs").then((mod) => mod.default),
19
+ card: () => import("./card-BGAy3eIb.mjs").then((mod) => mod.default),
20
+ dashboard: () => import("./dashboard-B4fVp392.mjs").then((mod) => mod.default),
21
+ collection: () => import("./collection-D8cnCB98.mjs").then((mod) => mod.default),
22
+ transform: () => import("./transform-DwRc-w6y.mjs").then((mod) => mod.default),
23
+ "transform-job": () => import("./transform-job-BigWrctt.mjs").then((mod) => mod.default),
24
+ setting: () => import("./setting-DysGAuYS.mjs").then((mod) => mod.default),
25
+ search: () => import("./search-Dt-6mdHZ.mjs").then((mod) => mod.default),
26
+ "git-sync": () => import("./git-sync-BOmT8HEU.mjs").then((mod) => mod.default),
27
+ workspace: () => import("./workspace-CG1xyJ86.mjs").then((mod) => mod.default),
28
+ setup: () => import("./setup-_ypJDPAY.mjs").then((mod) => mod.default),
29
+ "api-key": () => import("./api-key-gzCbKDjL.mjs").then((mod) => mod.default),
30
+ snippet: () => import("./snippet-vb3G9R8a.mjs").then((mod) => mod.default),
31
+ segment: () => import("./segment-C52QNnSs.mjs").then((mod) => mod.default),
32
+ measure: () => import("./measure-BGyYbtqO.mjs").then((mod) => mod.default),
33
+ eid: () => import("./eid-pvOsEMPZ.mjs").then((mod) => mod.default),
34
+ query: () => import("./query-UIebHmbT.mjs").then((mod) => mod.default),
35
+ uuid: () => import("./uuid-BZHbti8B.mjs").then((mod) => mod.default),
36
+ __manifest: () => import("./manifest-Dv5B9Blc.mjs").then((mod) => mod.createManifestCommand(main))
37
37
  }
38
38
  });
39
39
  var main_default = main;