@metabase/cli 0.2.0 → 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 (201) hide show
  1. package/README.md +153 -2
  2. package/dist/{add-collection-BTSGp4f9.mjs → add-collection-BZAVH5Wk.mjs} +4 -4
  3. package/dist/add-collection-DByJYvGO.mjs +9 -0
  4. package/dist/{append-DY1-O789.mjs → append-Cak5jykn.mjs} +5 -5
  5. package/dist/{archive-DOa1u1aJ.mjs → archive-BIEnBoE8.mjs} +4 -4
  6. package/dist/{archive-DCPw3df6.mjs → archive-BMbx6lt8.mjs} +4 -4
  7. package/dist/{archive-BOEEMrYL.mjs → archive-BVY_jD_g.mjs} +5 -5
  8. package/dist/archive-CPgWNCG3.mjs +38 -0
  9. package/dist/{archive-w6TX-zEk.mjs → archive-CaKhG58H.mjs} +4 -4
  10. package/dist/{archive-CJ9rElKn.mjs → archive-CjnCAM61.mjs} +5 -5
  11. package/dist/archive-CytCvQpn.mjs +38 -0
  12. package/dist/{archive-pHsa4dL0.mjs → archive-DfbI8DRB.mjs} +3 -3
  13. package/dist/{archive-CWtUzlHO.mjs → archive-op9pJRpg.mjs} +4 -4
  14. package/dist/{auth-BrQtY0pO.mjs → auth-XfuGXI2K.mjs} +4 -4
  15. package/dist/{body-C1_AaTS4.mjs → body-BW_CiL1d.mjs} +3 -3
  16. package/dist/{branches-BsBzaGIf.mjs → branches-gVRwKne4.mjs} +4 -4
  17. package/dist/{cancel-BNM0yyx-.mjs → cancel-CBOJSslz.mjs} +3 -3
  18. package/dist/{cancel-task-Bggzn4JL.mjs → cancel-task-Djancczz.mjs} +4 -4
  19. package/dist/{capabilities-DrDJo_ng.mjs → capabilities-CSjeWyLV.mjs} +1 -1
  20. package/dist/{card-DHCcmpgr.mjs → card-B_kiDDil.mjs} +6 -6
  21. package/dist/{cards-D0hvA13L.mjs → cards-23FtfL4S.mjs} +4 -4
  22. package/dist/cli.mjs +41 -26
  23. package/dist/{collection-CFoLPrY5.mjs → collection-C52Ndi_O.mjs} +4 -2
  24. package/dist/{collection-D0O9gp3S.mjs → collection-DNzM3u7n.mjs} +6 -6
  25. package/dist/{collection-namespace-DqPNrCdQ.mjs → collection-namespace-w1y5D0Uh.mjs} +2 -2
  26. package/dist/{create-Cii_utzV.mjs → create-BRK8TBzp.mjs} +5 -4
  27. package/dist/{create-DKuixGJ2.mjs → create-BkvdOecg.mjs} +5 -5
  28. package/dist/{create-E6L3WMqV.mjs → create-CGsTL5aE.mjs} +5 -5
  29. package/dist/{create-C17Fh1_X.mjs → create-C_fyIHZU.mjs} +8 -7
  30. package/dist/{create-05rX4oL-.mjs → create-CnT-L03B.mjs} +7 -7
  31. package/dist/{create-CZ9KFnbi.mjs → create-CnqGhtuF.mjs} +5 -5
  32. package/dist/{create-C8ndg3g4.mjs → create-CvptjYVb.mjs} +6 -6
  33. package/dist/create-DZBtbGqj.mjs +45 -0
  34. package/dist/{create-BR7x66KW.mjs → create-D_eiLBqR.mjs} +8 -8
  35. package/dist/create-DbHIjWio.mjs +45 -0
  36. package/dist/{create-Cyv7vHV_.mjs → create-VA58AF6A.mjs} +5 -5
  37. package/dist/{create-branch-Dxn6UnV_.mjs → create-branch-BtqOfSRb.mjs} +4 -4
  38. package/dist/{create-oLb0E-ZP.mjs → create-ldvT5L0W.mjs} +7 -7
  39. package/dist/{create-a3s1S2Dw.mjs → create-q2QqkwEN.mjs} +7 -7
  40. package/dist/{csv-T6_vlLJS.mjs → csv-C3O1wTQ8.mjs} +5 -5
  41. package/dist/{current-task-DxWbw-bU.mjs → current-task-CZsZPe0o.mjs} +4 -4
  42. package/dist/{dashboard-BpSPoeAn.mjs → dashboard-kb1oz7Z3.mjs} +8 -8
  43. package/dist/{database-CIbVSfua.mjs → database-BOqzcexD.mjs} +1 -1
  44. package/dist/{db-DBRijnh4.mjs → db-CHnqeJCo.mjs} +6 -6
  45. package/dist/{delete--P1xFX37.mjs → delete-BmT5C6eK.mjs} +5 -5
  46. package/dist/delete-DgI03U43.mjs +49 -0
  47. package/dist/delete-Dkfu4e5K.mjs +49 -0
  48. package/dist/{delete-Ce2EBQYA.mjs → delete-JeRzVISE.mjs} +5 -5
  49. package/dist/{delete-BBOIUl0D.mjs → delete-cF97pfFX.mjs} +5 -5
  50. package/dist/{delete-runtime-B-8I9V1g.mjs → delete-runtime-DiqKOEqi.mjs} +2 -2
  51. package/dist/{delete-table-Bj32NsXn.mjs → delete-table-dnQs_Twm.mjs} +5 -5
  52. package/dist/{dependencies-ixzjVjUz.mjs → dependencies-BsMwFSxP.mjs} +4 -4
  53. package/dist/{dirty-CH70h5m5.mjs → dirty-CN6sGKX3.mjs} +4 -4
  54. package/dist/{document-dZpuFu3I.mjs → document-Y_DZNi4D.mjs} +5 -5
  55. package/dist/{eid-XjkBbyb_.mjs → eid-60sCZhQV.mjs} +4 -4
  56. package/dist/events-CSZEAgs0.mjs +44 -0
  57. package/dist/{export-CChMg-mL.mjs → export-CAxUJer6.mjs} +6 -6
  58. package/dist/{field-B1heFeCz.mjs → field-DAB2gImv.mjs} +4 -4
  59. package/dist/{fields-C7h2QwUp.mjs → fields-CLWtUlpR.mjs} +4 -4
  60. package/dist/{get-AvGH_oph.mjs → get-B22wjDxr.mjs} +3 -3
  61. package/dist/{get-BWHJDa0B.mjs → get-BIHtWl2x.mjs} +4 -4
  62. package/dist/{get-BsyccuCH.mjs → get-BNBRMNtC.mjs} +5 -4
  63. package/dist/{get-Cj90oyxG.mjs → get-B_EinsrO.mjs} +4 -4
  64. package/dist/{get-cyR67Lmq.mjs → get-B_QKP1vR.mjs} +4 -4
  65. package/dist/{get-B6ZJCJ8H.mjs → get-CKnHNxak.mjs} +4 -4
  66. package/dist/{get-D9r2znrn.mjs → get-CRXEqpar.mjs} +4 -4
  67. package/dist/{get-DRZENkCj.mjs → get-Ca30K5_W.mjs} +4 -4
  68. package/dist/{get-C98IFgFi.mjs → get-CaosV7j8.mjs} +3 -3
  69. package/dist/{get-kqY2lwhO.mjs → get-Csa7Dz36.mjs} +4 -4
  70. package/dist/{get-DWWmpQ87.mjs → get-Ct5TnofS.mjs} +4 -4
  71. package/dist/{get-Dg1J0wxb.mjs → get-DTjeTNGb.mjs} +4 -4
  72. package/dist/get-DU8V-7S2.mjs +35 -0
  73. package/dist/get-DxAx-2C0.mjs +35 -0
  74. package/dist/{get-DrWYvefc.mjs → get-H3X5e5-Y.mjs} +4 -4
  75. package/dist/{get-KVN9ANVh.mjs → get-L8c_h5EP.mjs} +3 -3
  76. package/dist/{get-RlP_xiUd.mjs → get-fGOQA0GF.mjs} +5 -5
  77. package/dist/{get-run-C4C_QQqO.mjs → get-run-DqwPQRMJ.mjs} +4 -4
  78. package/dist/git-sync-BhhdNjq5.mjs +31 -0
  79. package/dist/{has-remote-changes-dLUGr0MD.mjs → has-remote-changes-D0ZIBHSk.mjs} +4 -4
  80. package/dist/{import-Byull6jF.mjs → import-BcIcDPl9.mjs} +6 -6
  81. package/dist/{input-m9ctfLxZ.mjs → input-D2-H-QKX.mjs} +1 -1
  82. package/dist/{is-dirty-CU3ovgdG.mjs → is-dirty-B87YMLV2.mjs} +3 -3
  83. package/dist/is-dirty-CXTS25Tk.mjs +8 -0
  84. package/dist/{items-CEGDYWuF.mjs → items-DrP1b4Qj.mjs} +6 -6
  85. package/dist/{key-Ge4VwWvS.mjs → key-GP1gxZZD.mjs} +1 -1
  86. package/dist/{library-DHWWa4Tt.mjs → library-bUBWlweP.mjs} +4 -4
  87. package/dist/{list-Cur_72xZ.mjs → list-B-_PTqKw.mjs} +6 -5
  88. package/dist/{list-th_Ym6Cv.mjs → list-B8212eUr.mjs} +4 -4
  89. package/dist/{list-D9FY30xH.mjs → list-B8zgT05M.mjs} +3 -3
  90. package/dist/{list-CmCJwaGT.mjs → list-BhCahBEO.mjs} +3 -3
  91. package/dist/{list-3z1ZChTG.mjs → list-CWQYaCp8.mjs} +3 -3
  92. package/dist/{list-BtcpNl4-.mjs → list-Cbhx7N_t.mjs} +3 -3
  93. package/dist/{list-BuyRG3GB.mjs → list-CoXeBm66.mjs} +4 -4
  94. package/dist/{list-O2w5xd1q.mjs → list-D1pHJX7w.mjs} +3 -3
  95. package/dist/{list-Bpv06V24.mjs → list-DCl7zHCp.mjs} +4 -4
  96. package/dist/{list-Br48kL09.mjs → list-DhT42e0q.mjs} +3 -3
  97. package/dist/{list-CMb03cv3.mjs → list-F_hMRbsa.mjs} +3 -3
  98. package/dist/{list-B9TyELob.mjs → list-GeqRHx8g.mjs} +3 -3
  99. package/dist/{list-BFm4iEBt.mjs → list-MPePXEWe.mjs} +3 -3
  100. package/dist/{list-BliCJAjt.mjs → list-TJjExx6e.mjs} +3 -3
  101. package/dist/list-TQghfc-u.mjs +39 -0
  102. package/dist/{list-DEkPxVZu.mjs → list-TibX1b8i.mjs} +3 -3
  103. package/dist/listing-wFZuS5li.mjs +10 -0
  104. package/dist/{login-hKlYsAa1.mjs → login-C5Ug3BVC.mjs} +6 -6
  105. package/dist/{logout-DO8GVC6b.mjs → logout-B_N1N2DV.mjs} +3 -3
  106. package/dist/{measure-R3T20wnB.mjs → measure-D9rKeA6Z.mjs} +5 -5
  107. package/dist/{parameter-values-BJb2GuLz.mjs → parameter-values-ZXKECrJk.mjs} +3 -3
  108. package/dist/{parse-enum-Cfne2suT.mjs → parse-enum-D5h-JePs.mjs} +1 -1
  109. package/dist/{parse-id-DfY0Lugw.mjs → parse-id-ySsF4nA3.mjs} +1 -1
  110. package/dist/{parse-ref-C_MsXYI6.mjs → parse-ref-Ds8VxdKb.mjs} +1 -1
  111. package/dist/{path-DzhQVCH8.mjs → path-C6ucgeYs.mjs} +3 -3
  112. package/dist/{poll-D1Yg78c3.mjs → poll-CgzD9_RH.mjs} +2 -2
  113. package/dist/{poll-task-DLUZaglY.mjs → poll-task-DF9xJl13.mjs} +2 -2
  114. package/dist/{preflight-Cy2jUSca.mjs → preflight-Co2grgX_.mjs} +2 -2
  115. package/dist/{process-D5HN1wpT.mjs → process-jjR_DX5G.mjs} +1 -1
  116. package/dist/{prompt-ZG9Drin_.mjs → prompt-BSqji7Fo.mjs} +1 -1
  117. package/dist/{publish-3hmHoaX-.mjs → publish-F-QbufXr.mjs} +12 -7
  118. package/dist/{query-DkZViD_3.mjs → query-DGBzATpV.mjs} +7 -7
  119. package/dist/{query-DTASj9Zu.mjs → query-DX4r0-uz.mjs} +4 -4
  120. package/dist/{query-result-CbTFdlSf.mjs → query-result-D5J3Dlpn.mjs} +1 -1
  121. package/dist/{remove-collection-D3wH9H6R.mjs → remove-collection-C-msSyas.mjs} +6 -6
  122. package/dist/{replace-CFzqkZXs.mjs → replace-xlQv9yl_.mjs} +5 -5
  123. package/dist/{requests-KBiY9UYy.mjs → requests-COuEPJxE.mjs} +2 -2
  124. package/dist/{rescan-values-B1WycObS.mjs → rescan-values-BC2SVtY6.mjs} +5 -5
  125. package/dist/{resolve-Ct084wx3.mjs → resolve-8iT-dXgX.mjs} +22 -15
  126. package/dist/{run-cw0qTEQ7.mjs → run-Cg6k3kHo.mjs} +6 -6
  127. package/dist/{run-B8qEEdC8.mjs → run-opQkYIaT.mjs} +3 -3
  128. package/dist/{runs-BOA4kK_X.mjs → runs-Cbqm1HYG.mjs} +5 -5
  129. package/dist/{runtime-B-c-Fc2i.mjs → runtime-MGH96fhp.mjs} +2 -2
  130. package/dist/{schema-tables-DRYzSVcW.mjs → schema-tables-8FjtkFIt.mjs} +4 -4
  131. package/dist/{schemas-BiMjD25L.mjs → schemas-L9kMsEJL.mjs} +3 -3
  132. package/dist/{search-DjKxRXO5.mjs → search-Csbb-u-_.mjs} +3 -3
  133. package/dist/{segment-CZkk0g79.mjs → segment-DCeafJwX.mjs} +5 -5
  134. package/dist/{selectors-B7MJUn3I.mjs → selectors-D34gXjQa.mjs} +3 -3
  135. package/dist/{set-kyoORFG3.mjs → set-CfwncOI_.mjs} +6 -6
  136. package/dist/{set-active-CF868qdW.mjs → set-active-gP4mjVDY.mjs} +3 -3
  137. package/dist/{setting-BZgjURQ_.mjs → setting-D5Y9sJha.mjs} +3 -3
  138. package/dist/{setup-D9joJYPb.mjs → setup-D9HNfS7W.mjs} +4 -4
  139. package/dist/{skills-D8NrJxjp.mjs → skills-DvSQOPWg.mjs} +3 -3
  140. package/dist/{skills-BqI05u72.mjs → skills-aRQfUvCq.mjs} +1 -1
  141. package/dist/{snippet-y_FzKxaQ.mjs → snippet-CwRiMCfE.mjs} +5 -5
  142. package/dist/{stash-BVMerTaF.mjs → stash-C_k1uZlf.mjs} +6 -6
  143. package/dist/{status-x8bDOa1i.mjs → status-BsEPyknG.mjs} +26 -10
  144. package/dist/{status-C-0jFjFn.mjs → status-D1vtL5eW.mjs} +2 -2
  145. package/dist/{summary-B-R9SdMF.mjs → summary-h20AjhcO.mjs} +3 -3
  146. package/dist/{sync-schema-wne2KXIW.mjs → sync-schema-D67cYLhd.mjs} +7 -7
  147. package/dist/sync-scope-CKx6xeF6.mjs +55 -0
  148. package/dist/{table-CS2-2INi.mjs → table-CmKFWPvJ.mjs} +4 -4
  149. package/dist/timeline-1ZphX3zj.mjs +24 -0
  150. package/dist/timeline-2ShuGr4f.mjs +157 -0
  151. package/dist/timeline-event-C6aKZ4EO.mjs +22 -0
  152. package/dist/transform-CvsBOTqB.mjs +31 -0
  153. package/dist/transform-job-D_8Kp772.mjs +25 -0
  154. package/dist/{transform-tag-DaNKreDj.mjs → transform-tag-DhDnvbmq.mjs} +4 -4
  155. package/dist/{transforms-DB2WNP2R.mjs → transforms-BQkmsPUR.mjs} +4 -4
  156. package/dist/{tree-BIOphGVs.mjs → tree-CtufTBZY.mjs} +3 -3
  157. package/dist/{unpublish-BWM36ZTg.mjs → unpublish-CnLXPYR8.mjs} +4 -4
  158. package/dist/{update-CTZg2Lia.mjs → update-BC-MLtiG.mjs} +9 -9
  159. package/dist/{update-BCbv880u.mjs → update-BZxLyBVm.mjs} +8 -8
  160. package/dist/{update-Sz0QRGWB.mjs → update-C4P_YtGW.mjs} +6 -6
  161. package/dist/{update-BlzcZwRQ.mjs → update-CE-Z6E8V.mjs} +8 -8
  162. package/dist/update-CqQj32ol.mjs +52 -0
  163. package/dist/update-D6blsNGY.mjs +52 -0
  164. package/dist/{update-BchtHlbH.mjs → update-DcYwxb-R.mjs} +6 -6
  165. package/dist/{update-zfLbmC-H.mjs → update-DmQJqGvX.mjs} +6 -6
  166. package/dist/{update-BiUeEGU-.mjs → update-DshCe-bl.mjs} +8 -8
  167. package/dist/{update-6umfSz5t.mjs → update-Dt9-3Tqf.mjs} +5 -5
  168. package/dist/{update-7Ts7KrB8.mjs → update-QNuvGuS3.mjs} +6 -6
  169. package/dist/{update-HxYcvpSq.mjs → update-bz-FKwuR.mjs} +7 -7
  170. package/dist/{update-DJDuIhYG.mjs → update-dJ2mlCXm.mjs} +6 -6
  171. package/dist/{update-dashcard-CfDpy7Lz.mjs → update-dashcard-CQP-qd6a.mjs} +6 -6
  172. package/dist/{upgrade-BWl0VjMK.mjs → upgrade--_g3bacj.mjs} +4 -4
  173. package/dist/{upload-CPzOhGeX.mjs → upload-BOFc_eZD.mjs} +3 -3
  174. package/dist/{uuid-D_YeqDui.mjs → uuid-DBKkosBq.mjs} +2 -2
  175. package/dist/{validate-clAWO3X-.mjs → validate-Bpqt3ntH.mjs} +1 -1
  176. package/dist/{validate-query-CsK2_2_u.mjs → validate-query-tECK019A.mjs} +2 -2
  177. package/dist/{values-DSk8ZJ3B.mjs → values-BAhMnVh6.mjs} +3 -3
  178. package/dist/{verify-DkQdLjf3.mjs → verify-RLb2DoOX.mjs} +2 -2
  179. package/dist/{wait-DvSsMjea.mjs → wait-BJ_87Yz0.mjs} +5 -5
  180. package/dist/{wait-flags-dXGThljd.mjs → wait-flags-DEn-3mjb.mjs} +2 -2
  181. package/package.json +1 -1
  182. package/skill-data/core/SKILL.md +5 -3
  183. package/skill-data/git-sync/SKILL.md +20 -5
  184. package/skill-data/visualization/SKILL.md +1 -0
  185. package/dist/add-collection-DlAwt2Z3.mjs +0 -9
  186. package/dist/git-sync-JHa7bIyY.mjs +0 -31
  187. package/dist/is-dirty-Bb2dfEYs.mjs +0 -8
  188. package/dist/transform-6hqM1DXA.mjs +0 -31
  189. package/dist/transform-job-DuERhLaj.mjs +0 -25
  190. /package/dist/{dashboard-B-MTpfeS.mjs → dashboard-BLihjDXg.mjs} +0 -0
  191. /package/dist/{document-CL4ML5FN.mjs → document-D4zB-5a0.mjs} +0 -0
  192. /package/dist/{measure-S9WszHre.mjs → measure-ByY4U3ZK.mjs} +0 -0
  193. /package/dist/{paginate-CMqbqhMC.mjs → paginate-FVZUxL4J.mjs} +0 -0
  194. /package/dist/{revision-message-flag-CHzX0cqV.mjs → revision-message-flag-vt_V8ACy.mjs} +0 -0
  195. /package/dist/{segment-BPb1H6DW.mjs → segment-eeGhLo7_.mjs} +0 -0
  196. /package/dist/{setting-Cko6bE_w.mjs → setting-DADuiF5W.mjs} +0 -0
  197. /package/dist/{snippet-DWiXNy4T.mjs → snippet-CdjEhVCT.mjs} +0 -0
  198. /package/dist/{table-C3RIKiYM.mjs → table-3onHpwcb.mjs} +0 -0
  199. /package/dist/{transform-JQel7e5H.mjs → transform-DNSMm1dV.mjs} +0 -0
  200. /package/dist/{transform-job-CtVziW85.mjs → transform-job-CvE0MBBo.mjs} +0 -0
  201. /package/dist/{transform-tag-wFiWmiyO.mjs → transform-tag-xdxjlDcD.mjs} +0 -0
