@metabase/cli 0.1.8-alpha.drop-workspaces.a42f32e → 0.1.8-alpha.drop-workspaces.75fe1d5

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 (141) hide show
  1. package/dist/{add-collection-CuLyFlrE.mjs → add-collection-CLLtJ4hp.mjs} +4 -4
  2. package/dist/add-collection-CRm-ILtk.mjs +10 -0
  3. package/dist/{archive-C1lk1rR7.mjs → archive-BLySelYN.mjs} +3 -3
  4. package/dist/{archive-mdSqCzVw.mjs → archive-BiAxoJ1m.mjs} +3 -3
  5. package/dist/{archive-C2AfP9G_.mjs → archive-BxvnYXN2.mjs} +3 -3
  6. package/dist/{archive-Dt1qDaIF.mjs → archive-CXZ1Mg97.mjs} +3 -3
  7. package/dist/{archive-DNVqPMhp.mjs → archive-CcXT7XDi.mjs} +3 -3
  8. package/dist/{archive-COAWrOVp.mjs → archive-Dzug49jS.mjs} +3 -3
  9. package/dist/auth-9zbMAJJT.mjs +19 -0
  10. package/dist/{body-b76dLVpL.mjs → body-CibAG3Gn.mjs} +1 -1
  11. package/dist/{branches-DwV1q-4h.mjs → branches-CqYNkMew.mjs} +4 -4
  12. package/dist/{cancel-DDKstWQM.mjs → cancel-PLvMQNzN.mjs} +3 -3
  13. package/dist/{cancel-task-DX_OdGan.mjs → cancel-task-dnxyQrhZ.mjs} +4 -4
  14. package/dist/card-pT87DhqA.mjs +20 -0
  15. package/dist/{cards-CYKPNOp3.mjs → cards-DUCwTT1X.mjs} +3 -3
  16. package/dist/cli.mjs +22 -22
  17. package/dist/collection-DR2bXpGN.mjs +20 -0
  18. package/dist/{create-B4aKAWaQ.mjs → create-BGtmOc5Z.mjs} +3 -3
  19. package/dist/{create-DRhRPfD-.mjs → create-Btltf94v.mjs} +3 -3
  20. package/dist/{create-BqiR1kvi.mjs → create-C9GnQVhD.mjs} +3 -3
  21. package/dist/{create-BfRIHlHk.mjs → create-CJ7GFRnZ.mjs} +4 -4
  22. package/dist/{create-CQxJpVXk.mjs → create-CrEv9lPi.mjs} +3 -3
  23. package/dist/{create-CE1WZ4du.mjs → create-DbD1wgnN.mjs} +3 -3
  24. package/dist/{create-BfseKO3F.mjs → create-Di0_His2.mjs} +3 -3
  25. package/dist/{create-BscN4jFB.mjs → create-VB2v6CFw.mjs} +3 -3
  26. package/dist/{create-branch-2yEa7-9x.mjs → create-branch-DbD4Mr3v.mjs} +4 -4
  27. package/dist/{current-task-5buIatuG.mjs → current-task-C8gML78R.mjs} +4 -4
  28. package/dist/dashboard-D4uKuH7K.mjs +21 -0
  29. package/dist/db-UVZmfVwk.mjs +22 -0
  30. package/dist/{delete-CF8in6gw.mjs → delete-C_H6NNKT.mjs} +3 -3
  31. package/dist/{delete-C3i5dE4s.mjs → delete-DnorVsnc.mjs} +3 -3
  32. package/dist/{delete-table-m-6cOPnX.mjs → delete-table-B-UwOkQ8.mjs} +3 -3
  33. package/dist/{dirty-hGWiemB-.mjs → dirty-Q8VNL_QG.mjs} +4 -4
  34. package/dist/{eid-BP0H-LTl.mjs → eid-CQO-WWqZ.mjs} +3 -3
  35. package/dist/{error-BLukG0Vf.mjs → error-BYn4eqJH.mjs} +1 -1
  36. package/dist/{export-wh9l0s7F.mjs → export-DaTZ6gvj.mjs} +6 -6
  37. package/dist/field-BYKXbj6M.mjs +18 -0
  38. package/dist/{fields-BD52yx5k.mjs → fields-CrFLg4ED.mjs} +3 -3
  39. package/dist/{get-C5PKCCzj.mjs → get-BSIQndJI.mjs} +2 -2
  40. package/dist/{get-BhFiIyyH.mjs → get-BeFkBriz.mjs} +3 -3
  41. package/dist/{get-C_LAPJ7J.mjs → get-BzHRPRpv.mjs} +3 -3
  42. package/dist/{get-436DayeX.mjs → get-C03uSHdF.mjs} +3 -3
  43. package/dist/{get-B1jyFBkg.mjs → get-C1sugXm_.mjs} +2 -2
  44. package/dist/{get-EJOWmpkC.mjs → get-Cgdc7hCr.mjs} +3 -3
  45. package/dist/{get-DETcYP1F.mjs → get-D188icmF.mjs} +3 -3
  46. package/dist/{get-BVMyLnhh.mjs → get-DljOZz2K.mjs} +3 -3
  47. package/dist/{get-Cu7Om0g2.mjs → get-DzK1a7SS.mjs} +3 -3
  48. package/dist/{get-CgdzDOTX.mjs → get-FqlK_kjE.mjs} +3 -3
  49. package/dist/{get-z9XIWbVG.mjs → get-QoJ4HbKQ.mjs} +3 -3
  50. package/dist/{get-DSmnRBrw.mjs → get-rQxZzRkA.mjs} +2 -2
  51. package/dist/{get-run-BEvwTmr7.mjs → get-run-Dzu_f6Hi.mjs} +3 -3
  52. package/dist/{get-BLUldOxi.mjs → get-yM_8b0OQ.mjs} +3 -3
  53. package/dist/git-sync-CbvqlHaK.mjs +28 -0
  54. package/dist/{has-remote-changes-BNjTil7k.mjs → has-remote-changes-CH6m9DG_.mjs} +4 -4
  55. package/dist/{import-C0iBM0UR.mjs → import-Ct_wFwN3.mjs} +6 -6
  56. package/dist/is-dirty-B2h2xG28.mjs +9 -0
  57. package/dist/{is-dirty-D_e5Xoke.mjs → is-dirty-BZZx74du.mjs} +3 -3
  58. package/dist/{items-D6h0ejme.mjs → items-DZwlhSEL.mjs} +3 -3
  59. package/dist/{list-ZX3ooQ9h.mjs → list-9XlzunAC.mjs} +2 -2
  60. package/dist/{list-DcV2bfg8.mjs → list-B3Ovx70Y.mjs} +2 -2
  61. package/dist/{list-BJxm0-6m.mjs → list-BGGAF_6C.mjs} +2 -2
  62. package/dist/{list-DLC82gFo.mjs → list-BIhaOrA5.mjs} +2 -2
  63. package/dist/{list-B3CgwSU4.mjs → list-BYmhSHzh.mjs} +2 -2
  64. package/dist/{list-r3gm10tz.mjs → list-BmaG3xeR.mjs} +2 -2
  65. package/dist/{list-BZkOPBmK.mjs → list-CQpckqCa.mjs} +3 -3
  66. package/dist/{list-D0ZVA1e1.mjs → list-CY2snf4x.mjs} +2 -2
  67. package/dist/{list-CSX_xieo.mjs → list-CgQVYt5R.mjs} +2 -2
  68. package/dist/{list-CmVbbX3f.mjs → list-CnFLhMYE.mjs} +2 -2
  69. package/dist/{list-pXgd_HTy.mjs → list-D81pxMKm.mjs} +2 -2
  70. package/dist/{list-CkCgkJFh.mjs → list-DoqLo7A0.mjs} +2 -2
  71. package/dist/{list-CWItVq2v.mjs → list-seY6unmL.mjs} +3 -3
  72. package/dist/{login-DSS8QywX.mjs → login-DYTNx7yh.mjs} +3 -3
  73. package/dist/{logout-B6acbVng.mjs → logout-DZ8y8HOD.mjs} +2 -2
  74. package/dist/measure-RIucuF-O.mjs +19 -0
  75. package/dist/{metadata-D_wFDaCb.mjs → metadata-9C7IqqPO.mjs} +3 -3
  76. package/dist/{metadata-C-bcafH-.mjs → metadata-HFNA8q0S.mjs} +3 -3
  77. package/dist/{parse-id-BapRoz4R.mjs → parse-id-sz7USsM2.mjs} +1 -1
  78. package/dist/{path-DmYXSF59.mjs → path-CQtJFQoD.mjs} +2 -2
  79. package/dist/{poll-CYFFYOiB.mjs → poll-DO11tBiL.mjs} +1 -1
  80. package/dist/{poll-task-Dalt24ov.mjs → poll-task-DnzX7GX_.mjs} +2 -2
  81. package/dist/{preflight-G7NUAKod.mjs → preflight-B-LRcq3c.mjs} +1 -1
  82. package/dist/{query-DRosi9Ha.mjs → query-77r-viQY.mjs} +3 -3
  83. package/dist/{query-COWTai5j.mjs → query-CsN3tsch.mjs} +3 -3
  84. package/dist/{remove-collection-CLWw-48s.mjs → remove-collection-DoUP8olH.mjs} +6 -6
  85. package/dist/{rescan-values-C3L03Crf.mjs → rescan-values-B0Aubnud.mjs} +3 -3
  86. package/dist/{run-PL8TRDGx.mjs → run-CBuzp0Oj.mjs} +5 -5
  87. package/dist/{runs-B86YP36a.mjs → runs-C3t03bls.mjs} +3 -3
  88. package/dist/{runtime-C2EDX9E7.mjs → runtime-DHJQOqZu.mjs} +1 -1
  89. package/dist/{schema-tables-CZr0QT1g.mjs → schema-tables-D7df6z1V.mjs} +3 -3
  90. package/dist/{schemas-DnGJlmQl.mjs → schemas-DT3v9JRw.mjs} +3 -3
  91. package/dist/{search-thFe-n3F.mjs → search-B3EvSZce.mjs} +3 -3
  92. package/dist/segment-CvxcX3iJ.mjs +19 -0
  93. package/dist/{set-CDQE4s8H.mjs → set-zEPevfIf.mjs} +3 -3
  94. package/dist/{setting-BTMmbmKB.mjs → setting-fWAwsQKm.mjs} +3 -3
  95. package/dist/{setup-mOHveOFI.mjs → setup-SjStGgMi.mjs} +3 -3
  96. package/dist/{skills-d2iLclsk.mjs → skills-zSDzVgBI.mjs} +3 -3
  97. package/dist/snippet-DTwXkIqY.mjs +19 -0
  98. package/dist/{stash-B4RTStPo.mjs → stash-CLN-okHt.mjs} +6 -6
  99. package/dist/{status-B7H0JH52.mjs → status-B0YQmlXV.mjs} +5 -5
  100. package/dist/{status-DoVvjifV.mjs → status-CIyVMUXh.mjs} +2 -2
  101. package/dist/{summary-BsdiF7LZ.mjs → summary-DBhVgNU4.mjs} +3 -3
  102. package/dist/{sync-schema-CvXkT9Rg.mjs → sync-schema-CvRI0jtk.mjs} +3 -3
  103. package/dist/table-CTTjXzo3.mjs +19 -0
  104. package/dist/transform-CWNrL2gg.mjs +24 -0
  105. package/dist/transform-job-C--GBO9Q.mjs +19 -0
  106. package/dist/{tree-CGBtDXfk.mjs → tree-2qvtbIdj.mjs} +2 -2
  107. package/dist/{update-C44bumhM.mjs → update-B93L5MJR.mjs} +4 -4
  108. package/dist/{update-WMzbyUw2.mjs → update-BA0wgxkx.mjs} +4 -4
  109. package/dist/{update-BJhk_A4R.mjs → update-CWgm0WZQ.mjs} +4 -4
  110. package/dist/{update-DqAKFmkw.mjs → update-CiIYqtRb.mjs} +4 -4
  111. package/dist/{update-BJn9ZitD.mjs → update-Cw0oHpsm.mjs} +5 -5
  112. package/dist/{update-JpO3b8g3.mjs → update-D5fs9raK.mjs} +4 -4
  113. package/dist/{update-BA48uHRd.mjs → update-DWwBv7XP.mjs} +4 -4
  114. package/dist/{update-BHit5RyS.mjs → update-DdI9epnQ.mjs} +4 -4
  115. package/dist/{update-B89kI8l9.mjs → update-YxMDkgY6.mjs} +4 -4
  116. package/dist/{update-dashcard-C8BGZtY7.mjs → update-dashcard-BA65Gjah.mjs} +4 -4
  117. package/dist/{upgrade-DeiR3fjf.mjs → upgrade-82Zo6-n6.mjs} +2 -2
  118. package/dist/{uuid-BWvbC2Z8.mjs → uuid-B2xU0Ibp.mjs} +2 -2
  119. package/dist/{values-07BZxAK5.mjs → values-Cs6sJEid.mjs} +3 -3
  120. package/dist/{verify-D2q5RI4i.mjs → verify-D8wLpHse.mjs} +1 -1
  121. package/dist/{wait-DWyuBO_X.mjs → wait-CW6jJWmY.mjs} +5 -5
  122. package/dist/{wait-flags-Crs-j7Z8.mjs → wait-flags-Dl-xi5yx.mjs} +2 -2
  123. package/package.json +1 -1
  124. package/skill-data/core/SKILL.md +2 -2
  125. package/skill-data/mbql/SKILL.md +2 -0
  126. package/skill-data/transform/SKILL.md +13 -2
  127. package/dist/add-collection-DkucDB2N.mjs +0 -10
  128. package/dist/auth-WILFa6Xf.mjs +0 -19
  129. package/dist/card-Bd8jLmZW.mjs +0 -20
  130. package/dist/collection-gz4k8jWl.mjs +0 -20
  131. package/dist/dashboard-BL8_Ysst.mjs +0 -21
  132. package/dist/db-Bw8m4M2J.mjs +0 -22
  133. package/dist/field-GgVH-HUD.mjs +0 -18
  134. package/dist/git-sync-oYYp_Z6v.mjs +0 -28
  135. package/dist/is-dirty-C_RyVkc1.mjs +0 -9
  136. package/dist/measure-DDn0jAB8.mjs +0 -19
  137. package/dist/segment-ydERbF0L.mjs +0 -19
  138. package/dist/snippet-i1Z8-yJQ.mjs +0 -19
  139. package/dist/table-DoAu2iwB.mjs +0 -19
  140. package/dist/transform-JzFSQdFi.mjs +0 -24
  141. package/dist/transform-job-C8q3Fcf7.mjs +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metabase/cli",
