@metabase/cli 0.1.0-alpha.workspaces-commands.818a8f1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -237
- package/dist/{archive-BPG5c88Y.mjs → archive-CsWeHXle.mjs} +4 -5
- package/dist/{auth--Hpjwlaf.mjs → auth-BF7IjZIH.mjs} +3 -3
- package/dist/{body-DwU2s6Pg.mjs → body-Dv9hQ0Qk.mjs} +2 -2
- package/dist/{branches-BbcoJXfp.mjs → branches-BujtceGr.mjs} +4 -5
- package/dist/{cancel-task-BDas45YO.mjs → cancel-task-CT2xUMRg.mjs} +4 -5
- package/dist/card-_Ta7zdYe.mjs +19 -0
- package/dist/cli.mjs +13 -17
- package/dist/{create-DpnjQvPw.mjs → create-B8ektf-R.mjs} +6 -7
- package/dist/{create-_UOeEXAj.mjs → create-CI2Cunq5.mjs} +6 -7
- package/dist/{create-CwVcoq0O.mjs → create-DdbU3TLX.mjs} +6 -7
- package/dist/{create-branch-sDttBORB.mjs → create-branch-goZBTNnr.mjs} +4 -5
- package/dist/{current-task-BGt1mqaX.mjs → current-task-DBjRNCFq.mjs} +4 -5
- package/dist/{db-Dm2u2ISJ.mjs → db-DMghzgb6.mjs} +2 -2
- package/dist/{delete-DRBTgyus.mjs → delete-8vGU35r3.mjs} +5 -6
- package/dist/{delete-DUC_stoL.mjs → delete-B27KLF5X.mjs} +5 -6
- package/dist/{delete-runtime-inOVw3IX.mjs → delete-runtime-Byr60cR3.mjs} +2 -4
- package/dist/{delete-table-9Is631O_.mjs → delete-table-BNaJ_gA4.mjs} +5 -6
- package/dist/{dirty-CLjHbz6J.mjs → dirty-aNUuph4I.mjs} +4 -5
- package/dist/{export-D2Anfu3p.mjs → export-QDkuuzSE.mjs} +5 -6
- package/dist/{field-Dhs2AND3.mjs → field-DaYo_90x.mjs} +1 -1
- package/dist/{get-DhIoNeOp.mjs → get-BGBIzMKY.mjs} +4 -5
- package/dist/{get-CAVVmdMX.mjs → get-COXHplHP.mjs} +4 -5
- package/dist/{get-CAPLfawI.mjs → get-Cl8-IauC.mjs} +4 -5
- package/dist/{get-DDWpubE8.mjs → get-Cwpj7lDe.mjs} +5 -6
- package/dist/{get-BHJA78zg.mjs → get-DI_IJvgk.mjs} +4 -5
- package/dist/{get-2po1uv9i.mjs → get-Dh_acl8q.mjs} +4 -5
- package/dist/{get-qPOsuTPw.mjs → get-i6LWOByV.mjs} +4 -5
- package/dist/{has-remote-changes-DAL5jetW.mjs → has-remote-changes-hjKoQuRy.mjs} +4 -5
- package/dist/{import-CUMxUfSF.mjs → import-HJsSKRYx.mjs} +5 -6
- package/dist/{input-BNqSFl38.mjs → input-Dojr-RTw.mjs} +1 -1
- package/dist/{is-dirty-B10S6MG0.mjs → is-dirty-1Qy7hiHB.mjs} +2 -3
- package/dist/is-dirty-DpKn9HJp.mjs +8 -0
- package/dist/{key-CyhOpgWt.mjs → key-DBxPSFwi.mjs} +1 -1
- package/dist/{license-DtsGJi3l.mjs → license-MoWse3ZI.mjs} +3 -3
- package/dist/{list-Y7iGsOfE.mjs → list-Bk6RsbJl.mjs} +3 -4
- package/dist/{list-DeFGwhhJ.mjs → list-C4Ajrw8f.mjs} +3 -4
- package/dist/{list-C5MGydGU.mjs → list-C8tdLOH5.mjs} +3 -4
- package/dist/{list-evtQS7jl.mjs → list-CBSBHtK-.mjs} +3 -4
- package/dist/{list-qetY9OIN.mjs → list-CWt3fqrZ.mjs} +3 -4
- package/dist/{list-OBx5B3gd.mjs → list-C_PRdL5e.mjs} +5 -6
- package/dist/{login-Dqw9ZtCx.mjs → login-C9WTwNn6.mjs} +4 -5
- package/dist/{logout-DwYJ5OUi.mjs → logout-oLszGCOg.mjs} +3 -4
- package/dist/{package-t8dKf4m_.mjs → package-BGfw4ZWJ.mjs} +1 -2
- package/dist/parse-id-BhmmfyCP.mjs +14 -0
- package/dist/{poll-D2sXM5rc.mjs → poll-ILanYysl.mjs} +1 -1
- package/dist/{poll-task-Byiunmaj.mjs → poll-task-DbpsiQhl.mjs} +2 -2
- package/dist/{prompt-fXeNtj0M.mjs → prompt-DpT8yAVy.mjs} +1 -1
- package/dist/{query-BnGVGeM3.mjs → query-PihYi-UZ.mjs} +4 -5
- package/dist/{remove-Bx48o-0S.mjs → remove-B2hVYn1v.mjs} +3 -4
- package/dist/{run-D4NgvaRh.mjs → run-C2so6Qp6.mjs} +27 -11
- package/dist/{runtime-DUgFfYkN.mjs → runtime-C9CEZhcn.mjs} +335 -203
- package/dist/{search-4wKx5ug2.mjs → search-CopOytXY.mjs} +4 -5
- package/dist/{set-BZnCRL4c.mjs → set-BcF7M1GQ.mjs} +4 -5
- package/dist/{set-DCjrmTFm.mjs → set-CbibegpA.mjs} +6 -7
- package/dist/{setting-C4vQSqer.mjs → setting-U3NtBMFo.mjs} +3 -3
- package/dist/{stash-ZZkmW_V7.mjs → stash-DOBbYozC.mjs} +5 -6
- package/dist/{status-DezF-PIM.mjs → status-Buf1ZbNR.mjs} +5 -6
- package/dist/{status-JH6BZppo.mjs → status-CUcs8XBH.mjs} +2 -3
- package/dist/{status-9KAPIpX8.mjs → status-D1F5XHae.mjs} +2 -3
- package/dist/sync-BPyGXfUk.mjs +26 -0
- package/dist/{table-BvAr2ixC.mjs → table-Cfk7oSvw.mjs} +1 -1
- package/dist/{table-D-Mb5Nvw.mjs → table-D7nJt7JO.mjs} +2 -2
- package/dist/transform-UbyewMxY.mjs +21 -0
- package/dist/transform-job-CrYkr-Ma.mjs +19 -0
- package/dist/{update-DxKlQ0hP.mjs → update-CL8tRbxr.mjs} +7 -8
- package/dist/{update-CDtm71m2.mjs → update-DU2oU2j-.mjs} +7 -8
- package/dist/{wait-Cj_8wu4y.mjs → wait-Bugr9eXD.mjs} +5 -6
- package/package.json +1 -2
- package/dist/api-key-D9XxErQn.mjs +0 -13
- package/dist/card-D4zZSPUb.mjs +0 -19
- package/dist/create-Bd_U1zWU.mjs +0 -124
- package/dist/create-CCzsCZMm.mjs +0 -47
- package/dist/credentials-C0xKke5D.mjs +0 -84
- package/dist/database-4V1iiPEx.mjs +0 -17
- package/dist/deprovision-BAMzZc6f.mjs +0 -60
- package/dist/docker-QWVMG2gl.mjs +0 -605
- package/dist/eid-BNhutC1U.mjs +0 -13
- package/dist/flag-pair-CWvvzDJ_.mjs +0 -17
- package/dist/is-dirty-CUuq-aB6.mjs +0 -9
- package/dist/list-B8s7Qnzk.mjs +0 -31
- package/dist/logs-B_lrY7Js.mjs +0 -57
- package/dist/parse-id-C1prc9US.mjs +0 -12
- package/dist/provision-DC4_HWZD.mjs +0 -80
- package/dist/ps-1bZKIwWh.mjs +0 -9
- package/dist/ps-BiOrecEe.mjs +0 -78
- package/dist/remove-DecoZzNd.mjs +0 -97
- package/dist/render-DlBijc5i.mjs +0 -179
- package/dist/setup-Dqh9hN6l.mjs +0 -70
- package/dist/start-xXQypG5L.mjs +0 -324
- package/dist/stop-br-ZOnve.mjs +0 -80
- package/dist/sync-C7VOWD00.mjs +0 -26
- package/dist/transform-CqxZwhGs.mjs +0 -21
- package/dist/transform-job-HjbqjEoP.mjs +0 -19
- package/dist/translate-DJxDVAE4.mjs +0 -110
- package/dist/update-DYVeVjk2.mjs +0 -76
- package/dist/url-DP88YHNo.mjs +0 -53
- package/dist/wait-DwZN3ZwR.mjs +0 -19
- package/dist/wait-flags-CjW4ogUJ.mjs +0 -35
- package/dist/workspace-CbwR0vX_.mjs +0 -24
- package/dist/workspace-Dr9lWU3D.mjs +0 -72
- package/dist/workspace-credentials-q5RRFMT8.mjs +0 -139
- /package/dist/{body-flags-7oqLhu5j.mjs → body-flags-BUA9XV1u.mjs} +0 -0
- /package/dist/{card-C31pGtBZ.mjs → card-CsXk8T6A.mjs} +0 -0
- /package/dist/{database-BTX5qbSv.mjs → database-PA9Goi25.mjs} +0 -0
- /package/dist/{field-QwBMAWsq.mjs → field-C8IVs6rp.mjs} +0 -0
- /package/dist/{manifest-wzEFG0JB.mjs → manifest-CAdjQYH8.mjs} +0 -0
- /package/dist/{setting-DM7pm7yh.mjs → setting-26ckqHAP.mjs} +0 -0
- /package/dist/{transform-DfVkUttP.mjs → transform-B5uRpg1G.mjs} +0 -0
- /package/dist/{transform-job-DuB_OjhO.mjs → transform-job-C7QXWTVE.mjs} +0 -0
package/README.md
CHANGED
|
@@ -493,243 +493,6 @@ metabase sync create-branch feat/dashboards
|
|
|
493
493
|
metabase sync create-branch feat/x --json
|
|
494
494
|
```
|
|
495
495
|
|
|
496
|
-
## Workspaces
|
|
497
|
-
|
|
498
|
-
CRUD on `/api/ee/workspace-manager`. Run against the workspace-manager parent instance.
|
|
499
|
-
|
|
500
|
-
### `metabase workspace list`
|
|
501
|
-
|
|
502
|
-
```sh
|
|
503
|
-
metabase workspace list
|
|
504
|
-
metabase workspace list --json
|
|
505
|
-
```
|
|
506
|
-
|
|
507
|
-
### `metabase workspace create`
|
|
508
|
-
|
|
509
|
-
```sh
|
|
510
|
-
metabase workspace create --name analytics
|
|
511
|
-
echo '{"name":"analytics"}' | metabase workspace create
|
|
512
|
-
metabase workspace create --file workspace.json
|
|
513
|
-
```
|
|
514
|
-
|
|
515
|
-
| Flag | Description |
|
|
516
|
-
| --------------- | ------------------------------------------------------- |
|
|
517
|
-
| `--name <name>` | Workspace name. Shortcut for `--body '{"name":"<n>"}'`. |
|
|
518
|
-
| `--body <json>` | Inline JSON body. |
|
|
519
|
-
| `--file <path>` | Path to JSON body file. |
|
|
520
|
-
|
|
521
|
-
### `metabase workspace database provision <workspace-id>`
|
|
522
|
-
|
|
523
|
-
Provision a database into a workspace. The backend kicks off the work asynchronously and returns the workspace with the new entry in `status: "provisioning"`. Pass `--wait` to poll until the entry reaches `status: "provisioned"` and surface the polled state instead of the initial response.
|
|
524
|
-
|
|
525
|
-
```sh
|
|
526
|
-
metabase workspace database provision 1 --database-id 5 --schemas analytics,github
|
|
527
|
-
metabase workspace database provision 1 --database-id 5 --schemas analytics --wait
|
|
528
|
-
metabase workspace database provision 1 --file provision.json
|
|
529
|
-
```
|
|
530
|
-
|
|
531
|
-
| Flag | Description |
|
|
532
|
-
| -------------------- | -------------------------------------------------------------- |
|
|
533
|
-
| `--database-id <id>` | Database id (used with `--schemas`). |
|
|
534
|
-
| `--schemas <csv>` | Comma-separated input schemas (used with `--database-id`). |
|
|
535
|
-
| `--body <json>` | Inline JSON body. |
|
|
536
|
-
| `--file <path>` | Path to JSON body file. |
|
|
537
|
-
| `--wait` | Poll until the database entry reaches `status: "provisioned"`. |
|
|
538
|
-
| `--timeout <ms>` | Polling timeout in ms (default 600000). Used with `--wait`. |
|
|
539
|
-
| `--interval <ms>` | Polling interval in ms (default 2000). Used with `--wait`. |
|
|
540
|
-
|
|
541
|
-
### `metabase workspace database update <workspace-id> <db-id>`
|
|
542
|
-
|
|
543
|
-
Update a workspace's provisioned database (server-side this is deprovision + provision). Body accepts only `input_schemas` — the database id comes from the URL.
|
|
544
|
-
|
|
545
|
-
```sh
|
|
546
|
-
metabase workspace database update 1 5 --schemas analytics,github
|
|
547
|
-
metabase workspace database update 1 5 --schemas analytics --wait
|
|
548
|
-
metabase workspace database update 1 5 --file update.json
|
|
549
|
-
```
|
|
550
|
-
|
|
551
|
-
| Flag | Description |
|
|
552
|
-
| ----------------- | ----------------------------------------------------------------- |
|
|
553
|
-
| `--schemas <csv>` | Comma-separated input schemas. Shortcut for body. |
|
|
554
|
-
| `--body <json>` | Inline JSON body (`{"input_schemas":[...]}`). |
|
|
555
|
-
| `--file <path>` | Path to JSON body file. |
|
|
556
|
-
| `--wait` | Poll until the database entry returns to `status: "provisioned"`. |
|
|
557
|
-
| `--timeout <ms>` | Polling timeout in ms (default 600000). Used with `--wait`. |
|
|
558
|
-
| `--interval <ms>` | Polling interval in ms (default 2000). Used with `--wait`. |
|
|
559
|
-
|
|
560
|
-
### `metabase workspace database deprovision <workspace-id> <db-id>`
|
|
561
|
-
|
|
562
|
-
```sh
|
|
563
|
-
metabase workspace database deprovision 1 5 --yes
|
|
564
|
-
metabase workspace database deprovision 1 5 --yes --wait
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
| Flag | Description |
|
|
568
|
-
| ----------------- | ------------------------------------------------------------ |
|
|
569
|
-
| `--yes` | Skip confirmation. Required on non-TTY. |
|
|
570
|
-
| `--wait` | Poll until the database entry is removed from the workspace. |
|
|
571
|
-
| `--timeout <ms>` | Polling timeout in ms (default 600000). Used with `--wait`. |
|
|
572
|
-
| `--interval <ms>` | Polling interval in ms (default 2000). Used with `--wait`. |
|
|
573
|
-
|
|
574
|
-
### Local runtime
|
|
575
|
-
|
|
576
|
-
These commands manage a Docker container that serves as the workspace's child Metabase instance. State lives in Docker labels and a named volume — there is no per-workspace local state directory. The container is named `metabase-workspace-<id>`; the app-db volume is `metabase-workspace-<id>-appdb`.
|
|
577
|
-
|
|
578
|
-
### `metabase workspace start <id>`
|
|
579
|
-
|
|
580
|
-
```sh
|
|
581
|
-
metabase workspace start 1
|
|
582
|
-
metabase workspace start 1 --wait
|
|
583
|
-
metabase workspace start 1 --port 3100
|
|
584
|
-
metabase workspace start 1 --image metabase/metabase-dev:feature-workspaces-v2 --no-pull
|
|
585
|
-
metabase workspace start 1 --force
|
|
586
|
-
metabase workspace start 1 --repo /path/to/sync-repo --wait
|
|
587
|
-
metabase workspace start 1 --repo /path/to/sync-repo --repo-branch dev --repo-mode read-only
|
|
588
|
-
```
|
|
589
|
-
|
|
590
|
-
Resolves the parent via the active profile (or `--profile`/`--url`/`--api-key`) and the EE license via `resolveLicenseToken` (the same path `metabase license set` writes to). Refuses to start if the workspace has any database that isn't `status: "provisioned"`.
|
|
591
|
-
|
|
592
|
-
The boot bundle (`config.yml`, `credentials.json`, optional `metadata.json`) is built in process memory and tar-streamed into the container's `/mw-config/` directory through `docker cp -`; no host-disk artifact is created. The CLI generates a per-workspace admin user + API key, injects them into the YAML before shipping, and stores the same values in `credentials.json` for later retrieval via `metabase workspace credentials`. Once the child logs that it has read `config.yml`, the CLI scrubs the in-container copy (`docker exec rm /mw-config/config.yml`) so the warehouse credentials in `details.password` no longer linger; `credentials.json` stays.
|
|
593
|
-
|
|
594
|
-
By default `start` returns once the bundle has been consumed by the child (`state: "starting"`); pass `--wait` to also block until `/api/health` reports ready and the response reports `state: "running"`.
|
|
595
|
-
|
|
596
|
-
When `--repo <host-path>` is passed, the CLI bind-mounts the host directory at `/mnt/repo` inside the container and injects three settings into the workspace's `config.yml` so the child boots already wired to the repo: `remote-sync-url=file:///mnt/repo`, `remote-sync-branch=<branch>` (defaults to the current branch of the host repo, read via `git -C <path> symbolic-ref --short HEAD`; override with `--repo-branch`), and `remote-sync-type=<mode>` (defaults to `read-write`; override with `--repo-mode read-only`, which also makes the bind mount read-only). The bind mount is set at container-create time only — to add or change it after the fact, run `start --force` again with the new flags. The host path must be an existing directory; the CLI does not create or `git init` it for you.
|
|
597
|
-
|
|
598
|
-
| Flag | Description |
|
|
599
|
-
| ---------------------- | --------------------------------------------------------------------------------------------------------- |
|
|
600
|
-
| `--port <n>` | Host port (default: 3000; auto-shifts up to 100 ports if taken). |
|
|
601
|
-
| `--image <ref>` | Docker image (default: `metabase/metabase-dev:feature-workspaces-v2`). |
|
|
602
|
-
| `--wait` | Block until `/api/health` is ready. Default: return as soon as consumed. |
|
|
603
|
-
| `--timeout <ms>` | Health check deadline (default: 180000). Used with `--wait`. |
|
|
604
|
-
| `--no-pull` | Skip `docker pull` (useful if the image is already present). |
|
|
605
|
-
| `--no-metadata` | Skip the warehouse metadata export. |
|
|
606
|
-
| `--force` | If a container for this workspace already exists, remove it before starting. |
|
|
607
|
-
| `--repo <host-path>` | Bind-mount a host directory at `/mnt/repo` and set `remote-sync-url=file:///mnt/repo` in `config.yml`. |
|
|
608
|
-
| `--repo-branch <name>` | `remote-sync-branch` value (default: current branch of the host repo). |
|
|
609
|
-
| `--repo-mode <mode>` | `remote-sync-type`: `read-write` (default) or `read-only`. Read-only also makes the bind mount read-only. |
|
|
610
|
-
|
|
611
|
-
### `metabase workspace stop <id>`
|
|
612
|
-
|
|
613
|
-
```sh
|
|
614
|
-
metabase workspace stop 1
|
|
615
|
-
metabase workspace stop 1 --json
|
|
616
|
-
```
|
|
617
|
-
|
|
618
|
-
Stops the running container; no-ops if it's already exited or missing. Reports the prior state.
|
|
619
|
-
|
|
620
|
-
### `metabase workspace remove <id>`
|
|
621
|
-
|
|
622
|
-
```sh
|
|
623
|
-
metabase workspace remove 1 --yes
|
|
624
|
-
metabase workspace remove 1 --keep-volume --yes
|
|
625
|
-
```
|
|
626
|
-
|
|
627
|
-
Stops and removes the container. By default, also removes the app-db volume — pass `--keep-volume` to preserve it across rebuilds. **Does not affect the remote workspace** on the parent.
|
|
628
|
-
|
|
629
|
-
| Flag | Description |
|
|
630
|
-
| --------------- | ------------------------------------------------------------- |
|
|
631
|
-
| `--yes` | Skip confirmation. Required on non-TTY. |
|
|
632
|
-
| `--keep-volume` | Preserve the app-db volume (`metabase-workspace-<id>-appdb`). |
|
|
633
|
-
|
|
634
|
-
### `metabase workspace logs <id>`
|
|
635
|
-
|
|
636
|
-
```sh
|
|
637
|
-
metabase workspace logs 1
|
|
638
|
-
metabase workspace logs 1 --follow
|
|
639
|
-
metabase workspace logs 1 --tail 500
|
|
640
|
-
```
|
|
641
|
-
|
|
642
|
-
Passthrough to `docker logs`. Output streams directly to your terminal; Ctrl-C terminates a follow.
|
|
643
|
-
|
|
644
|
-
| Flag | Description |
|
|
645
|
-
| -------------- | --------------------------------------------- |
|
|
646
|
-
| `--follow, -f` | Stream indefinitely. |
|
|
647
|
-
| `--tail <n>` | Lines from the end of the logs (default 200). |
|
|
648
|
-
|
|
649
|
-
### `metabase workspace url <id>`
|
|
650
|
-
|
|
651
|
-
```sh
|
|
652
|
-
metabase workspace url 1
|
|
653
|
-
metabase workspace url 1 --json
|
|
654
|
-
```
|
|
655
|
-
|
|
656
|
-
Prints `http://localhost:<port>` for the workspace's container. Reads the host port from the container's `com.metabase.workspace.host-port` label.
|
|
657
|
-
|
|
658
|
-
### `metabase workspace credentials <id>`
|
|
659
|
-
|
|
660
|
-
```sh
|
|
661
|
-
metabase workspace credentials 1
|
|
662
|
-
metabase workspace credentials 1 --json
|
|
663
|
-
```
|
|
664
|
-
|
|
665
|
-
Reads the workspace child's admin credentials (email, password, admin API key) from `/mw-config/credentials.json` inside the container. The file is written by `workspace start` from CLI-generated, per-workspace values; the same values are injected into `config.yml`'s `:users` and `:api-keys` sections so they take effect on the child's first boot. Works against running and stopped containers (uses `docker cp`); errors clearly if no container exists for the given workspace id. Removing the container destroys the file — recover by `workspace start <id> --force`.
|
|
666
|
-
|
|
667
|
-
### `metabase workspace ps`
|
|
668
|
-
|
|
669
|
-
```sh
|
|
670
|
-
metabase workspace ps
|
|
671
|
-
metabase workspace ps --json
|
|
672
|
-
```
|
|
673
|
-
|
|
674
|
-
Lists every container that carries the `com.metabase.workspace.id` label, running or stopped. The `--json` envelope is the canonical agent-facing shape and contains only `workspace_id`, `workspace_name`, `state`, and `url`; `--full --json` emits the wider record (image, profile, parent URL, container name, status string, host port).
|
|
675
|
-
|
|
676
|
-
## Instance setup
|
|
677
|
-
|
|
678
|
-
Operations against a workspace-instance Metabase. The setup wizard and API key creation are distinct endpoints — there is no shared body schema.
|
|
679
|
-
|
|
680
|
-
### `metabase setup`
|
|
681
|
-
|
|
682
|
-
Complete the initial setup wizard (`POST /api/setup`). The body must include the setup token, the default user, and the `prefs` block (with `site_name`).
|
|
683
|
-
|
|
684
|
-
```sh
|
|
685
|
-
cat setup.json | metabase setup
|
|
686
|
-
metabase setup --file setup.json
|
|
687
|
-
metabase setup --body '{"token":"<setup-token>","user":{"email":"a@b.c","password":"..."},"prefs":{"site_name":"Acme"}}'
|
|
688
|
-
```
|
|
689
|
-
|
|
690
|
-
| Flag | Description |
|
|
691
|
-
| --------------- | ----------------------- |
|
|
692
|
-
| `--body <json>` | Inline JSON body. |
|
|
693
|
-
| `--file <path>` | Path to JSON body file. |
|
|
694
|
-
|
|
695
|
-
### `metabase api-key create`
|
|
696
|
-
|
|
697
|
-
Create a new API key (`POST /api/api-key`). The unmasked key is returned on creation only; capture it from the output.
|
|
698
|
-
|
|
699
|
-
```sh
|
|
700
|
-
metabase api-key create --name deploy-bot --group-id 2
|
|
701
|
-
echo '{"name":"k","group_id":2}' | metabase api-key create
|
|
702
|
-
metabase api-key create --file key.json
|
|
703
|
-
```
|
|
704
|
-
|
|
705
|
-
| Flag | Description |
|
|
706
|
-
| ----------------- | ----------------------------------------- |
|
|
707
|
-
| `--name <name>` | API key name (used with `--group-id`). |
|
|
708
|
-
| `--group-id <id>` | Permission group id (used with `--name`). |
|
|
709
|
-
| `--body <json>` | Inline JSON body. |
|
|
710
|
-
| `--file <path>` | Path to JSON body file. |
|
|
711
|
-
|
|
712
|
-
## Agent helpers
|
|
713
|
-
|
|
714
|
-
Endpoints commonly used by agents driving the instance. `card query` and `transform run` are documented in their own sections; the helper below covers entity-id translation.
|
|
715
|
-
|
|
716
|
-
### `metabase eid translate`
|
|
717
|
-
|
|
718
|
-
Translate string entity ids (EIDs) to numeric ids (`POST /api/eid-translation/translate`).
|
|
719
|
-
|
|
720
|
-
```sh
|
|
721
|
-
metabase eid translate --model card --eids abc123XYZ,def456ABC
|
|
722
|
-
metabase eid translate --file translate.json
|
|
723
|
-
metabase eid translate --body '{"entity_ids":{"card":["abc123XYZ"]}}'
|
|
724
|
-
```
|
|
725
|
-
|
|
726
|
-
| Flag | Description |
|
|
727
|
-
| ---------------- | ------------------------------------------------------------------------------------------------ |
|
|
728
|
-
| `--model <name>` | Entity model for the shortcut form (e.g. `card`, `dashboard`, `collection`). Used with `--eids`. |
|
|
729
|
-
| `--eids <csv>` | Comma-separated EIDs. Used with `--model`. |
|
|
730
|
-
| `--body <json>` | Inline JSON body. |
|
|
731
|
-
| `--file <path>` | Path to JSON body file. |
|
|
732
|
-
|
|
733
496
|
## Environment variables
|
|
734
497
|
|
|
735
498
|
| Variable | Effect |
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Card, cardView } from "./card-C31pGtBZ.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { Card, cardView } from "./card-CsXk8T6A.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/card/archive.ts
|
|
9
8
|
var archive_default = defineMetabaseCommand({
|
|
@@ -8,9 +8,9 @@ var auth_default = defineCommand({
|
|
|
8
8
|
},
|
|
9
9
|
default: "login",
|
|
10
10
|
subCommands: {
|
|
11
|
-
login: () => import("./login-
|
|
12
|
-
status: () => import("./status-
|
|
13
|
-
logout: () => import("./logout-
|
|
11
|
+
login: () => import("./login-C9WTwNn6.mjs").then((m) => m.default),
|
|
12
|
+
status: () => import("./status-CUcs8XBH.mjs").then((m) => m.default),
|
|
13
|
+
logout: () => import("./logout-oLszGCOg.mjs").then((m) => m.default)
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigError, parseJson } from "./runtime-
|
|
2
|
-
import { readInput } from "./input-
|
|
1
|
+
import { ConfigError, parseJson } from "./runtime-C9CEZhcn.mjs";
|
|
2
|
+
import { readInput } from "./input-Dojr-RTw.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/runtime/body.ts
|
|
5
5
|
async function readBody(sources, schema) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./poll-D2sXM5rc.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-DbpsiQhl.mjs";
|
|
5
|
+
import "./poll-ILanYysl.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/sync/branches.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./poll-D2sXM5rc.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-DbpsiQhl.mjs";
|
|
5
|
+
import "./poll-ILanYysl.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/sync/cancel-task.ts
|
|
9
8
|
var cancel_task_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,19 @@
|
|
|
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-C4Ajrw8f.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-Cl8-IauC.mjs").then((mod) => mod.default),
|
|
12
|
+
query: () => import("./query-PihYi-UZ.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-DdbU3TLX.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-CsWeHXle.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { card_default as default };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from "./package-
|
|
2
|
+
import { package_default } from "./package-BGfw4ZWJ.mjs";
|
|
3
3
|
import { getMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
|
|
4
4
|
import { defineCommand, renderUsage, runMain } from "citty";
|
|
5
5
|
|
|
@@ -11,22 +11,18 @@ const main = defineCommand({
|
|
|
11
11
|
description: package_default.description
|
|
12
12
|
},
|
|
13
13
|
subCommands: {
|
|
14
|
-
auth: () => import("./auth
|
|
15
|
-
license: () => import("./license-
|
|
16
|
-
db: () => import("./db-
|
|
17
|
-
table: () => import("./table-
|
|
18
|
-
field: () => import("./field-
|
|
19
|
-
card: () => import("./card-
|
|
20
|
-
transform: () => import("./transform-
|
|
21
|
-
"transform-job": () => import("./transform-job-
|
|
22
|
-
setting: () => import("./setting-
|
|
23
|
-
search: () => import("./search-
|
|
24
|
-
sync: () => import("./sync-
|
|
25
|
-
|
|
26
|
-
setup: () => import("./setup-Dqh9hN6l.mjs").then((mod) => mod.default),
|
|
27
|
-
"api-key": () => import("./api-key-D9XxErQn.mjs").then((mod) => mod.default),
|
|
28
|
-
eid: () => import("./eid-BNhutC1U.mjs").then((mod) => mod.default),
|
|
29
|
-
__manifest: () => import("./manifest-wzEFG0JB.mjs").then((mod) => mod.createManifestCommand(main))
|
|
14
|
+
auth: () => import("./auth-BF7IjZIH.mjs").then((mod) => mod.default),
|
|
15
|
+
license: () => import("./license-MoWse3ZI.mjs").then((mod) => mod.default),
|
|
16
|
+
db: () => import("./db-DMghzgb6.mjs").then((mod) => mod.default),
|
|
17
|
+
table: () => import("./table-D7nJt7JO.mjs").then((mod) => mod.default),
|
|
18
|
+
field: () => import("./field-DaYo_90x.mjs").then((mod) => mod.default),
|
|
19
|
+
card: () => import("./card-_Ta7zdYe.mjs").then((mod) => mod.default),
|
|
20
|
+
transform: () => import("./transform-UbyewMxY.mjs").then((mod) => mod.default),
|
|
21
|
+
"transform-job": () => import("./transform-job-CrYkr-Ma.mjs").then((mod) => mod.default),
|
|
22
|
+
setting: () => import("./setting-U3NtBMFo.mjs").then((mod) => mod.default),
|
|
23
|
+
search: () => import("./search-CopOytXY.mjs").then((mod) => mod.default),
|
|
24
|
+
sync: () => import("./sync-BPyGXfUk.mjs").then((mod) => mod.default),
|
|
25
|
+
__manifest: () => import("./manifest-CAdjQYH8.mjs").then((mod) => mod.createManifestCommand(main))
|
|
30
26
|
}
|
|
31
27
|
});
|
|
32
28
|
var main_default = main;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-DuB_OjhO.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import "./input-Dojr-RTw.mjs";
|
|
5
|
+
import { readBody } from "./body-Dv9hQ0Qk.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-BUA9XV1u.mjs";
|
|
7
|
+
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-C7QXWTVE.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/transform-job/create.ts
|
|
11
10
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Transform, TransformCreateInput, transformView } from "./transform-DfVkUttP.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import "./input-Dojr-RTw.mjs";
|
|
5
|
+
import { readBody } from "./body-Dv9hQ0Qk.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-BUA9XV1u.mjs";
|
|
7
|
+
import { Transform, TransformCreateInput, transformView } from "./transform-B5uRpg1G.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/transform/create.ts
|
|
11
10
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import { readBody } from "./body-
|
|
7
|
-
import { bodyInputFlags } from "./body-flags-
|
|
8
|
-
import { Card, CardCreateInput, cardView } from "./card-C31pGtBZ.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import "./input-Dojr-RTw.mjs";
|
|
5
|
+
import { Card, CardCreateInput, cardView } from "./card-CsXk8T6A.mjs";
|
|
6
|
+
import { readBody } from "./body-Dv9hQ0Qk.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-BUA9XV1u.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/card/create.ts
|
|
11
10
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./poll-D2sXM5rc.mjs";
|
|
3
|
+
import { ConfigError, connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-DbpsiQhl.mjs";
|
|
5
|
+
import "./poll-ILanYysl.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/sync/create-branch.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./poll-D2sXM5rc.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { SyncTaskOrIdle, fetchCurrentTask, syncTaskIdleView, syncTaskView } from "./poll-task-DbpsiQhl.mjs";
|
|
5
|
+
import "./poll-ILanYysl.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/sync/current-task.ts
|
|
9
8
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
@@ -8,8 +8,8 @@ var db_default = defineCommand({
|
|
|
8
8
|
alias: "database"
|
|
9
9
|
},
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
11
|
+
list: () => import("./list-CBSBHtK-.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-Dh_acl8q.mjs").then((m) => m.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import "./
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-inOVw3IX.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import "./prompt-DpT8yAVy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-Byr60cR3.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/transform/delete.ts
|
|
10
9
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import "./
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-inOVw3IX.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import "./prompt-DpT8yAVy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-Byr60cR3.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/transform-job/delete.ts
|
|
10
9
|
var delete_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { renderItem } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { promptConfirm } from "./prompt-fXeNtj0M.mjs";
|
|
1
|
+
import { ConfigError, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
2
|
+
import { promptConfirm } from "./prompt-DpT8yAVy.mjs";
|
|
4
3
|
import { z } from "zod";
|
|
5
4
|
|
|
6
5
|
//#region src/commands/delete-runtime.ts
|
|
@@ -46,7 +45,6 @@ async function confirmAndDelete(args) {
|
|
|
46
45
|
method: "DELETE",
|
|
47
46
|
expectContentType: "binary"
|
|
48
47
|
});
|
|
49
|
-
if (args.afterDelete) await args.afterDelete();
|
|
50
48
|
renderItem({
|
|
51
49
|
deleted: true,
|
|
52
50
|
aborted: false,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import "./
|
|
7
|
-
import { DeleteResult, confirmAndDelete } from "./delete-runtime-inOVw3IX.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import "./prompt-DpT8yAVy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
6
|
+
import { DeleteResult, confirmAndDelete } from "./delete-runtime-Byr60cR3.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/transform/delete-table.ts
|
|
10
9
|
var delete_table_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderList } from "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./poll-D2sXM5rc.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-DbpsiQhl.mjs";
|
|
5
|
+
import "./poll-ILanYysl.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/sync/dirty.ts
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import "./poll-D2sXM5rc.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-DbpsiQhl.mjs";
|
|
6
|
+
import "./poll-ILanYysl.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/sync/export.ts
|
|
@@ -6,7 +6,7 @@ var field_default = defineCommand({
|
|
|
6
6
|
name: "field",
|
|
7
7
|
description: "Inspect Metabase fields"
|
|
8
8
|
},
|
|
9
|
-
subCommands: { get: () => import("./get-
|
|
9
|
+
subCommands: { get: () => import("./get-DI_IJvgk.mjs").then((m) => m.default) }
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { TransformJob, transformJobView } from "./transform-job-DuB_OjhO.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-BhmmfyCP.mjs";
|
|
5
|
+
import { TransformJob, transformJobView } from "./transform-job-C7QXWTVE.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/commands/transform-job/get.ts
|
|
9
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BGfw4ZWJ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseSettingKey } from "./key-CyhOpgWt.mjs";
|
|
3
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseJson, profileFlag, renderItem } from "./runtime-C9CEZhcn.mjs";
|
|
4
|
+
import { SettingValue, settingValueView } from "./setting-26ckqHAP.mjs";
|
|
5
|
+
import { parseSettingKey } from "./key-DBxPSFwi.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/setting/get.ts
|