@metabase/cli 0.2.1-alpha.bcm-ghy-4075-spawn-default-profile.eb120d1 → 0.2.1-alpha.trust-system-ca.541e4e0

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 (200) hide show
  1. package/README.md +8 -69
  2. package/dist/{add-collection-CLXfrgp4.mjs → add-collection-BZAVH5Wk.mjs} +4 -4
  3. package/dist/add-collection-DByJYvGO.mjs +9 -0
  4. package/dist/{append-DMcxP1LM.mjs → append-Cak5jykn.mjs} +5 -5
  5. package/dist/{archive-DErhQn8A.mjs → archive-BIEnBoE8.mjs} +4 -4
  6. package/dist/{archive-BwIZzWGe.mjs → archive-BMbx6lt8.mjs} +3 -3
  7. package/dist/{archive-h-3H5b4K.mjs → archive-BVY_jD_g.mjs} +5 -5
  8. package/dist/{archive-4WqMsPWB.mjs → archive-CPgWNCG3.mjs} +4 -4
  9. package/dist/{archive-Q1387APe.mjs → archive-CaKhG58H.mjs} +3 -3
  10. package/dist/{archive-BggM_AuL.mjs → archive-CjnCAM61.mjs} +5 -5
  11. package/dist/{archive-DTnz1suV.mjs → archive-CytCvQpn.mjs} +4 -4
  12. package/dist/{archive-BmhehbS0.mjs → archive-DfbI8DRB.mjs} +3 -3
  13. package/dist/{archive-5inmbMDL.mjs → archive-op9pJRpg.mjs} +3 -3
  14. package/dist/{auth-DzCAiArV.mjs → auth-XfuGXI2K.mjs} +4 -4
  15. package/dist/{body-5snfmiwR.mjs → body-BW_CiL1d.mjs} +3 -3
  16. package/dist/{branches-PL170CYS.mjs → branches-gVRwKne4.mjs} +4 -4
  17. package/dist/{cancel-EFKcF5J_.mjs → cancel-CBOJSslz.mjs} +3 -3
  18. package/dist/{cancel-task-mFFx0d5m.mjs → cancel-task-Djancczz.mjs} +4 -4
  19. package/dist/{capabilities-CiaAfUgX.mjs → capabilities-CSjeWyLV.mjs} +1 -1
  20. package/dist/{card-BsfdXK0O.mjs → card-B_kiDDil.mjs} +6 -6
  21. package/dist/{cards-BI7zKb9M.mjs → cards-23FtfL4S.mjs} +3 -3
  22. package/dist/cli.mjs +41 -29
  23. package/dist/{collection-2h_by9Ue.mjs → collection-DNzM3u7n.mjs} +6 -6
  24. package/dist/{collection-namespace-uNA5WhLB.mjs → collection-namespace-w1y5D0Uh.mjs} +2 -2
  25. package/dist/{create-BLD0YniB.mjs → create-BRK8TBzp.mjs} +3 -3
  26. package/dist/{create-CU3bYpsT.mjs → create-BkvdOecg.mjs} +5 -5
  27. package/dist/{create-FuZa4j1N.mjs → create-CGsTL5aE.mjs} +5 -5
  28. package/dist/{create-CQ32FwVe.mjs → create-C_fyIHZU.mjs} +5 -5
  29. package/dist/{create-xPfmI1Tu.mjs → create-CnT-L03B.mjs} +7 -7
  30. package/dist/{create-CBKT7SE_.mjs → create-CnqGhtuF.mjs} +4 -4
  31. package/dist/{create-VrSowEbj.mjs → create-CvptjYVb.mjs} +6 -6
  32. package/dist/{create-DAH24ltu.mjs → create-DZBtbGqj.mjs} +5 -5
  33. package/dist/{create-KveE3j3p.mjs → create-D_eiLBqR.mjs} +8 -8
  34. package/dist/{create-BxCsAdqc.mjs → create-DbHIjWio.mjs} +5 -5
  35. package/dist/{create-BpizGzgQ.mjs → create-VA58AF6A.mjs} +5 -5
  36. package/dist/{create-branch-CP1Y4_El.mjs → create-branch-BtqOfSRb.mjs} +4 -4
  37. package/dist/{create-acWKw4Y1.mjs → create-ldvT5L0W.mjs} +6 -6
  38. package/dist/{create-DutkaD7P.mjs → create-q2QqkwEN.mjs} +7 -7
  39. package/dist/{csv-CZyYi0vi.mjs → csv-C3O1wTQ8.mjs} +5 -5
  40. package/dist/{current-task-BR4koo9z.mjs → current-task-CZsZPe0o.mjs} +4 -4
  41. package/dist/{dashboard-ARgJfamb.mjs → dashboard-kb1oz7Z3.mjs} +8 -8
  42. package/dist/{db-dbnxMPSR.mjs → db-CHnqeJCo.mjs} +6 -6
  43. package/dist/{delete-BpL3vaaT.mjs → delete-BmT5C6eK.mjs} +5 -5
  44. package/dist/{delete-DCDFLHFa.mjs → delete-DgI03U43.mjs} +5 -5
  45. package/dist/{delete-P2Qlsr_s.mjs → delete-Dkfu4e5K.mjs} +5 -5
  46. package/dist/{delete-C5DqDwev.mjs → delete-JeRzVISE.mjs} +5 -5
  47. package/dist/{delete-ea_ns1uM.mjs → delete-cF97pfFX.mjs} +5 -5
  48. package/dist/{delete-runtime-DdBn6poA.mjs → delete-runtime-DiqKOEqi.mjs} +2 -2
  49. package/dist/{delete-table-tM048btr.mjs → delete-table-dnQs_Twm.mjs} +5 -5
  50. package/dist/{dependencies-DdOTClO2.mjs → dependencies-BsMwFSxP.mjs} +4 -4
  51. package/dist/{dirty-CEQYmhNF.mjs → dirty-CN6sGKX3.mjs} +4 -4
  52. package/dist/{document-DR1FLOn9.mjs → document-Y_DZNi4D.mjs} +5 -5
  53. package/dist/{eid-CtKGjAkz.mjs → eid-60sCZhQV.mjs} +4 -4
  54. package/dist/{events-C26DZ6yZ.mjs → events-CSZEAgs0.mjs} +4 -4
  55. package/dist/{export-CippuWZJ.mjs → export-CAxUJer6.mjs} +8 -5
  56. package/dist/{field-CXDndCbB.mjs → field-DAB2gImv.mjs} +4 -4
  57. package/dist/{fields-Xm_HVNcX.mjs → fields-CLWtUlpR.mjs} +3 -3
  58. package/dist/{get-DTkvGu_J.mjs → get-B22wjDxr.mjs} +3 -3
  59. package/dist/{get-B90bXbpw.mjs → get-BIHtWl2x.mjs} +4 -4
  60. package/dist/{get-BQz45IBF.mjs → get-BNBRMNtC.mjs} +3 -3
  61. package/dist/{get-B0cq1uGy.mjs → get-B_EinsrO.mjs} +4 -4
  62. package/dist/{get-CjZWjRa5.mjs → get-B_QKP1vR.mjs} +4 -4
  63. package/dist/{get-D5crrFSf.mjs → get-CKnHNxak.mjs} +3 -3
  64. package/dist/{get-Bj66bcuU.mjs → get-CRXEqpar.mjs} +4 -4
  65. package/dist/{get-BrKqMM1d.mjs → get-Ca30K5_W.mjs} +4 -4
  66. package/dist/{get-Ihx_XaaI.mjs → get-CaosV7j8.mjs} +3 -3
  67. package/dist/{get-CwGqARAf.mjs → get-Csa7Dz36.mjs} +3 -3
  68. package/dist/{get-BQBu2c94.mjs → get-Ct5TnofS.mjs} +3 -3
  69. package/dist/{get-z0BKkiRX.mjs → get-DTjeTNGb.mjs} +4 -4
  70. package/dist/{get-BSfKWZNJ.mjs → get-DU8V-7S2.mjs} +4 -4
  71. package/dist/{get-DYuJVlP-.mjs → get-DxAx-2C0.mjs} +4 -4
  72. package/dist/{get-FIE88hj9.mjs → get-H3X5e5-Y.mjs} +3 -3
  73. package/dist/{get-DX2fp6BB.mjs → get-L8c_h5EP.mjs} +3 -3
  74. package/dist/{get-3O7hv4zv.mjs → get-fGOQA0GF.mjs} +3 -3
  75. package/dist/{get-run-lVwhQVFx.mjs → get-run-DqwPQRMJ.mjs} +4 -4
  76. package/dist/git-sync-BhhdNjq5.mjs +31 -0
  77. package/dist/{has-remote-changes-DHrYSnTg.mjs → has-remote-changes-D0ZIBHSk.mjs} +4 -4
  78. package/dist/{import-BU40xXSF.mjs → import-BcIcDPl9.mjs} +6 -6
  79. package/dist/{input-BGyHn0Kr.mjs → input-D2-H-QKX.mjs} +1 -1
  80. package/dist/{is-dirty-BPluqPPP.mjs → is-dirty-B87YMLV2.mjs} +3 -3
  81. package/dist/is-dirty-CXTS25Tk.mjs +8 -0
  82. package/dist/{items-BZpYkImP.mjs → items-DrP1b4Qj.mjs} +4 -4
  83. package/dist/{key-B8UAsQmB.mjs → key-GP1gxZZD.mjs} +1 -1
  84. package/dist/{library-BGWDIfEM.mjs → library-bUBWlweP.mjs} +4 -4
  85. package/dist/{list-Ov6bYzT9.mjs → list-B-_PTqKw.mjs} +3 -3
  86. package/dist/{list-M_1sdYNH.mjs → list-B8212eUr.mjs} +3 -3
  87. package/dist/{list-Be8xMtS3.mjs → list-B8zgT05M.mjs} +3 -3
  88. package/dist/{list-CoqHnusK.mjs → list-BhCahBEO.mjs} +3 -3
  89. package/dist/{list-CjBPVJqd.mjs → list-CWQYaCp8.mjs} +3 -3
  90. package/dist/{list-BCeZlfpQ.mjs → list-Cbhx7N_t.mjs} +3 -3
  91. package/dist/{list-B7Ihu6XI.mjs → list-CoXeBm66.mjs} +3 -3
  92. package/dist/{list-CvaoHnl-.mjs → list-D1pHJX7w.mjs} +3 -3
  93. package/dist/{list-Bct00qku.mjs → list-DCl7zHCp.mjs} +2 -2
  94. package/dist/{list-DmopauvJ.mjs → list-DhT42e0q.mjs} +2 -2
  95. package/dist/{list-wxIVl45_.mjs → list-F_hMRbsa.mjs} +3 -3
  96. package/dist/{list-sn9M7QQX.mjs → list-GeqRHx8g.mjs} +3 -3
  97. package/dist/{list-SfpASSFx.mjs → list-MPePXEWe.mjs} +3 -3
  98. package/dist/{list-DamRE5Ds.mjs → list-TJjExx6e.mjs} +3 -3
  99. package/dist/{list-B037kJtH.mjs → list-TQghfc-u.mjs} +3 -3
  100. package/dist/{list-fPfgG0PY.mjs → list-TibX1b8i.mjs} +3 -3
  101. package/dist/{login-CRlmR4op.mjs → login-C5Ug3BVC.mjs} +19 -59
  102. package/dist/{logout-DSZEUxSQ.mjs → logout-B_N1N2DV.mjs} +4 -4
  103. package/dist/{measure-Ka0n3426.mjs → measure-D9rKeA6Z.mjs} +5 -5
  104. package/dist/{parameter-values-CwW8Xes7.mjs → parameter-values-ZXKECrJk.mjs} +3 -3
  105. package/dist/{parse-enum-ooCsJWn6.mjs → parse-enum-D5h-JePs.mjs} +1 -1
  106. package/dist/parse-id-ySsF4nA3.mjs +12 -0
  107. package/dist/{parse-ref-j4lxaQmd.mjs → parse-ref-Ds8VxdKb.mjs} +1 -1
  108. package/dist/{path-CVmg-bmf.mjs → path-C6ucgeYs.mjs} +3 -3
  109. package/dist/{poll-CuTlWBwI.mjs → poll-CgzD9_RH.mjs} +2 -2
  110. package/dist/{poll-task-DhsYs8Hx.mjs → poll-task-DF9xJl13.mjs} +2 -2
  111. package/dist/{preflight-D3VgjEg7.mjs → preflight-Co2grgX_.mjs} +2 -2
  112. package/dist/{process-7c8BcQEi.mjs → process-jjR_DX5G.mjs} +1 -1
  113. package/dist/{prompt-jQnNKtlx.mjs → prompt-BSqji7Fo.mjs} +1 -1
  114. package/dist/{publish-DFTCsjHU.mjs → publish-F-QbufXr.mjs} +8 -8
  115. package/dist/{query-CPq-dhFV.mjs → query-DGBzATpV.mjs} +7 -7
  116. package/dist/{query-Dfx69iJ4.mjs → query-DX4r0-uz.mjs} +4 -4
  117. package/dist/{query-result-Cg7odyR_.mjs → query-result-D5J3Dlpn.mjs} +1 -1
  118. package/dist/{remove-collection-DUAMhx5L.mjs → remove-collection-C-msSyas.mjs} +6 -6
  119. package/dist/{replace-DZWd6avZ.mjs → replace-xlQv9yl_.mjs} +5 -5
  120. package/dist/{requests-DYrDe-D0.mjs → requests-COuEPJxE.mjs} +2 -2
  121. package/dist/{rescan-values-DZSnEFA0.mjs → rescan-values-BC2SVtY6.mjs} +3 -3
  122. package/dist/{run-ryZ4sXK5.mjs → run-Cg6k3kHo.mjs} +6 -6
  123. package/dist/{run-B2b3Bjmv.mjs → run-opQkYIaT.mjs} +3 -3
  124. package/dist/{runs-F82HVSie.mjs → runs-Cbqm1HYG.mjs} +4 -4
  125. package/dist/{runtime-C6ASrgVA.mjs → runtime-MGH96fhp.mjs} +1056 -1092
  126. package/dist/{schema-tables-CCOKb715.mjs → schema-tables-8FjtkFIt.mjs} +3 -3
  127. package/dist/{schemas-LtVrNECH.mjs → schemas-L9kMsEJL.mjs} +3 -3
  128. package/dist/{search-9GSZHgJQ.mjs → search-Csbb-u-_.mjs} +3 -3
  129. package/dist/{segment-C40bORNZ.mjs → segment-DCeafJwX.mjs} +5 -5
  130. package/dist/{selectors-B2nDmrIV.mjs → selectors-D34gXjQa.mjs} +3 -3
  131. package/dist/{set-C57KDMGM.mjs → set-CfwncOI_.mjs} +6 -6
  132. package/dist/{set-active-BDHGHtj2.mjs → set-active-gP4mjVDY.mjs} +3 -3
  133. package/dist/{setting-zrJwy48C.mjs → setting-D5Y9sJha.mjs} +3 -3
  134. package/dist/{setup-Doq8atTG.mjs → setup-D9HNfS7W.mjs} +4 -4
  135. package/dist/{skills-yuzH_o8s.mjs → skills-DvSQOPWg.mjs} +3 -3
  136. package/dist/{skills-y-KsUqT9.mjs → skills-aRQfUvCq.mjs} +1 -1
  137. package/dist/{snippet-ScFM8re8.mjs → snippet-CwRiMCfE.mjs} +5 -5
  138. package/dist/{stash-D_u6z4q6.mjs → stash-C_k1uZlf.mjs} +6 -6
  139. package/dist/{status-CDPhDX5I.mjs → status-BsEPyknG.mjs} +6 -6
  140. package/dist/{status--Dm2Jv6k.mjs → status-D1vtL5eW.mjs} +3 -3
  141. package/dist/{summary-C9a2cBTE.mjs → summary-h20AjhcO.mjs} +3 -3
  142. package/dist/{sync-schema-CDIWNCGI.mjs → sync-schema-D67cYLhd.mjs} +5 -5
  143. package/dist/{sync-scope-DW2QpGwv.mjs → sync-scope-CKx6xeF6.mjs} +3 -3
  144. package/dist/{table-BKehBm_E.mjs → table-CmKFWPvJ.mjs} +4 -4
  145. package/dist/{timeline-n3Nw9Egt.mjs → timeline-1ZphX3zj.mjs} +7 -7
  146. package/dist/{timeline-event-CLWMxvE0.mjs → timeline-event-C6aKZ4EO.mjs} +5 -5
  147. package/dist/transform-CvsBOTqB.mjs +31 -0
  148. package/dist/transform-job-D_8Kp772.mjs +25 -0
  149. package/dist/{transform-tag-Bkyasy_s.mjs → transform-tag-DhDnvbmq.mjs} +4 -4
  150. package/dist/{transforms-w2a5qsjJ.mjs → transforms-BQkmsPUR.mjs} +4 -4
  151. package/dist/{tree-JZC6vD9q.mjs → tree-CtufTBZY.mjs} +2 -2
  152. package/dist/{unpublish-BsfIH46y.mjs → unpublish-CnLXPYR8.mjs} +4 -4
  153. package/dist/{update-Cg09lBb5.mjs → update-BC-MLtiG.mjs} +9 -9
  154. package/dist/{update-B8hn6VxO.mjs → update-BZxLyBVm.mjs} +8 -8
  155. package/dist/{update-DSlSr7Ky.mjs → update-C4P_YtGW.mjs} +6 -6
  156. package/dist/{update-BSNK36fk.mjs → update-CE-Z6E8V.mjs} +7 -7
  157. package/dist/{update-D01S8hnw.mjs → update-CqQj32ol.mjs} +6 -6
  158. package/dist/{update-BTFj6WHo.mjs → update-D6blsNGY.mjs} +6 -6
  159. package/dist/{update-CXKWHOIN.mjs → update-DcYwxb-R.mjs} +5 -5
  160. package/dist/{update-bFNKpay8.mjs → update-DmQJqGvX.mjs} +6 -6
  161. package/dist/{update-WLb9099y.mjs → update-DshCe-bl.mjs} +8 -8
  162. package/dist/{update-BfIGjAVA.mjs → update-Dt9-3Tqf.mjs} +5 -5
  163. package/dist/{update-DKQjMsuE.mjs → update-QNuvGuS3.mjs} +5 -5
  164. package/dist/{update-C1_aIL6X.mjs → update-bz-FKwuR.mjs} +7 -7
  165. package/dist/{update-QaBVvlz9.mjs → update-dJ2mlCXm.mjs} +6 -6
  166. package/dist/{update-dashcard-CKZC7scy.mjs → update-dashcard-CQP-qd6a.mjs} +5 -5
  167. package/dist/{upgrade-DkK1ZbEY.mjs → upgrade--_g3bacj.mjs} +4 -4
  168. package/dist/{upload-DOMoaR9f.mjs → upload-BOFc_eZD.mjs} +3 -3
  169. package/dist/{uuid-DDbLKnbe.mjs → uuid-DBKkosBq.mjs} +2 -2
  170. package/dist/{validate-DqQ7DQnP.mjs → validate-Bpqt3ntH.mjs} +1 -1
  171. package/dist/{validate-query-BYG7lyaY.mjs → validate-query-tECK019A.mjs} +2 -2
  172. package/dist/{values-Bc99Kkuv.mjs → values-BAhMnVh6.mjs} +3 -3
  173. package/dist/{verify-WvMbaT8W.mjs → verify-RLb2DoOX.mjs} +2 -2
  174. package/dist/{wait-DmgEPnHW.mjs → wait-BJ_87Yz0.mjs} +5 -5
  175. package/dist/{wait-flags-BpzyrpAL.mjs → wait-flags-DEn-3mjb.mjs} +2 -2
  176. package/package.json +1 -1
  177. package/dist/add-collection-CCpC-GUz.mjs +0 -9
  178. package/dist/create-BP8EIWrP.mjs +0 -161
  179. package/dist/destroy-B51EPvOJ.mjs +0 -168
  180. package/dist/export-Cy2DFtR2.mjs +0 -10
  181. package/dist/get-BdNC8WM8.mjs +0 -38
  182. package/dist/git-sync-CmB4YBmS.mjs +0 -31
  183. package/dist/is-dirty-DOy1TRcf.mjs +0 -8
  184. package/dist/list-lsPeumLP.mjs +0 -34
  185. package/dist/parse-id-xS1tWJAq.mjs +0 -18
  186. package/dist/profile-name-CZ1-Vtrh.mjs +0 -7
  187. package/dist/transform-CrOOqKen.mjs +0 -31
  188. package/dist/transform-job-J-E0Mec7.mjs +0 -25
  189. package/dist/workspace-BgH_4xFO.mjs +0 -75
  190. package/dist/workspace-LFtHxcw9.mjs +0 -19
  191. /package/dist/{measure-C3G1srWb.mjs → measure-ByY4U3ZK.mjs} +0 -0
  192. /package/dist/{resolve-BTZuO3Yq.mjs → resolve-8iT-dXgX.mjs} +0 -0
  193. /package/dist/{revision-message-flag-CHrJgFFx.mjs → revision-message-flag-vt_V8ACy.mjs} +0 -0
  194. /package/dist/{segment-CxRYEXeO.mjs → segment-eeGhLo7_.mjs} +0 -0
  195. /package/dist/{setting-m46MUtW5.mjs → setting-DADuiF5W.mjs} +0 -0
  196. /package/dist/{snippet-C8PVaPY9.mjs → snippet-CdjEhVCT.mjs} +0 -0
  197. /package/dist/{timeline-DEaiuB5V.mjs → timeline-2ShuGr4f.mjs} +0 -0
  198. /package/dist/{transform-DP6J2ber.mjs → transform-DNSMm1dV.mjs} +0 -0
  199. /package/dist/{transform-job-B5x8aYfV.mjs → transform-job-CvE0MBBo.mjs} +0 -0
  200. /package/dist/{transform-tag-BRwfWeHf.mjs → transform-tag-xdxjlDcD.mjs} +0 -0