3
- "version": "0.1.8-alpha.drop-workspaces.a42f32e",
3
+ "version": "0.1.8-alpha.drop-workspaces.75fe1d5",
4
4
  "description": "Metabase CLI",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -66,7 +66,7 @@ Every list/get verb supports the same output flags:
66
66
 
67
67
  - `--json` — emit the full JSON envelope, safe for `jq`. Default is human-readable text.
68
68
  - `--full` — include every field (compact projection is the default for list/get).
69
- - `--fields a,b.c.d` — project specific dot-paths. Mutually exclusive with `--full`.
69
+ - `--fields a,b.c.d` — project specific dot-paths. Mutually exclusive with `--full`. **Paths are relative to each `data[]` item on list verbs, and to the root on single-item verbs.** So it's `--fields id,name` on `… list` / `database schema-tables` (the projection runs per row) — `data.id` and `data[].id` both fail with `unknown field path: "data.id"`. On single-object verbs the path is root-relative: `--fields id,name,display` on `card get`, and `--fields data.rows` on `mb query` (whose `data` is an object, not an array).
70
70
  - `--max-bytes <n>` — cap **list** output size (drops trailing items, sets `truncated`). Default 65 536; `0` disables. Single-item commands (`get`, `metadata`) never truncate — they emit a stderr advisory when over the cap.