package/README.md CHANGED
@@ -919,6 +919,157 @@ mb measure archive 1 --revision-message "deprecated"
919
919
  | --------------------------- | ------------------------------------------- |
920
920
  | `--revision-message <text>` | Audit-log message recorded with the change. |
921
921
 
922
+ ## Timelines
923
+
924
+ CRUD on `/api/timeline`. A timeline is a named collection of dated events rendered as annotations on time-series charts. Timelines live in collections (`collection_id: null` = root) and carry an icon (`star`, `cake`, `mail`, `warning`, `bell`, `cloud`).
925
+
926
+ ### `mb timeline list`
927
+
928
+ ```sh
929
+ mb timeline list
930
+ mb timeline list --json
931
+ mb timeline list --archived --json
932
+ ```
933
+
934
+ | Flag | Description |
935
+ | ------------ | ----------------------------------------------- |
936
+ | `--archived` | Show archived timelines instead of active ones. |
937
+
938
+ ### `mb timeline get <id>`
939
+
940
+ ```sh
941
+ mb timeline get 1
942
+ mb timeline get 1 --json --full
943
+ ```
944
+
945
+ ### `mb timeline events <id>`
946
+
947
+ List the events on a timeline. Archived events are excluded unless `--archived` is passed (which returns both).
948
+
949
+ ```sh
950
+ mb timeline events 1
951
+ mb timeline events 1 --archived --json
952
+ ```
953
+
954
+ | Flag | Description |
955
+ | ------------ | ------------------------ |
956
+ | `--archived` | Include archived events. |
957
+
958
+ ### `mb timeline create`
959
+
960
+ ```sh
961
+ mb timeline create --body '{"name":"Releases"}'
962
+ cat timeline.json | mb timeline create
963
+ mb timeline create --file timeline.json
964
+ ```
965
+
966
+ | Flag | Description |
967
+ | --------------- | ----------------------- |
968
+ | `--body <json>` | Inline JSON body. |
969
+ | `--file <path>` | Path to JSON body file. |
970
+
971
+ Body fields: `name` (required), `description` (optional), `icon` (optional, default `star`), `collection_id` (optional positive integer, omit for the root collection), `default` (optional boolean marking the collection's default timeline).
972
+
973
+ ### `mb timeline update <id>`
974
+
975
+ Patch a timeline. Body is a partial subset of the create shape plus `archived`. Only the keys you send are touched. Changing `archived` cascades to every event on the timeline.
976
+
977
+ ```sh
978
+ mb timeline update 1 --body '{"name":"Product releases"}'
979
+ cat patch.json | mb timeline update 1
980
+ mb timeline update 1 --file patch.json
981
+ ```
982
+
983
+ | Flag | Description |
984
+ | --------------- | ----------------------- |
985
+ | `--body <json>` | Inline JSON body. |
986
+ | `--file <path>` | Path to JSON body file. |
987
+
988
+ ### `mb timeline archive <id>`
989
+
990
+ Soft-delete a timeline (and, by server-side cascade, all its events) by setting `archived: true`. To unarchive use `mb timeline update <id> --body '{"archived":false}'`.
991
+
992
+ ```sh
993
+ mb timeline archive 1
994
+ mb timeline archive 1 --json
995
+ ```
996
+
997
+ ### `mb timeline delete <id>`
998
+
999
+ Permanently delete a timeline and all its events. Irreversible — prefer `mb timeline archive` unless you mean it. Prompts for confirmation on a TTY; requires `--yes` otherwise.
1000
+
1001
+ ```sh
1002
+ mb timeline delete 1 --yes
1003
+ mb timeline delete 1
1004
+ ```
1005
+
1006
+ | Flag | Description |
1007
+ | ------- | ------------------ |
1008
+ | `--yes` | Skip confirmation. |
1009
+
1010
+ ## Timeline events
1011
+
1012
+ CRUD on `/api/timeline-event`. An event is a dated annotation on a timeline. There is no server-side list endpoint — list events with `mb timeline events <id>`.
1013
+
1014
+ ### `mb timeline-event get <id>`
1015
+
1016
+ ```sh
1017
+ mb timeline-event get 1
1018
+ mb timeline-event get 1 --json --full
1019
+ ```
1020
+
1021
+ ### `mb timeline-event create`
1022
+
1023
+ ```sh
1024
+ mb timeline-event create --body '{"name":"v2 launch","timestamp":"2026-07-01T00:00:00Z","timezone":"UTC","time_matters":false,"timeline_id":1}'
1025
+ cat event.json | mb timeline-event create
1026
+ mb timeline-event create --file event.json
1027
+ ```
1028
+
1029
+ | Flag | Description |
1030
+ | --------------- | ----------------------- |
1031
+ | `--body <json>` | Inline JSON body. |
1032
+ | `--file <path>` | Path to JSON body file. |
1033
+
1034
+ Body fields: `name` (required), `timestamp` (required, ISO 8601), `timezone` (required, IANA name like `UTC` or `America/New_York`), `time_matters` (required boolean — `true` when the time of day is significant, `false` when only the date is), `timeline_id` (required positive integer), `description` (optional), `icon` (optional, default: the timeline's icon).
1035
+
1036
+ ### `mb timeline-event update <id>`
1037
+
1038
+ Patch an event. Body is a partial subset of the create shape plus `archived`. Only the keys you send are touched; `timeline_id` moves the event to another timeline.
1039
+
1040
+ ```sh
1041
+ mb timeline-event update 1 --body '{"name":"v2.1 launch"}'
1042
+ cat patch.json | mb timeline-event update 1
1043
+ mb timeline-event update 1 --file patch.json
1044
+ ```
1045
+
1046
+ | Flag | Description |
1047
+ | --------------- | ----------------------- |
1048
+ | `--body <json>` | Inline JSON body. |
1049
+ | `--file <path>` | Path to JSON body file. |
1050
+
1051
+ ### `mb timeline-event archive <id>`
1052
+
1053
+ Soft-delete an event by setting `archived: true`. To unarchive use `mb timeline-event update <id> --body '{"archived":false}'`.
1054
+
1055
+ ```sh
1056
+ mb timeline-event archive 1
1057
+ mb timeline-event archive 1 --json
1058
+ ```
1059
+
1060
+ ### `mb timeline-event delete <id>`
1061
+
1062
+ Permanently delete an event. Prompts for confirmation on a TTY; requires `--yes` otherwise.
1063
+
1064
+ ```sh
1065
+ mb timeline-event delete 1 --yes
1066
+ mb timeline-event delete 1
1067
+ ```
1068
+
1069
+ | Flag | Description |
1070
+ | ------- | ------------------ |
1071
+ | `--yes` | Skip confirmation. |
1072
+
922
1073
  ## Collections
923
1074
 
924
1075
  Read collections on `/api/collection`. Collections are the folders that contain cards, dashboards, and other collections. The list endpoint surfaces a virtual root collection (id `"root"`) alongside regular numeric ids; the get endpoint accepts only the numeric id.
@@ -1026,7 +1177,7 @@ mb library create --json
1026
1177
 
1027
1178
  ### `mb library publish`
1028
1179
 
1029
- Publish tables (and their upstream dependencies) into the Library's Data collection (`POST /api/ee/data-studio/table/publish-tables`). The target Data collection is resolved automatically and the Library is created if it doesn't exist yet — there's no collection id to pass.
1180
+ Publish tables (and their upstream dependencies) into the Library's Data collection (`POST /api/ee/data-studio/table/publish-tables`). The target Data collection is resolved automatically and the Library is created if it doesn't exist yet — there's no collection id to pass. Publishing does not add the Data collection to the git-sync scope; on an instance with remote sync configured, the command warns on stderr with the `mb git-sync add-collection <id>` invocation that makes exports carry the published tables' metadata.
1030
1181
 
1031
1182
  ```sh
1032
1183
  mb library publish --table-ids 1,2,3
@@ -1177,7 +1328,7 @@ Drive Metabase Enterprise Remote Sync (`/api/ee/remote-sync`) — import / expor
1177
1328
 
1178
1329
  ### `mb git-sync status`
1179
1330
 
1180
- 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).
1331
+ Roll up the current sync state in one call: configured branch, dirty flag, the most recent sync task (or `null` if none has ever run), and the collections marked for sync.
1181
1332
 
1182
1333
  ```sh
1183
1334
  mb git-sync status
@@ -1,7 +1,7 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
2
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
3
- import { parseId } from "./parse-id-DfY0Lugw.mjs";
4
- import { REMOTE_SYNC_PATHS } from "./poll-task-DLUZaglY.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-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
4
- import "./input-m9ctfLxZ.mjs";
5
- import { parseId } from "./parse-id-DfY0Lugw.mjs";
6
- import { UploadUpdateResult, readCsvFile, requireUploadFilePath, updateTableFromCsv, uploadUpdateResultView } from "./requests-KBiY9UYy.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-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
4
- import { parseId } from "./parse-id-DfY0Lugw.mjs";
5
- import { Snippet, snippetView } from "./snippet-DWiXNy4T.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,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
4
- import { parseId } from "./parse-id-DfY0Lugw.mjs";
5
- import { Document, documentView } from "./document-CL4ML5FN.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
+ import { Document, documentView } from "./document-D4zB-5a0.mjs";
6
6
 
7
7
  //#region src/commands/document/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
4
- import { parseId } from "./parse-id-DfY0Lugw.mjs";
5
- import { Measure, measureView } from "./measure-S9WszHre.mjs";
6
- import { revisionMessageFlag } from "./revision-message-flag-CHzX0cqV.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({
@@ -0,0 +1,38 @@
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
+ import "./command-augment-D9pI9Vbh.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
+
7
+ //#region src/commands/timeline/archive.ts
8
+ var archive_default = defineMetabaseCommand({
9
+ meta: {
10
+ name: "archive",
11
+ description: "Archive (soft-delete) a timeline and all its events by id"
12
+ },
13
+ capabilities: { minVersion: 58 },
14
+ args: {
15
+ ...outputFlags,
16
+ ...profileFlag,
17
+ ...connectionFlags,
18
+ id: {
19
+ type: "positional",
20
+ description: "Timeline id",
21
+ required: true
22
+ }
23
+ },
24
+ outputSchema: Timeline,
25
+ examples: ["mb timeline archive 1", "mb timeline archive 1 --json"],
26
+ async run({ args, ctx, getClient }) {
27
+ const id = parseId(args.id);
28
+ const client = await getClient();
29
+ const updated = await client.requestParsed(Timeline, `/api/timeline/${id}`, {
30
+ method: "PUT",
31
+ body: { archived: true }
32
+ });
33
+ renderSummary(updated, timelineView, `Archived timeline ${updated.id} "${updated.name}".`, ctx);
34
+ }
35
+ });
36
+
37
+ //#endregion
38
+ export { archive_default as default };
@@ -1,10 +1,10 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.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-DfY0Lugw.mjs";
7
- import { Dashboard, dashboardView } from "./dashboard-B-MTpfeS.mjs";
6
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
7
+ import { Dashboard, dashboardView } from "./dashboard-BLihjDXg.mjs";
8
8
 
9
9
  //#region src/commands/dashboard/archive.ts
10
10
  var archive_default = defineMetabaseCommand({
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
4
- import { parseId } from "./parse-id-DfY0Lugw.mjs";
5
- import { revisionMessageFlag } from "./revision-message-flag-CHzX0cqV.mjs";
6
- import { Segment, segmentView } from "./segment-BPb1H6DW.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({
@@ -0,0 +1,38 @@
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
+ import "./command-augment-D9pI9Vbh.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
+
7
+ //#region src/commands/timeline-event/archive.ts
8
+ var archive_default = defineMetabaseCommand({
9
+ meta: {
10
+ name: "archive",
11
+ description: "Archive (soft-delete) a timeline event by id"
12
+ },
13
+ capabilities: { minVersion: 58 },
14
+ args: {
15
+ ...outputFlags,
16
+ ...profileFlag,
17
+ ...connectionFlags,
18
+ id: {
19
+ type: "positional",
20
+ description: "Timeline event id",
21
+ required: true
22
+ }
23
+ },
24
+ outputSchema: TimelineEvent,
25
+ examples: ["mb timeline-event archive 1", "mb timeline-event archive 1 --json"],
26
+ async run({ args, ctx, getClient }) {
27
+ const id = parseId(args.id);
28
+ const client = await getClient();
29
+ const updated = await client.requestParsed(TimelineEvent, `/api/timeline-event/${id}`, {
30
+ method: "PUT",
31
+ body: { archived: true }
32
+ });
33
+ renderSummary(updated, timelineEventView, `Archived timeline event ${updated.id} "${updated.name}".`, ctx);
34
+ }
35
+ });
36
+
37
+ //#endregion
38
+ export { archive_default as default };
@@ -1,11 +1,11 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.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-DfY0Lugw.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,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
4
- import { parseId } from "./parse-id-DfY0Lugw.mjs";
5
- import { Collection, collectionView } from "./collection-CFoLPrY5.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
4
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
5
+ import { Collection, collectionView } from "./collection-C52Ndi_O.mjs";
6
6
 
7
7
  //#region src/commands/collection/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -11,10 +11,10 @@ var auth_default = defineCommandGroup({
11
11
  purpose: "authentication and named profiles"
12
12
  }],
13
13
  subCommands: {
14
- login: () => import("./login-hKlYsAa1.mjs").then((m) => m.default),
15
- status: () => import("./status-C-0jFjFn.mjs").then((m) => m.default),
16
- list: () => import("./list-CMb03cv3.mjs").then((m) => m.default),
17
- logout: () => import("./logout-DO8GVC6b.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-DrDJo_ng.mjs";
2
- import { parseJson } from "./runtime-B-c-Fc2i.mjs";
3
- import { DEFAULT_FLAG_NAME, readInput } from "./input-m9ctfLxZ.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-DrDJo_ng.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-B-c-Fc2i.mjs";
4
- import "./poll-D1Yg78c3.mjs";
5
- import { REMOTE_SYNC_PATHS } from "./poll-task-DLUZaglY.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-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
4
- import { parseId } from "./parse-id-DfY0Lugw.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-DrDJo_ng.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
4
- import "./poll-D1Yg78c3.mjs";
5
- import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-DLUZaglY.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.0";
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-D9FY30xH.mjs").then((mod) => mod.default),
17
- get: () => import("./get-AvGH_oph.mjs").then((mod) => mod.default),
18
- query: () => import("./query-DTASj9Zu.mjs").then((mod) => mod.default),
19
- create: () => import("./create-C8ndg3g4.mjs").then((mod) => mod.default),
20
- update: () => import("./update-HxYcvpSq.mjs").then((mod) => mod.default),
21
- archive: () => import("./archive-pHsa4dL0.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,10 +1,10 @@
1
- import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-DrDJo_ng.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-B-c-Fc2i.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-DfY0Lugw.mjs";
7
- import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-B-MTpfeS.mjs";
6
+ import { parseId } from "./parse-id-ySsF4nA3.mjs";
7
+ import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-BLihjDXg.mjs";
8
8
 
9
9
  //#region src/commands/dashboard/cards.ts
10
10
  const DashcardListEnvelope = listEnvelopeSchema(DashcardCompact);
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-DrDJo_ng.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,31 +71,33 @@ const main = defineCommand({
59
71
  description: package_default.description
60
72
  },
61
73
  subCommands: {
62
- auth: () => import("./auth-BrQtY0pO.mjs").then((mod) => mod.default),
63
- db: () => import("./db-DBRijnh4.mjs").then((mod) => mod.default),
64
- table: () => import("./table-CS2-2INi.mjs").then((mod) => mod.default),
65
- field: () => import("./field-B1heFeCz.mjs").then((mod) => mod.default),
66
- upload: () => import("./upload-CPzOhGeX.mjs").then((mod) => mod.default),
67
- card: () => import("./card-DHCcmpgr.mjs").then((mod) => mod.default),
68
- dashboard: () => import("./dashboard-BpSPoeAn.mjs").then((mod) => mod.default),
69
- collection: () => import("./collection-D0O9gp3S.mjs").then((mod) => mod.default),
70
- library: () => import("./library-DHWWa4Tt.mjs").then((mod) => mod.default),
71
- document: () => import("./document-dZpuFu3I.mjs").then((mod) => mod.default),
72
- transform: () => import("./transform-6hqM1DXA.mjs").then((mod) => mod.default),
73
- "transform-job": () => import("./transform-job-DuERhLaj.mjs").then((mod) => mod.default),
74
- "transform-tag": () => import("./transform-tag-DaNKreDj.mjs").then((mod) => mod.default),
75
- setting: () => import("./setting-BZgjURQ_.mjs").then((mod) => mod.default),
76
- search: () => import("./search-DjKxRXO5.mjs").then((mod) => mod.default),
77
- "git-sync": () => import("./git-sync-JHa7bIyY.mjs").then((mod) => mod.default),
78
- setup: () => import("./setup-D9joJYPb.mjs").then((mod) => mod.default),
79
- snippet: () => import("./snippet-y_FzKxaQ.mjs").then((mod) => mod.default),
80
- segment: () => import("./segment-CZkk0g79.mjs").then((mod) => mod.default),
81
- measure: () => import("./measure-R3T20wnB.mjs").then((mod) => mod.default),
82
- eid: () => import("./eid-XjkBbyb_.mjs").then((mod) => mod.default),
83
- query: () => import("./query-DkZViD_3.mjs").then((mod) => mod.default),
84
- uuid: () => import("./uuid-D_YeqDui.mjs").then((mod) => mod.default),
85
- upgrade: () => import("./upgrade-BWl0VjMK.mjs").then((mod) => mod.default),
86
- skills: () => import("./skills-D8NrJxjp.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)
87
101
  }
88
102
  });
89
103
  setMetabaseAugment(main, {
@@ -432,6 +446,7 @@ async function findSubCommand(subCommands, token) {
432
446
  const HELP_FLAGS = new Set(["--help", "-h"]);
433
447
  const JSON_HELP_FLAG = "--json";
434
448
  async function run() {
449
+ trustSystemCa();
435
450
  const rawArgs = hoistGlobalFlags(process.argv.slice(2));
436
451
  const wantsJsonHelp = rawArgs.includes(JSON_HELP_FLAG);
437
452
  const showUsageWithBreadcrumb = async (cmd, parent) => {
@@ -56,7 +56,8 @@ const Collection = z.object({
56
56
  namespace: CollectionNamespace.nullable().optional(),
57
57
  entity_id: z.string().nullable().optional(),
58
58
  slug: z.string().optional(),
59
- can_write: z.boolean().optional()
59
+ can_write: z.boolean().optional(),
60
+ is_remote_synced: z.boolean().nullable().optional()
60
61
  }).loose();
61
62
  const CollectionCompact = Collection.pick({
62
63
  id: true,
@@ -67,7 +68,8 @@ const CollectionCompact = Collection.pick({
67
68
  parent_id: true,
68
69
  type: true,
69
70
  authority_level: true,
70
- is_personal: true
71
+ is_personal: true,
72
+ is_remote_synced: true
71
73
  }).strip();
72
74
  const collectionView = {
73
75
  compactPick: CollectionCompact,