package/README.md CHANGED
@@ -52,19 +52,16 @@ Against a server older than v62 the CLI detects the missing OAuth support and fa
52
52
 
53
53
  On success the server is probed once — the rendered output shows the user, role (`Admin`/`User`), and Metabase version, and the same values are cached in `<configDir>/profiles.json` so later commands skip re-probing. Failure of either the auth probe (`/api/user/current`) or the server probe (`/api/session/properties`) rejects the login; an existing profile keeps its last-known-good credential and gains a `lastFailure` entry.
54
54
 
55
- | Flag | Description |
56
- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
57
- | `--url <url>` | Metabase URL, including any subpath if the instance is hosted under one (`https://my.org.com/metabase`). Falls back to `MB_URL`, then prompts. |
58
- | `--api-key <value>` | API key. Skips the browser flow. Visible in shell history — pipe on stdin instead. |
59
- | `--client-id <id>` | Pre-registered OAuth client id (only needed when dynamic client registration is disabled on the server). |
60
- | `--profile <name>`, `-p` | Profile to write to (default: `default`). |
61
- | `--skip-verify` | Save without contacting the server (no probe, no cache). |
62
- | `--workspace` | Request a workspace-manager-scoped login: the stored token can only manage workspaces — every other endpoint 403s server-side. Browser OAuth only (an API key cannot carry a scope), so it requires a TTY and refuses `--api-key`/`MB_API_KEY`. Requires a server advertising the `mb:workspace-manager` scope. |
55
+ | Flag | Description |
56
+ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
57
+ | `--url <url>` | Metabase URL, including any subpath if the instance is hosted under one (`https://my.org.com/metabase`). Falls back to `MB_URL`, then prompts. |
58
+ | `--api-key <value>` | API key. Skips the browser flow. Visible in shell history — pipe on stdin instead. |
59
+ | `--client-id <id>` | Pre-registered OAuth client id (only needed when dynamic client registration is disabled on the server). |
60
+ | `--profile <name>`, `-p` | Profile to write to (default: `default`). |
61
+ | `--skip-verify` | Save without contacting the server (no probe, no cache). |
63
62
 