71
71
 
72
72
  List envelope shape:
@@ -132,7 +132,7 @@ Routine verb shapes (list / get / create / update), every flag, and output JSON
132
132
  - **table fields.** `table get` never returns fields on its own — pass `--include fields` (compact) or use `table fields <id>` (list envelope). `table metadata <id>` adds FKs + dimensions (heavier). `table update` patches table-level metadata only; physical columns aren't editable here.
133
133
  - **field has no `list`.** Fields are per-table — get them via `table get <id> --include fields`. Never enumerate fields across a whole db (context blow-up). `field summary` is live cardinality `{field_id, count, distincts}`; `field values` is the cached distinct set (`has_more_values: true` ⇒ truncated cache). `field update` patches metadata only; `base_type` isn't editable.
134
134
  - **card.** `dataset_query` is the **flat** `mbql/query` value, not a legacy `{type:"query",query:…}` envelope (→ `mbql` skill). `--export-format csv|xlsx` streams the raw export (pipe to a file), bypassing the JSON envelope. `archive` is the only delete; unarchive with `update --body '{"archived":false}'`. `visualization_settings` keys are scoped by `display` and aren't pre-flighted — see the `viz` skill.
135
- - **dashboard.** Dashcards round-trip through `PUT /api/dashboard/:id` (no per-dashcard endpoint): `update-dashcard <dash-id> <dashcard-id>` patches one safely; `update --body '{"dashcards":[…]}'` replaces the whole set (omitted ids are deleted server-side; use negative ids for new cards). `create`/`update` pre-flight every positive `card_id` against live server state and exit **2** with `{ok:false,errors:[…]}` on a bad ref — non-bypassable (no `--skip-validate`). `dashboard get <id>` (or `--full`) hydrates dashcards/tabs; `list` omits them.
135
+ - **dashboard.** Dashcards round-trip through `PUT /api/dashboard/:id` (no per-dashcard endpoint): `update-dashcard <dash-id> <dashcard-id>` patches one safely; `update --body '{"dashcards":[…]}'` replaces the whole set (omitted ids are deleted server-side; use negative ids for new cards). `create` accepts the **same** `dashcards` array in its initial body, so you can lay out the whole dashboard in one call — negative ids for new cards, and `card_id:null` plus a `visualization_settings.virtual_card` block (`{display:"text"|"heading"|"link"|…}`) for non-question cards. `create`/`update` pre-flight every positive `card_id` against live server state and exit **2** with `{ok:false,errors:[…]}` on a bad ref — non-bypassable (no `--skip-validate`). `dashboard get <id>` (or `--full`) hydrates dashcards/tabs; `list` omits them.
136
136
  - **snippet `--archived` is a swap, not a union** — list returns _either_ active _or_ archived rows, never both. (Same shape for `--filter archived` on dashboard/collection.)
