Skip to content

Commit 05cac5e

Browse files
github-automation-metabaseMetabase Docs bot
andauthored
[auto] adding content to release-x.57.x->release-x.57.x (#823)
Co-authored-by: Metabase Docs bot <[email protected]>
1 parent 432b322 commit 05cac5e

File tree

12 files changed

+438
-428
lines changed

12 files changed

+438
-428
lines changed

_docs/latest/api.json

Lines changed: 73 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9695,6 +9695,7 @@
96959695
"description" : "Server error response"
96969696
}
96979697
},
9698+
"deprecated" : true,
96989699
"tags" : [ "/api/activity" ]
96999700
}
97009701
},
@@ -11161,9 +11162,15 @@
1116111162
"$ref" : "#/components/schemas/metabase.analyze.query-results.ResultsMetadata"
1116211163
},
1116311164
"collection_id" : {
11164-
"description" : "value must be an integer greater than zero.",
11165-
"type" : "integer",
11166-
"minimum" : 1
11165+
"anyOf" : [ {
11166+
"description" : "value must be an integer greater than zero.",
11167+
"type" : "integer",
11168+
"minimum" : 1
11169+
}, {
11170+
"description" : "String must be a valid 21-character NanoID string.",
11171+
"type" : "string",
11172+
"pattern" : "^[A-Za-z0-9_\\-]{21}$"
11173+
} ]
1116711174
},
1116811175
"cache_ttl" : {
1116911176
"description" : "value must be an integer greater than zero.",
@@ -13091,6 +13098,7 @@
1309113098
"description" : "Server error response"
1309213099
}
1309313100
},
13101+
"deprecated" : true,
1309413102
"tags" : [ "/api/dashboard" ]
1309513103
},
1309613104
"post" : {
@@ -16183,6 +16191,44 @@
1618316191
"tags" : [ "/api/ee/billing" ]
1618416192
}
1618516193
},
16194+
"/api/ee/cloud-add-ons/addons" : {
16195+
"get" : {
16196+
"summary" : "GET /api/ee/cloud-add-ons/addons",
16197+
"description" : "Get addons information from the Metabase Store API.",
16198+
"parameters" : [ ],
16199+
"responses" : {
16200+
"2XX" : {
16201+
"description" : "Successful response"
16202+
},
16203+
"4XX" : {
16204+
"description" : "Client error response"
16205+
},
16206+
"5XX" : {
16207+
"description" : "Server error response"
16208+
}
16209+
},
16210+
"tags" : [ "/api/ee/cloud-add-ons" ]
16211+
}
16212+
},
16213+
"/api/ee/cloud-add-ons/plans" : {
16214+
"get" : {
16215+
"summary" : "GET /api/ee/cloud-add-ons/plans",
16216+
"description" : "Get plans information from the Metabase Store API.",
16217+
"parameters" : [ ],
16218+
"responses" : {
16219+
"2XX" : {
16220+
"description" : "Successful response"
16221+
},
16222+
"4XX" : {
16223+
"description" : "Client error response"
16224+
},
16225+
"5XX" : {
16226+
"description" : "Server error response"
16227+
}
16228+
},
16229+
"tags" : [ "/api/ee/cloud-add-ons" ]
16230+
}
16231+
},
1618616232
"/api/ee/cloud-add-ons/{product-type}" : {
1618716233
"post" : {
1618816234
"summary" : "POST /api/ee/cloud-add-ons/{product-type}",
@@ -16193,7 +16239,7 @@
1619316239
"required" : true,
1619416240
"schema" : {
1619516241
"type" : "string",
16196-
"enum" : [ "metabase-ai" ]
16242+
"enum" : [ "metabase-ai", "metabase-ai-tiered" ]
1619716243
}
1619816244
} ],
1619916245
"responses" : {
@@ -16213,11 +16259,13 @@
1621316259
"schema" : {
1621416260
"type" : "object",
1621516261
"properties" : {
16262+
"quantity" : {
16263+
"type" : "integer"
16264+
},
1621616265
"terms_of_service" : {
1621716266
"type" : "boolean"
1621816267
}
16219-
},
16220-
"required" : [ "terms_of_service" ]
16268+
}
1622116269
}
1622216270
}
1622316271
}
@@ -25752,6 +25800,25 @@
2575225800
"tags" : [ "/api/preview_embed" ]
2575325801
}
2575425802
},
25803+
"/api/preview_embed/dashboard/{token}/params/{param-key}/search/{prefix}" : {
25804+
"get" : {
25805+
"summary" : "GET /api/preview_embed/dashboard/{token}/params/{param-key}/search/{prefix}",
25806+
"description" : "Embedded version of chain filter search endpoint.",
25807+
"parameters" : [ ],
25808+
"responses" : {
25809+
"2XX" : {
25810+
"description" : "Successful response"
25811+
},
25812+
"4XX" : {
25813+
"description" : "Client error response"
25814+
},
25815+
"5XX" : {
25816+
"description" : "Server error response"
25817+
}
25818+
},
25819+
"tags" : [ "/api/preview_embed" ]
25820+
}
25821+
},
2575525822
"/api/preview_embed/dashboard/{token}/params/{param-key}/values" : {
2575625823
"get" : {
2575725824
"summary" : "GET /api/preview_embed/dashboard/{token}/params/{param-key}/values",
@@ -28621,25 +28688,6 @@
2862128688
"tags" : [ "/api/setup" ]
2862228689
}
2862328690
},
28624-
"/api/setup/user_defaults" : {
28625-
"get" : {
28626-
"summary" : "GET /api/setup/user_defaults",
28627-
"description" : "Returns object containing default user details for initial setup, if configured,\n and if the provided token value matches the token in the configuration value.",
28628-
"parameters" : [ ],
28629-
"responses" : {
28630-
"2XX" : {
28631-
"description" : "Successful response"
28632-
},
28633-
"4XX" : {
28634-
"description" : "Client error response"
28635-
},
28636-
"5XX" : {
28637-
"description" : "Server error response"
28638-
}
28639-
},
28640-
"tags" : [ "/api/setup" ]
28641-
}
28642-
},
2864328691
"/api/slack/bug-report" : {
2864428692
"post" : {
2864528693
"summary" : "POST /api/slack/bug-report",

_docs/latest/configuring-metabase/config-template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ config:
218218
not-behind-proxy: false
219219
notification-link-base-url: null
220220
notification-system-event-thread-pool-size: 5
221+
notification-temp-file-size-max-bytes: 10485760
221222
notification-thread-pool-size: 3
222223
persisted-model-refresh-cron-schedule: 0 0 0/6 * * ? *
223224
persisted-models-enabled: false

_docs/latest/installation-and-operation/commands.md

Lines changed: 37 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,114 +8,97 @@ title: Metabase CLI
88
source_url: >-
99
https://github.com/metabase/metabase/blob/master/docs/installation-and-operation/commands.md
1010
layout: new-docs
11+
description: >-
12+
CLI commands for managing your Metabase instance, including database
13+
migrations, serialization, and administrative tasks.
1114
latest: true
1215
---
1316

1417
# Metabase CLI
1518

16-
Metabase ships with some handy CLI commands. To view a list of commands, run the Metabase jar followed by `help`.
19+
Metabase ships with some handy CLI commands for administration, maintenance, and automation tasks. These commands let you manage your Metabase instance, migrate databases, handle serialization, and generate documentation.
20+
21+
To view a list of commands, run the Metabase jar followed by `help`.
1722

1823
```
1924
java --add-opens java.base/java.nio=ALL-UNNAMED -jar metabase.jar help
2025
```
2126

2227
Metabase will print out the help text for available commands.
2328

29+
2430
## `api-documentation`
2531

26-
Generate a markdown file containing documentation for all API endpoints. This is written to a file called `docs/api.html`.
32+
Generate an HTML and JSON files for all API endpoints.
2733

28-
## `driver-methods` | `driver-methods _docs`
34+
## `command-documentation`
2935

30-
Print a list of all multimethods available for a driver to implement. Add `_docs` to include their docstrings.
36+
Generates a markdown file containing documentation for all CLI commands. This is written to a file called `docs/installation-and-operation/commands.md`.
3137

3238
## `config-template`
3339

34-
Generates a Markdown file with documentation and an example configuration file in YAML. The YAML template includes Metabase settings and their defaults. Metabase will save the file as `docs/configuring-metabase/config-template.md`.
35-
36-
## `drop-entity-ids`
37-
38-
Drop Entity IDs for instances of serializable models. Useful for migrating from v1 serialization (x.46 and earlier) to v2 (x.47+).
40+
Generates a markdown file with some documentation and an example configuration file in YAML. The YAML template includes Metabase settings and their defaults. Metabase will save the template as `docs/configuring-metabase/config-template.md`.
3941

40-
## `dump path & options`
42+
## `driver-methods | driver-methods _docs`
4143

42-
**Note: this command is deprecated. Use `export` instead.**
44+
Print a list of all multimethods available for a driver to implement, optionally with their docstrings.
4345

44-
Serializes Metabase instance into directory `path`.
45-
46-
Options:
46+
## `drop-entity-ids`
4747

48-
- `-u, --user EMAIL` - Export collections owned by the specified user
49-
- `-s, --state (active|all)` - When set to `active`, do not dump archived entities. Default behavior is `all`
50-
- `--include-entity-id` - Include entity_id property in all dumped entities. Default: false
48+
Drop entity IDs for instances of serializable models. Useful for migrating from v1 serialization (x.46 and earlier) to v2 (x.47+).
5149

52-
## `dump-to-h2 h2-filename & opts`
50+
## `dump-to-h2 h2-filename opts`
5351

5452
Transfer data from existing database to newly created H2 DB with specified filename. Target H2 file is deleted before dump, unless the --keep-existing flag is given.
5553

5654
Options:
5755

58-
- `-k, --keep-existing` - Do not delete target H2 file if it exists
59-
- `-p, --dump-plaintext` - Do not encrypt dumped contents
56+
- `-k, --keep-existing` - Do not delete target H2 file if it exists.
57+
- `-p, --dump-plaintext` - Do not encrypt dumped contents.
6058

6159
## `environment-variables-documentation`
6260

6361
Generates a markdown file containing documentation for environment variables relevant to configuring Metabase. The command only includes environment variables registered as defsettings. For a full list of environment variables, see https://www.metabase.com/docs/latest/configuring-metabase/environment-variables.
6462

65-
## `export path & options`
66-
67-
{% include plans-blockquote.html feature="Serialization" self-hosted-only="true" %}
63+
## `export path options`
6864

6965
Serialize Metabase instance into directory at `path`.
7066

7167
Options:
7268

73-
- `-c, --collection ID` - Export only specified ID(s). Use commas to separate multiple IDs. You can pass Entity IDs with `eid:<...>` as a prefix
74-
- `-C, --no-collections` - Do not export any content in collections
69+
- `-c, --collection ID` - Export only specified ID(s). Use commas to separate multiple IDs. Pass either PKs or entity IDs.
70+
- `-C, --no-collections` - Do not export any content in collections.
7571
- `-S, --no-settings` - Do not export settings.yaml
76-
- `-D, --no-data-model` - Do not export any data model entities; useful for subsequent exports
77-
- `-f, --include-field-values` - Include field values along with field metadata
78-
- `-s, --include-database-secrets` - Include database connection details (in plain text; use caution)
79-
- `-e, --continue-on-error` - Do not break execution on errors
80-
- `--full-stacktrace` - Output full stacktraces on errors
81-
82-
## `help command-name` | `help`
72+
- `-D, --no-data-model` - Do not export any data model entities; useful for subsequent exports.
73+
- `-f, --include-field-values` - Include field values along with field metadata.
74+
- `-s, --include-database-secrets` - Include database connection details (in plain text; use caution).
75+
- `-e, --continue-on-error` - Do not break execution on errors.
76+
- `--full-stacktrace` - Output full stacktraces on errors.
8377

84-
Show this help message listing valid Metabase commands. Use `help command-name` for specific command details.
78+
## `help command-name | help`
8579

86-
## `import path & options`
80+
Show this help message listing valid Metabase commands.
8781

88-
{% include plans-blockquote.html feature="Serialization" self-hosted-only="true" %}
82+
## `import path options`
8983

90-
Load serialized Metabase instance as created by the `export` command from directory `path`.
84+
Load serialized Metabase instance as created by the [[export]] command from directory `path`.
9185

9286
Options:
9387

94-
- `-e, --continue-on-error` - Do not break execution on errors
95-
- `--full-stacktrace` - Output full stacktraces on errors
88+
- `-e, --continue-on-error` - Do not break execution on errors.
89+
- `--full-stacktrace` - Output full stacktraces on errors.
9690

97-
## `load path & options`
98-
99-
**Note: this command is deprecated. Use `import` instead.**
100-
101-
Load serialized Metabase instance as created by `dump` command from directory `path`.
102-
103-
Options:
104-
105-
- `-m, --mode (skip|update)` - Update or skip on conflicts. Default: skip
106-
- `-e, --on-error (continue|abort)` - Abort or continue on error. Default: continue
107-
108-
## `load-from-h2` | `load-from-h2 h2-connection-string`
91+
## `load-from-h2 | load-from-h2 h2-connection-string`
10992

11093
Transfer data from existing H2 database to the newly created MySQL or Postgres DB specified by env vars.
11194

11295
## `migrate direction`
11396

114-
Run database migrations. Valid options for `direction` are `up`, `force`, `down`, `print`, or `release-locks`.
97+
Run database migrations. Valid options for `direction` are `up`, `force`, `down`, `down-force`, `print`, or `release-locks`.
11598

116-
## `profile`
99+
## `remove-encryption`
117100

118-
Start Metabase the usual way and exit. Useful for profiling Metabase launch time.
101+
Decrypts data in the metabase database. The MB_ENCRYPTION_SECRET_KEY environment variable has to be set to the current key
119102

120103
## `reset-password email-address`
121104

@@ -125,13 +108,9 @@ Reset the password for a user with `email-address`.
125108

126109
Rotate the encryption key of a metabase database. The MB_ENCRYPTION_SECRET_KEY environment variable has to be set to the current key, and the parameter `new-key` has to be the new key. `new-key` has to be at least 16 chars.
127110

128-
## `remove-encryption`
129-
130-
Decrypts data in the metabase database. The MB_ENCRYPTION_SECRET_KEY environment variable has to be set to the current key.
131-
132111
## `seed-entity-ids`
133112

134-
Add Entity IDs for instances of serializable models that don't already have them.
113+
Add entity IDs for instances of serializable models that don't already have them.
135114

136115
## `version`
137116

0 commit comments

Comments
 (0)