64
63
  Non-interactive (non-TTY) login requires an API key; resolution order: `--api-key` → piped stdin → `MB_API_KEY` (first non-empty wins). Without one, non-interactive login fails rather than prompting.
65
64
 
66
- A workspace-scoped profile that hits a 403 on a content command gets an error naming the scope and the fix (re-login without `--workspace`, or use a workspace profile) instead of a bare "Forbidden."
67
-
68
65
  ```sh
69
66
  mb auth login # interactive: browser or API key
70
67
  echo "$MB_KEY" | mb auth login --url https://m.example.com
@@ -1490,64 +1487,6 @@ mb git-sync remove-collection 12
1490
1487
  mb git-sync remove-collection 12 --json --profile prod
1491
1488
  ```
1492
1489
 
1493
- ## Workspaces
1494
-
1495
- Lifecycle for EE workspaces via `/api/ee/workspace-manager` (Metabase v62+, `workspaces` premium feature). A workspace attaches databases and provisions warehouse isolation — a temporary schema + user per database — so work runs against real data without touching prod schemas. Alias: `mb ws`.
1496
-
1497
- ### `mb workspace list`
1498
-
1499
- ```sh
1500
- mb workspace list
1501
- mb workspace list --json
1502
- ```
1503
-
1504
- ### `mb workspace get <id>`
1505
-
1506
- Includes per-database provisioning status (`unprovisioned` | `provisioning` | `provisioned` | `deprovisioning`), input schemas, and the isolated output namespace.
1507
-
1508
- ```sh
1509
- mb workspace get 1 --json
1510
- ```
1511
-
1512
- ### `mb workspace create`
1513
-
1514
- Creates the workspace and provisions isolation for each database (blocking). Each database must be eligible for workspaces (driver support + the `database-enable-workspaces` database setting).
1515
-
1516
- ```sh
1517
- mb workspace create --name ws-reports --database-ids 1
1518
- mb workspace create --name ws-etl --database-ids 1,2 --json
1519
- mb workspace create --name transform-work --database-ids 1 --spawn
1520
- ```
1521
-
1522
- | Flag | Description |
1523
- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
1524
- | `--name <name>` | Workspace name. |
1525
- | `--database-ids <ids>` | Database ids to attach, comma separated. |
1526
- | `--spawn` | Also spawn a workspace Metabase; the returned credential is saved to the `ws-<id>` profile (never printed) and made the default. |
1527
- | `--keep-existing-auth` | Proceed despite broader same-server credentials in the profile store. Interactive only — refused in non-interactive contexts. |
1528
-
1529
- Before creating, the profile store is swept for broader credentials against the same server: any API key profile, or any OAuth profile wider than `mb:workspace-manager`. Interactive runs offer to revoke the offenders (local clear + best-effort server-side token revocation; API keys must additionally be deleted in Admin settings); non-interactive runs hard-refuse so an agent can't proceed while a full-power credential is in reach.
1530
-
1531
- With `--spawn` the parent asks its instance manager for a workspace Metabase (`spawn_instance: true`) and the CLI consumes the returned `url` + `api_key`: the credential is written straight to the profile store as `ws-<id>` — never to stdout, `--json`, or an agent transcript — and that profile becomes the default, so bare `mb` targets the new workspace from then on (explicit `--profile`/`MB_PROFILE` still win). Destroying the workspace (or `mb auth logout` on the profile) unhooks the default again. Because an exported `MB_API_KEY` outranks stored profiles, `--spawn` refuses to run while it is set — it would silently shadow the profile it is about to install.
1532
-
1533
- ### `mb workspace destroy <id>`
1534
-
1535
- Destroy is the only irreversible moment, so it closes the work-loss window first: when a local profile named `ws-<id>` exists, the child is checked for unsynced work (`remote-sync is-dirty`) and a dirty workspace is auto-exported to its target branch before teardown. `--discard` skips the check and the export; a machine without the workspace's profile warns and proceeds (destroy is the billing-stop lever — ops cleanup must work from anywhere), while a profile whose child can't be reached refuses without `--discard`.
1536
-
1537
- Then each provisioned database's warehouse isolation is torn down and the workspace removed; the matching local profile is dropped on success. Prompts unless `--yes`. Refuses (409) while any database is still provisioning/deprovisioning unless `--ignore-pending`, which removes the records and leaves those warehouse objects behind; unreachable-warehouse leftovers are reported as `orphaned_resources`.
1538
-
1539
- ```sh
1540
- mb workspace destroy 1 --yes
1541
- mb workspace destroy 1 --yes --discard
1542
- mb workspace destroy 1 --yes --ignore-pending
1543
- ```
1544
-
1545
- | Flag | Description |
1546
- | ------------------ | ----------------------------------------------------------------------- |
1547
- | `--yes` | Skip confirmation. |
1548
- | `--discard` | Destroy without exporting unsynced work (skips the is-dirty check). |
1549
- | `--ignore-pending` | Remove workspace records even while databases are mid-(de)provisioning. |
1550
-
1551
1490
  ## Instance setup