137
137
  - **segment / measure** `update` and `archive` require a non-blank `revision_message` (audit-logged); the CLI does not synthesize it on `update`. `archive` defaults to `"Archived via mb CLI"` — override with `--revision-message`. `definition` is a flat MBQL clause (→ `mbql` skill): segment = a filter, measure = exactly one aggregation.
138
138
  - **collection `<ref>`** accepts four forms only — positive int, `root`, `trash`, or a 21-char entity_id — anything else is a client-side `ConfigError`. `collection items` auto-paginates (cap with `--limit`, which then omits `total`). `collection tree` is **JSON-only** — `--format text` is rejected.
@@ -87,6 +87,8 @@ mb query --file q.json --profile <n> --json # 3. validate +
87
87
 
88
88
  `path` is a JSON Pointer into the body (`/stages/0/aggregation/0`); `message` is the validator error. Exit codes: `0` valid + ran, `2` validation failed / malformed body, `1` server-side error after a valid pre-flight.
89
89
 
90
+ A successful run emits the **full `/api/dataset` envelope** — `data.rows`, `data.cols`, plus heavy `data.results_metadata` and per-column fingerprints. For ad-hoc exploration project `--fields data.rows` (add `data.cols` if you need column names); without it even a few rows render as hundreds of lines of metadata. (`mb query` also runs a **native** body — `{database, type:"native", native:{query:"SELECT …"}}` — which skips pre-flight and is the quickest way to eyeball raw warehouse data; same `--fields data.rows` advice applies.)
91
+
90
92
  `--skip-validate` bypasses the pre-flight and sends as-is — use only when the bundled schema disagrees with what the server actually accepts (drift / false negative). Mutually exclusive with `--dry-run`. The same flag exists on `card create/update` and `transform create/update`.
91
93
 
92
94
  ## Where MBQL 5 is consumed
@@ -60,6 +60,7 @@ Notes:
60
60
  - The heredoc with single-quoted `'EOF'` prevents shell from interpolating any `$vars` inside the SQL.
61
61
  - `transform create --json` returns the agent-facing compact projection: `{id, name, description, source_type, target: {type, database, schema, name}, target_db_id}`. Read `target.schema`/`target.name` directly off the create output — no follow-up `transform get` needed to verify where the transform will write.
62
62
  - If a transform with the same `name` already has a YAML representation on disk under the configured remote-sync repo, `create` mints a `_2` suffix on the exported filename (the new transform gets a fresh `entity_id`; the prior one isn't touched). For "iterate on the same concept" workflows, prefer `transform update <id>` — see "Iterating on a failing transform" below.
63
+ - **`collection_id` only accepts a collection in the `:transforms` namespace.** Transforms aren't filed next to cards and dashboards — passing a normal analytics collection id (the kind a dashboard lives in) fails create/update with `collection_id: A Transform can only go in Collections in the :transforms namespace.` Omit `collection_id` to leave the transform uncollected (the common case), or pass a collection created in the transforms namespace. Cards and dashboards you build **on top of** the transform's output table go in ordinary collections as usual — so "put the transform and its dashboard in collection X" generally means *X holds the dashboard + cards; the transform stays in the transforms namespace.*
63
64
 
64
65
  ## Inspect
65
66
 
@@ -68,7 +69,16 @@ mb transform list --profile <name> --json
68
69
  mb transform get <id> --profile <name> --full --json # full transform incl. last run summary
69
70
  ```
70
71
 
71
- After a run, the materialized table is queryable via `mb` (`card create` against it, native query against `<schema>.<name>`, etc.). Columns and types are inferred from the result set; if you change the SELECT shape, drop the table first or the next run will fail on a column-mismatch error.
72
+ After a run, the materialized table physically exists in the warehouse, but Metabase doesn't know about it yet. **Native SQL** (a native `card`, or `mb query` against `<schema>.<name>`) reads it immediately — native runs straight against the warehouse. **MBQL and the Metabase UI cannot reference it until the instance syncs**, because they address tables and columns by numeric id and a brand-new table has none. To build MBQL cards on a fresh output table:
73
+
74
+ ```bash
75
+ mb database sync-schema <db-id> --profile <name> --json # async — returns {status:"ok"} at once
76
+ # poll until the new table appears (sync is not instant):
77
+ mb database schema-tables <db-id> <schema> --profile <name> --json --fields id,name
78
+ mb table get <table-id> --include fields --profile <name> --json # then grab the field ids
79
+ ```
80
+
81
+ Columns and types are inferred from the result set; if you change the SELECT shape, drop the table first (`transform delete-table <id>`) or the next run will fail on a column-mismatch error. A changed shape also needs a re-sync before MBQL sees the new/renamed columns.
72
82
 
73
83
  ## Inspect runs and cancel an in-flight run
74
84
 
@@ -107,10 +117,11 @@ Column "TAGS" not found; SQL statement:
107
117
  UPDATE "TRANSFORM" SET "TAGS" = (), "UPDATED_AT" = NOW() WHERE "ID" = ? [42122-214]
108
118
  ```
109
119
 
110
- Two specific footguns:
120
+ Three specific footguns:
111
121
 
112
122
  - **`tags` is not a key on the REST API.** The serdes/YAML representation uses `tags`; the REST contract uses `tag_ids` (an array of integer ids). If you pulled a YAML representation and want to PUT it, translate `tags: [...]` → `tag_ids: [...]` first (or omit it entirely if you're not changing tag membership).
113
123
  - **`source_type`, `target_db_id`, `target_table_id`, `entity_id`** are derived/computed by the server. They appear in GET responses for the agent's benefit; the server doesn't accept them on update.
124
+ - **`collection_id` must be a `:transforms`-namespace collection** — a regular card/dashboard collection id is rejected with `A Transform can only go in Collections in the :transforms namespace.` Omit it unless you have one (see the create notes above). Round-tripping the existing value is safe; setting it to an ordinary collection is what fails.
114
125
 
115
126
  Right shape — patch only what changes:
116
127
 
@@ -1,10 +0,0 @@
1
- import "./command-augment-BH9qgQ5u.mjs";
2
- import "./error-BLukG0Vf.mjs";
3
- import "./runtime-C2EDX9E7.mjs";
4
- import "./capabilities-Dj3NgPHg.mjs";
5
- import "./parse-id-BapRoz4R.mjs";
6
- import "./poll-task-Dalt24ov.mjs";
7
- import "./poll-CYFFYOiB.mjs";
8
- import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-CuLyFlrE.mjs";
9
-
10
- export { add_collection_default as default };
@@ -1,19 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/auth/index.ts
4
- var auth_default = defineCommand({
5
- meta: {
6
- name: "auth",
7
- description: "Authenticate against a Metabase instance"
8
- },
9
- default: "login",
10
- subCommands: {
11
- login: () => import("./login-DSS8QywX.mjs").then((m) => m.default),
12
- status: () => import("./status-DoVvjifV.mjs").then((m) => m.default),
13
- list: () => import("./list-CWItVq2v.mjs").then((m) => m.default),
14
- logout: () => import("./logout-B6acbVng.mjs").then((m) => m.default)
15
- }
16
- });
17
-
18
- //#endregion
19
- export { auth_default as default };
@@ -1,20 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/card/index.ts
4
- var card_default = defineCommand({
5
- meta: {
6
- name: "card",
7
- description: "Manage Metabase cards (questions, models, metrics)"
8
- },
9
- subCommands: {
10
- list: () => import("./list-B3CgwSU4.mjs").then((mod) => mod.default),
11
- get: () => import("./get-BVMyLnhh.mjs").then((mod) => mod.default),
12
- query: () => import("./query-DRosi9Ha.mjs").then((mod) => mod.default),
13
- create: () => import("./create-DRhRPfD-.mjs").then((mod) => mod.default),
14
- update: () => import("./update-BHit5RyS.mjs").then((mod) => mod.default),
15
- archive: () => import("./archive-DNVqPMhp.mjs").then((mod) => mod.default)
16
- }
17
- });
18
-
19
- //#endregion
20
- export { card_default as default };
@@ -1,20 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/collection/index.ts
4
- var collection_default = defineCommand({
5
- meta: {
6
- name: "collection",
7
- description: "Manage Metabase collections"
8
- },
9
- subCommands: {
10
- list: () => import("./list-CkCgkJFh.mjs").then((mod) => mod.default),
11
- get: () => import("./get-C5PKCCzj.mjs").then((mod) => mod.default),
12
- items: () => import("./items-D6h0ejme.mjs").then((mod) => mod.default),
13
- tree: () => import("./tree-CGBtDXfk.mjs").then((mod) => mod.default),
14
- create: () => import("./create-BqiR1kvi.mjs").then((mod) => mod.default),
15
- archive: () => import("./archive-COAWrOVp.mjs").then((mod) => mod.default)
16
- }
17
- });
18
-
19
- //#endregion
20
- export { collection_default as default };
@@ -1,21 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/dashboard/index.ts
4
- var dashboard_default = defineCommand({
5
- meta: {
6
- name: "dashboard",
7
- description: "Manage Metabase dashboards"
8
- },
9
- subCommands: {
10
- list: () => import("./list-r3gm10tz.mjs").then((mod) => mod.default),
11
- get: () => import("./get-z9XIWbVG.mjs").then((mod) => mod.default),
12
- cards: () => import("./cards-CYKPNOp3.mjs").then((mod) => mod.default),
13
- create: () => import("./create-BfRIHlHk.mjs").then((mod) => mod.default),
14
- update: () => import("./update-BJn9ZitD.mjs").then((mod) => mod.default),
15
- "update-dashcard": () => import("./update-dashcard-C8BGZtY7.mjs").then((mod) => mod.default),
16
- archive: () => import("./archive-mdSqCzVw.mjs").then((mod) => mod.default)
17
- }
18
- });
19
-
20
- //#endregion
21
- export { dashboard_default as default };
@@ -1,22 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/db/index.ts
4
- var db_default = defineCommand({
5
- meta: {
6
- name: "db",
7
- description: "Inspect and sync Metabase databases",
8
- alias: "database"
9
- },
10
- subCommands: {
11
- list: () => import("./list-BJxm0-6m.mjs").then((m) => m.default),
12
- get: () => import("./get-CgdzDOTX.mjs").then((m) => m.default),
13
- metadata: () => import("./metadata-D_wFDaCb.mjs").then((m) => m.default),
14
- schemas: () => import("./schemas-DnGJlmQl.mjs").then((m) => m.default),
15
- "schema-tables": () => import("./schema-tables-CZr0QT1g.mjs").then((m) => m.default),
16
- "sync-schema": () => import("./sync-schema-CvXkT9Rg.mjs").then((m) => m.default),
17
- "rescan-values": () => import("./rescan-values-C3L03Crf.mjs").then((m) => m.default)
18
- }
19
- });
20
-
21
- //#endregion
22
- export { db_default as default };
@@ -1,18 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/field/index.ts
4
- var field_default = defineCommand({
5
- meta: {
6
- name: "field",
7
- description: "Manage Metabase fields"
8
- },
9
- subCommands: {
10
- get: () => import("./get-BLUldOxi.mjs").then((m) => m.default),
11
- values: () => import("./values-07BZxAK5.mjs").then((m) => m.default),
12
- summary: () => import("./summary-BsdiF7LZ.mjs").then((m) => m.default),
13
- update: () => import("./update-DqAKFmkw.mjs").then((m) => m.default)
14
- }
15
- });
16
-
17
- //#endregion
18
- export { field_default as default };
@@ -1,28 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/git-sync/index.ts
4
- var git_sync_default = defineCommand({
5
- meta: {
6
- name: "git-sync",
7
- description: "Sync Metabase content with a git remote"
8
- },
9
- subCommands: {
10
- status: () => import("./status-B7H0JH52.mjs").then((mod) => mod.default),
11
- "is-dirty": () => import("./is-dirty-C_RyVkc1.mjs").then((mod) => mod.default),
12
- "has-remote-changes": () => import("./has-remote-changes-BNjTil7k.mjs").then((mod) => mod.default),
13
- dirty: () => import("./dirty-hGWiemB-.mjs").then((mod) => mod.default),
14
- "current-task": () => import("./current-task-5buIatuG.mjs").then((mod) => mod.default),
15
- "cancel-task": () => import("./cancel-task-DX_OdGan.mjs").then((mod) => mod.default),
16
- wait: () => import("./wait-DWyuBO_X.mjs").then((mod) => mod.default),
17
- import: () => import("./import-C0iBM0UR.mjs").then((mod) => mod.default),
18
- export: () => import("./export-wh9l0s7F.mjs").then((mod) => mod.default),
19
- stash: () => import("./stash-B4RTStPo.mjs").then((mod) => mod.default),
20
- branches: () => import("./branches-DwV1q-4h.mjs").then((mod) => mod.default),
21
- "create-branch": () => import("./create-branch-2yEa7-9x.mjs").then((mod) => mod.default),
22
- "add-collection": () => import("./add-collection-DkucDB2N.mjs").then((mod) => mod.default),
23
- "remove-collection": () => import("./remove-collection-CLWw-48s.mjs").then((mod) => mod.default)
24
- }
25
- });
26
-
27
- //#endregion
28
- export { git_sync_default as default };
@@ -1,9 +0,0 @@
1
- import "./command-augment-BH9qgQ5u.mjs";
2
- import "./error-BLukG0Vf.mjs";
3
- import "./runtime-C2EDX9E7.mjs";
4
- import "./capabilities-Dj3NgPHg.mjs";
5
- import "./poll-task-Dalt24ov.mjs";
6
- import "./poll-CYFFYOiB.mjs";
7
- import { IsDirtyResult, is_dirty_default } from "./is-dirty-D_e5Xoke.mjs";
8
-
9
- export { is_dirty_default as default };
@@ -1,19 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/measure/index.ts
4
- var measure_default = defineCommand({
5
- meta: {
6
- name: "measure",
7
- description: "Manage Metabase measures"
8
- },
9
- subCommands: {
10
- list: () => import("./list-DLC82gFo.mjs").then((mod) => mod.default),
11
- get: () => import("./get-C_LAPJ7J.mjs").then((mod) => mod.default),
12
- create: () => import("./create-CE1WZ4du.mjs").then((mod) => mod.default),
13
- update: () => import("./update-B89kI8l9.mjs").then((mod) => mod.default),
14
- archive: () => import("./archive-Dt1qDaIF.mjs").then((mod) => mod.default)
15
- }
16
- });
17
-
18
- //#endregion
19
- export { measure_default as default };
@@ -1,19 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/segment/index.ts
4
- var segment_default = defineCommand({
5
- meta: {
6
- name: "segment",
7
- description: "Manage Metabase segments"
8
- },
9
- subCommands: {
10
- list: () => import("./list-DcV2bfg8.mjs").then((mod) => mod.default),
11
- get: () => import("./get-BhFiIyyH.mjs").then((mod) => mod.default),
12
- create: () => import("./create-CQxJpVXk.mjs").then((mod) => mod.default),
13
- update: () => import("./update-JpO3b8g3.mjs").then((mod) => mod.default),
14
- archive: () => import("./archive-C1lk1rR7.mjs").then((mod) => mod.default)
15
- }
16
- });
17
-
18
- //#endregion
19
- export { segment_default as default };
@@ -1,19 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/snippet/index.ts
4
- var snippet_default = defineCommand({
5
- meta: {
6
- name: "snippet",
7
- description: "Manage Metabase native query snippets"
8
- },
9
- subCommands: {
10
- list: () => import("./list-D0ZVA1e1.mjs").then((mod) => mod.default),
11
- get: () => import("./get-DETcYP1F.mjs").then((mod) => mod.default),
12
- create: () => import("./create-B4aKAWaQ.mjs").then((mod) => mod.default),
13
- update: () => import("./update-C44bumhM.mjs").then((mod) => mod.default),
14
- archive: () => import("./archive-C2AfP9G_.mjs").then((mod) => mod.default)
15
- }
16
- });
17
-
18
- //#endregion
19
- export { snippet_default as default };
@@ -1,19 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/table/index.ts
4
- var table_default = defineCommand({
5
- meta: {
6
- name: "table",
7
- description: "Manage Metabase tables"
8
- },
9
- subCommands: {
10
- list: () => import("./list-BZkOPBmK.mjs").then((m) => m.default),
11
- get: () => import("./get-Cu7Om0g2.mjs").then((m) => m.default),
12
- metadata: () => import("./metadata-C-bcafH-.mjs").then((m) => m.default),
13
- fields: () => import("./fields-BD52yx5k.mjs").then((m) => m.default),
14
- update: () => import("./update-BA48uHRd.mjs").then((m) => m.default)
15
- }
16
- });
17
-
18
- //#endregion
19
- export { table_default as default };
@@ -1,24 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/transform/index.ts
4
- var transform_default = defineCommand({
5
- meta: {
6
- name: "transform",
7
- description: "Manage Metabase transforms"
8
- },
9
- subCommands: {
10
- list: () => import("./list-pXgd_HTy.mjs").then((mod) => mod.default),
11
- get: () => import("./get-436DayeX.mjs").then((mod) => mod.default),
12
- create: () => import("./create-BscN4jFB.mjs").then((mod) => mod.default),
13
- update: () => import("./update-BJhk_A4R.mjs").then((mod) => mod.default),
14
- delete: () => import("./delete-CF8in6gw.mjs").then((mod) => mod.default),
15
- "delete-table": () => import("./delete-table-m-6cOPnX.mjs").then((mod) => mod.default),
16
- run: () => import("./run-PL8TRDGx.mjs").then((mod) => mod.default),
17
- cancel: () => import("./cancel-DDKstWQM.mjs").then((mod) => mod.default),
18
- "get-run": () => import("./get-run-BEvwTmr7.mjs").then((mod) => mod.default),
19
- runs: () => import("./runs-B86YP36a.mjs").then((mod) => mod.default)
20
- }
21
- });
22
-
23
- //#endregion
24
- export { transform_default as default };
@@ -1,19 +0,0 @@
1
- import { defineCommand } from "citty";
2
-
3
- //#region src/commands/transform-job/index.ts
4
- var transform_job_default = defineCommand({
5
- meta: {
6
- name: "transform-job",
7
- description: "Manage Metabase transform jobs"
8
- },
9
- subCommands: {
10
- list: () => import("./list-CmVbbX3f.mjs").then((mod) => mod.default),
11
- get: () => import("./get-EJOWmpkC.mjs").then((mod) => mod.default),
12
- create: () => import("./create-BfseKO3F.mjs").then((mod) => mod.default),
13
- update: () => import("./update-WMzbyUw2.mjs").then((mod) => mod.default),
14
- delete: () => import("./delete-C3i5dE4s.mjs").then((mod) => mod.default)
15
- }
16
- });
17
-
18
- //#endregion
19
- export { transform_job_default as default };