1552
1491
 
1553
1492
  Bootstrapping a fresh, not-yet-configured Metabase instance.
@@ -1748,7 +1687,7 @@ Exit codes: `0` success, `2` `ConfigError` (missing name, unknown name, `MB_SKIL
1748
1687
  | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1749
1688
  | `MB_URL` | Default URL for `auth login` and config resolution. |
1750
1689
  | `MB_API_KEY` | Default API key (makes `auth login` non-interactive, skipping the browser flow; not stored). |
1751
- | `MB_PROFILE` | Default profile when `--profile` is omitted. Falls back to the stored default pointer (set by `workspace create --spawn`), then `default`. |
1690
+ | `MB_PROFILE` | Default profile when `--profile` is omitted. Falls back to `default`. |
1752
1691
  | `MB_VERBOSE` | When set to `1`, prints structured developer-detail JSON to stderr on failure. |
1753
1692
  | `MB_CLI_SKIP_PREFLIGHT` | When set to `1`, bypasses the per-command server version / token-feature preflight check. Escape hatch for patched Metabase builds; can mask real compatibility problems. |
1754
1693
  | `MB_CLI_DISABLE_KEYRING` | When set to `1`, skips the OS keychain and stores credentials as plaintext in the profiles file. |
@@ -1,7 +1,7 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
2
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
3
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
4
- import { REMOTE_SYNC_PATHS } from "./poll-task-DhsYs8Hx.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
3
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
4
+ import { REMOTE_SYNC_PATHS } from "./poll-task-DF9xJl13.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/commands/git-sync/add-collection.ts
@@ -0,0 +1,9 @@
1
+ import "./capabilities-CSjeWyLV.mjs";
2
+ import "./command-augment-D9pI9Vbh.mjs";
3
+ import "./runtime-MGH96fhp.mjs";
4
+ import "./parse-id-ySsF4nA3.mjs";
5
+ import "./poll-CgzD9_RH.mjs";
6
+ import "./poll-task-DF9xJl13.mjs";
7
+ import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-BZAVH5Wk.mjs";
8
+
9
+ export { add_collection_default as default };
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import "./input-BGyHn0Kr.mjs";
5
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
6
- import { UploadUpdateResult, readCsvFile, requireUploadFilePath, updateTableFromCsv, uploadUpdateResultView } from "./requests-DYrDe-D0.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import "./input-D2-H-QKX.mjs";
5
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
6
+ import { UploadUpdateResult, readCsvFile, requireUploadFilePath, updateTableFromCsv, uploadUpdateResultView } from "./requests-COuEPJxE.mjs";
7
7
 
8
8
  //#region src/commands/upload/append.ts
9
9
  var append_default = defineMetabaseCommand({
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
5
- import { Snippet, snippetView } from "./snippet-C8PVaPY9.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
+ import { Snippet, snippetView } from "./snippet-CdjEhVCT.mjs";
6
6
 
7
7
  //#region src/commands/snippet/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,7 +1,7 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
5
  import { Document, documentView } from "./document-D4zB-5a0.mjs";
6
6
 
7
7
  //#region src/commands/document/archive.ts
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
5
- import { Measure, measureView } from "./measure-C3G1srWb.mjs";
6
- import { revisionMessageFlag } from "./revision-message-flag-CHrJgFFx.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
+ import { Measure, measureView } from "./measure-ByY4U3ZK.mjs";
6
+ import { revisionMessageFlag } from "./revision-message-flag-vt_V8ACy.mjs";
7
7
 
8
8
  //#region src/commands/measure/archive.ts
9
9
  var archive_default = defineMetabaseCommand({
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
5
- import { Timeline, timelineView } from "./timeline-DEaiuB5V.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
+ import { Timeline, timelineView } from "./timeline-2ShuGr4f.mjs";
6
6
 
7
7
  //#region src/commands/timeline/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
4
  import "./embedding-CKdw8q7p.mjs";
5
5
  import "./parameter-BZ6y-Gfs.mjs";
6
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
6
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
7
7
  import { Dashboard, dashboardView } from "./dashboard-BLihjDXg.mjs";
8
8
 
9
9
  //#region src/commands/dashboard/archive.ts
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
5
- import { revisionMessageFlag } from "./revision-message-flag-CHrJgFFx.mjs";
6
- import { Segment, segmentView } from "./segment-CxRYEXeO.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
+ import { revisionMessageFlag } from "./revision-message-flag-vt_V8ACy.mjs";
6
+ import { Segment, segmentView } from "./segment-eeGhLo7_.mjs";
7
7
 
8
8
  //#region src/commands/segment/archive.ts
9
9
  var archive_default = defineMetabaseCommand({
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
5
- import { TimelineEvent, timelineEventView } from "./timeline-DEaiuB5V.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
+ import { TimelineEvent, timelineEventView } from "./timeline-2ShuGr4f.mjs";
6
6
 
7
7
  //#region src/commands/timeline-event/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,11 +1,11 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
4
  import "./embedding-CKdw8q7p.mjs";
5
5
  import "./field-DsXTeqBy.mjs";
6
6
  import "./parameter-BZ6y-Gfs.mjs";
7
7
  import { Card, cardView } from "./card-B8G5jQQT.mjs";
8
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
8
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
9
9
 
10
10
  //#region src/commands/card/archive.ts
11
11
  var archive_default = defineMetabaseCommand({
@@ -1,7 +1,7 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
5
  import { Collection, collectionView } from "./collection-C52Ndi_O.mjs";
6
6
 
7
7
  //#region src/commands/collection/archive.ts
@@ -11,10 +11,10 @@ var auth_default = defineCommandGroup({
11
11
  purpose: "authentication and named profiles"
12
12
  }],
13
13
  subCommands: {
14
- login: () => import("./login-CRlmR4op.mjs").then((m) => m.default),
15
- status: () => import("./status--Dm2Jv6k.mjs").then((m) => m.default),
16
- list: () => import("./list-wxIVl45_.mjs").then((m) => m.default),
17
- logout: () => import("./logout-DSZEUxSQ.mjs").then((m) => m.default)
14
+ login: () => import("./login-C5Ug3BVC.mjs").then((m) => m.default),
15
+ status: () => import("./status-D1vtL5eW.mjs").then((m) => m.default),
16
+ list: () => import("./list-F_hMRbsa.mjs").then((m) => m.default),
17
+ logout: () => import("./logout-B_N1N2DV.mjs").then((m) => m.default)
18
18
  }
19
19
  });
20
20
 
@@ -1,6 +1,6 @@
1
- import { ConfigError } from "./capabilities-CiaAfUgX.mjs";
2
- import { parseJson } from "./runtime-C6ASrgVA.mjs";
3
- import { DEFAULT_FLAG_NAME, readInput } from "./input-BGyHn0Kr.mjs";
1
+ import { ConfigError } from "./capabilities-CSjeWyLV.mjs";
2
+ import { parseJson } from "./runtime-MGH96fhp.mjs";
3
+ import { DEFAULT_FLAG_NAME, readInput } from "./input-D2-H-QKX.mjs";
4
4
 
5
5
  //#region src/runtime/body.ts
6
6
  async function readBody(sources, schema) {
@@ -1,8 +1,8 @@
1
- import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import "./poll-CuTlWBwI.mjs";
5
- import { REMOTE_SYNC_PATHS } from "./poll-task-DhsYs8Hx.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import "./poll-CgzD9_RH.mjs";
5
+ import { REMOTE_SYNC_PATHS } from "./poll-task-DF9xJl13.mjs";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/commands/git-sync/branches.ts
@@ -1,7 +1,7 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/commands/transform/cancel.ts
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import "./poll-CuTlWBwI.mjs";
5
- import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-DhsYs8Hx.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import "./poll-CgzD9_RH.mjs";
5
+ import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-DF9xJl13.mjs";
6
6
 
7
7
  //#region src/commands/git-sync/cancel-task.ts
8
8
  var cancel_task_default = defineMetabaseCommand({
@@ -266,7 +266,7 @@ function errorMessage(value) {
266
266
  //#endregion
267
267
  //#region package.json
268
268
  var name = "@metabase/cli";
269
- var version = "0.2.1-alpha.bcm-ghy-4075-spawn-default-profile.eb120d1";
269
+ var version = "0.2.1-alpha.trust-system-ca.541e4e0";
270
270
  var description = "Metabase CLI";
271
271
  var license = "AGPL-3.0";
272
272
  var repository = {
@@ -13,12 +13,12 @@ var card_default = defineCommandGroup({
13
13
  purpose: "choose display and visualization_settings"
14
14
  }],
15
15
  subCommands: {
16
- list: () => import("./list-Be8xMtS3.mjs").then((mod) => mod.default),
17
- get: () => import("./get-DTkvGu_J.mjs").then((mod) => mod.default),
18
- query: () => import("./query-Dfx69iJ4.mjs").then((mod) => mod.default),
19
- create: () => import("./create-VrSowEbj.mjs").then((mod) => mod.default),
20
- update: () => import("./update-C1_aIL6X.mjs").then((mod) => mod.default),
21
- archive: () => import("./archive-BmhehbS0.mjs").then((mod) => mod.default)
16
+ list: () => import("./list-B8zgT05M.mjs").then((mod) => mod.default),
17
+ get: () => import("./get-B22wjDxr.mjs").then((mod) => mod.default),
18
+ query: () => import("./query-DX4r0-uz.mjs").then((mod) => mod.default),
19
+ create: () => import("./create-CvptjYVb.mjs").then((mod) => mod.default),
20
+ update: () => import("./update-bz-FKwuR.mjs").then((mod) => mod.default),
21
+ archive: () => import("./archive-DfbI8DRB.mjs").then((mod) => mod.default)
22
22
  }
23
23
  });
24
24
 
@@ -1,9 +1,9 @@
1
- import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
4
  import "./embedding-CKdw8q7p.mjs";
5
5
  import "./parameter-BZ6y-Gfs.mjs";
6
- import { parseId } from "./parse-id-xS1tWJAq.mjs";
6
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
7
7
  import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-BLihjDXg.mjs";
8
8
 
9
9
  //#region src/commands/dashboard/cards.ts
package/dist/cli.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { Capabilities, ConfigError, connectionFlags, flagConsumesValue, jsonLine, normalizeFlag, outputFlags, package_default, profileFlag, reportError, resolveCitty, toAliasArray } from "./capabilities-CiaAfUgX.mjs";
2
+ import { Capabilities, ConfigError, connectionFlags, flagConsumesValue, jsonLine, normalizeFlag, outputFlags, package_default, profileFlag, reportError, resolveCitty, toAliasArray } from "./capabilities-CSjeWyLV.mjs";
3
3
  import { getMetabaseAugment, setMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
4
4
  import { defineCommand, renderUsage, runMain } from "citty";
5
5
  import { z } from "zod";
6
+ import tls from "node:tls";
6
7
 
7
8
  //#region src/commands/global-flags.ts
8
9
  const ARGUMENT_SEPARATOR = "--";
@@ -50,6 +51,17 @@ function hoistGlobalFlags(rawArgs) {
50
51
  return [...rawArgs.slice(index), ...leading];
51
52
  }
52
53
 
54
+ //#endregion
55
+ //#region src/core/http/system-ca.ts
56
+ function trustSystemCa() {
57
+ const canReadSystemStore = typeof tls.getCACertificates === "function";
58
+ const canReplaceDefaults = typeof tls.setDefaultCACertificates === "function";
59
+ if (!canReadSystemStore || !canReplaceDefaults) return;
60
+ const systemCerts = tls.getCACertificates("system");
61
+ if (systemCerts.length === 0) return;
62
+ tls.setDefaultCACertificates([...tls.getCACertificates("default"), ...systemCerts]);
63
+ }
64
+
53
65
  //#endregion
54
66
  //#region src/main.ts
55
67
  const main = defineCommand({
@@ -59,34 +71,33 @@ const main = defineCommand({
59
71
  description: package_default.description
60
72
  },
61
73
  subCommands: {
62
- auth: () => import("./auth-DzCAiArV.mjs").then((mod) => mod.default),
63
- db: () => import("./db-dbnxMPSR.mjs").then((mod) => mod.default),
64
- table: () => import("./table-BKehBm_E.mjs").then((mod) => mod.default),
65
- field: () => import("./field-CXDndCbB.mjs").then((mod) => mod.default),
66
- upload: () => import("./upload-DOMoaR9f.mjs").then((mod) => mod.default),
67
- card: () => import("./card-BsfdXK0O.mjs").then((mod) => mod.default),
68
- dashboard: () => import("./dashboard-ARgJfamb.mjs").then((mod) => mod.default),
69
- collection: () => import("./collection-2h_by9Ue.mjs").then((mod) => mod.default),
70
- library: () => import("./library-BGWDIfEM.mjs").then((mod) => mod.default),
71
- document: () => import("./document-DR1FLOn9.mjs").then((mod) => mod.default),
72
- transform: () => import("./transform-CrOOqKen.mjs").then((mod) => mod.default),
73
- "transform-job": () => import("./transform-job-J-E0Mec7.mjs").then((mod) => mod.default),
74
- "transform-tag": () => import("./transform-tag-Bkyasy_s.mjs").then((mod) => mod.default),
75
- setting: () => import("./setting-zrJwy48C.mjs").then((mod) => mod.default),
76
- search: () => import("./search-9GSZHgJQ.mjs").then((mod) => mod.default),
77
- "git-sync": () => import("./git-sync-CmB4YBmS.mjs").then((mod) => mod.default),
78
- workspace: () => import("./workspace-LFtHxcw9.mjs").then((mod) => mod.default),
79
- setup: () => import("./setup-Doq8atTG.mjs").then((mod) => mod.default),
80
- snippet: () => import("./snippet-ScFM8re8.mjs").then((mod) => mod.default),
81
- segment: () => import("./segment-C40bORNZ.mjs").then((mod) => mod.default),
82
- measure: () => import("./measure-Ka0n3426.mjs").then((mod) => mod.default),
83
- timeline: () => import("./timeline-n3Nw9Egt.mjs").then((mod) => mod.default),
84
- "timeline-event": () => import("./timeline-event-CLWMxvE0.mjs").then((mod) => mod.default),
85
- eid: () => import("./eid-CtKGjAkz.mjs").then((mod) => mod.default),
86
- query: () => import("./query-CPq-dhFV.mjs").then((mod) => mod.default),
87
- uuid: () => import("./uuid-DDbLKnbe.mjs").then((mod) => mod.default),
88
- upgrade: () => import("./upgrade-DkK1ZbEY.mjs").then((mod) => mod.default),
89
- skills: () => import("./skills-yuzH_o8s.mjs").then((mod) => mod.default)
74
+ auth: () => import("./auth-XfuGXI2K.mjs").then((mod) => mod.default),
75
+ db: () => import("./db-CHnqeJCo.mjs").then((mod) => mod.default),
76
+ table: () => import("./table-CmKFWPvJ.mjs").then((mod) => mod.default),
77
+ field: () => import("./field-DAB2gImv.mjs").then((mod) => mod.default),
78
+ upload: () => import("./upload-BOFc_eZD.mjs").then((mod) => mod.default),
79
+ card: () => import("./card-B_kiDDil.mjs").then((mod) => mod.default),
80
+ dashboard: () => import("./dashboard-kb1oz7Z3.mjs").then((mod) => mod.default),
81
+ collection: () => import("./collection-DNzM3u7n.mjs").then((mod) => mod.default),
82
+ library: () => import("./library-bUBWlweP.mjs").then((mod) => mod.default),
83
+ document: () => import("./document-Y_DZNi4D.mjs").then((mod) => mod.default),
84
+ transform: () => import("./transform-CvsBOTqB.mjs").then((mod) => mod.default),
85
+ "transform-job": () => import("./transform-job-D_8Kp772.mjs").then((mod) => mod.default),
86
+ "transform-tag": () => import("./transform-tag-DhDnvbmq.mjs").then((mod) => mod.default),
87
+ setting: () => import("./setting-D5Y9sJha.mjs").then((mod) => mod.default),
88
+ search: () => import("./search-Csbb-u-_.mjs").then((mod) => mod.default),
89
+ "git-sync": () => import("./git-sync-BhhdNjq5.mjs").then((mod) => mod.default),
90
+ setup: () => import("./setup-D9HNfS7W.mjs").then((mod) => mod.default),
91
+ snippet: () => import("./snippet-CwRiMCfE.mjs").then((mod) => mod.default),
92
+ segment: () => import("./segment-DCeafJwX.mjs").then((mod) => mod.default),
93
+ measure: () => import("./measure-D9rKeA6Z.mjs").then((mod) => mod.default),
94
+ timeline: () => import("./timeline-1ZphX3zj.mjs").then((mod) => mod.default),
95
+ "timeline-event": () => import("./timeline-event-C6aKZ4EO.mjs").then((mod) => mod.default),
96
+ eid: () => import("./eid-60sCZhQV.mjs").then((mod) => mod.default),
97
+ query: () => import("./query-DGBzATpV.mjs").then((mod) => mod.default),
98
+ uuid: () => import("./uuid-DBKkosBq.mjs").then((mod) => mod.default),
99
+ upgrade: () => import("./upgrade--_g3bacj.mjs").then((mod) => mod.default),
100
+ skills: () => import("./skills-DvSQOPWg.mjs").then((mod) => mod.default)
90
101
  }
91
102
  });
92
103
  setMetabaseAugment(main, {
@@ -435,6 +446,7 @@ async function findSubCommand(subCommands, token) {
435
446
  const HELP_FLAGS = new Set(["--help", "-h"]);
436
447
  const JSON_HELP_FLAG = "--json";
437
448
  async function run() {
449
+ trustSystemCa();
438
450
  const rawArgs = hoistGlobalFlags(process.argv.slice(2));
439
451
  const wantsJsonHelp = rawArgs.includes(JSON_HELP_FLAG);
440
452
  const showUsageWithBreadcrumb = async (cmd, parent) => {
@@ -10,12 +10,12 @@ var collection_default = defineCommandGroup({
10
10
  purpose: "collection ref forms and the transforms namespace"
11
11
  }],
12
12
  subCommands: {
13
- list: () => import("./list-Ov6bYzT9.mjs").then((mod) => mod.default),
14
- get: () => import("./get-BQBu2c94.mjs").then((mod) => mod.default),
15
- items: () => import("./items-BZpYkImP.mjs").then((mod) => mod.default),
16
- tree: () => import("./tree-JZC6vD9q.mjs").then((mod) => mod.default),
17
- create: () => import("./create-CQ32FwVe.mjs").then((mod) => mod.default),
18
- archive: () => import("./archive-5inmbMDL.mjs").then((mod) => mod.default)
13
+ list: () => import("./list-B-_PTqKw.mjs").then((mod) => mod.default),
14
+ get: () => import("./get-Ct5TnofS.mjs").then((mod) => mod.default),
15
+ items: () => import("./items-DrP1b4Qj.mjs").then((mod) => mod.default),
16
+ tree: () => import("./tree-CtufTBZY.mjs").then((mod) => mod.default),
17
+ create: () => import("./create-C_fyIHZU.mjs").then((mod) => mod.default),
18
+ archive: () => import("./archive-op9pJRpg.mjs").then((mod) => mod.default)
19
19
  }
20
20
  });
21
21
 
@@ -1,5 +1,5 @@
1
- import { ConfigError } from "./capabilities-CiaAfUgX.mjs";
2
- import { HttpError } from "./runtime-C6ASrgVA.mjs";
1
+ import { ConfigError } from "./capabilities-CSjeWyLV.mjs";
2
+ import { HttpError } from "./runtime-MGH96fhp.mjs";
3
3
 
4
4
  //#region src/commands/transform/collection-namespace.ts
5
5
  const TRANSFORMS_NAMESPACE_HINT = "transforms can only be filed in a :transforms-namespace collection. Create one with `mb collection create --body '{\"name\":\"…\"}' --namespace transforms` and pass its id as collection_id, or omit collection_id to leave the transform uncollected.";
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
4
  import "./collection-C52Ndi_O.mjs";
5
5
  import "./listing-wFZuS5li.mjs";
6
- import { Library, createLibrary, libraryView } from "./resolve-BTZuO3Yq.mjs";
6
+ import { Library, createLibrary, libraryView } from "./resolve-8iT-dXgX.mjs";
7
7
 
8
8
  //#region src/commands/library/create.ts
9
9
  var create_default = defineMetabaseCommand({
@@ -1,10 +1,10 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import "./input-BGyHn0Kr.mjs";
5
- import { readBody } from "./body-5snfmiwR.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import "./input-D2-H-QKX.mjs";
5
+ import { readBody } from "./body-BW_CiL1d.mjs";
6
6
  import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
7
- import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-B5x8aYfV.mjs";
7
+ import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-CvE0MBBo.mjs";
8
8
 
9
9
  //#region src/commands/transform-job/create.ts
10
10
  var create_default = defineMetabaseCommand({
@@ -1,10 +1,10 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import "./input-BGyHn0Kr.mjs";
5
- import { readBody } from "./body-5snfmiwR.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import "./input-D2-H-QKX.mjs";
5
+ import { readBody } from "./body-BW_CiL1d.mjs";
6
6
  import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
7
- import { TransformTag, TransformTagCreateInput, transformTagView } from "./transform-tag-BRwfWeHf.mjs";
7
+ import { TransformTag, TransformTagCreateInput, transformTagView } from "./transform-tag-xdxjlDcD.mjs";
8
8
 
9
9
  //#region src/commands/transform-tag/create.ts
10
10
  var create_default = defineMetabaseCommand({
@@ -1,10 +1,10 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
4
- import "./input-BGyHn0Kr.mjs";
5
- import { readBody } from "./body-5snfmiwR.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import "./input-D2-H-QKX.mjs";
5
+ import { readBody } from "./body-BW_CiL1d.mjs";
6
6
  import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
7
- import { parseEnumFlag } from "./parse-enum-ooCsJWn6.mjs";
7
+ import { parseEnumFlag } from "./parse-enum-D5h-JePs.mjs";
8
8
  import { Collection, CollectionCreateInput, CollectionNamespace, collectionView } from "./collection-C52Ndi_O.mjs";
9
9
  import { COLLECTIONS_PATH } from "./listing-wFZuS5li.mjs";
10
10