Metabase serialization for staging to production promotion
Metabase serialization exports a Metabase instance's contents as YAML files and imports them to create or update items in another Metabase, and it is available only on the Pro and Enterprise plans. If your team builds dashboards and saved questions in one instance and needs the same content in staging, production or a regional copy, this is the documented route to move it. The Open Source and Starter plans do not include serialization, so a team on those plans has to rebuild content by hand or choose a different path before it plans a promotion workflow.
Metabase lists three use cases. The first is staging environments, where content is built and checked on a non-production instance before it reaches users. The second is version control, because the exported YAML is readable and can be reviewed and stored in Git alongside other changes. The third is duplicating template content, such as a standard set of dashboards, to other instances. Each use case changes what you must confirm: a staging flow needs a clear owner for the import step, a version control flow needs agreed rules for which files are committed, and a template flow needs a decision about which copies get updated when the source changes.
Before you commit to a promotion design, confirm your plan tier, the Metabase version on both instances and whether your instances are self-hosted or on Metabase Cloud, because the CLI and API options differ by deployment. Check the Metabase serialization documentation for the current list of excluded items and the exact commands before you write a runbook. Several items are not carried across, and the license token is excluded from exports, so each target instance needs its own activation and its own permissions and data connections set up.
CLI and API options and when each fits
This table compares the CLI and the API as the two ways to run serialization on a self-hosted Metabase. The API is the only option on Metabase Cloud, so the choice only applies to self-hosted teams, and the right column depends on whether the work runs in a script or in an interactive session.
| Factor | CLI | API |
|---|---|---|
| Where it runs | Command line on a host that can reach the Metabase JAR or installation | Any client that can send authenticated HTTP requests to the instance |
| Metabase Cloud | Not available, so Cloud-hosted instances must use the API | Available, and the only option on Metabase Cloud |
| Best fit | Scripted pipelines on self-hosted instances where the team controls the host and runtime | Cloud-hosted instances, or pipelines already built around calls to Metabase |
| Authentication | Runs against the application database and configuration on the host, so access to that host is the control point | Uses an authenticated session or API key, so credential handling and permissions are the control point |
| Ease of scheduling in CI | Straightforward inside a job runner on the same network as the instance | Straightforward when the runner can reach the instance URL |
| Plan requirement | Confirm the serialization plan requirement in the docs for your edition | Confirm the same plan requirement and any API key permissions in the docs |
| What to confirm | Exact command syntax, flags and the Metabase version the CLI supports | Endpoint names, required permissions and whether the license token is excluded in your version |
Setting up serialization between two instances
This sequence moves Metabase content from a source instance to a target instance as readable YAML, so the target matches the source and the export can be reviewed and tracked in version control. It covers the plan check, export, review, import and verification steps.
Confirm Pro or Enterprise on both instances
Before anything else, confirm that both the source and target Metabase instances run a Pro or Enterprise plan, because serialization is available only on those plans. Ask whoever holds the Metabase license to check the plan on each instance from the admin settings. The step is done when both owners have written confirmation of the plan level, and any gap is raised before the work is scheduled.
Choose the CLI or API route
Decide whether the team will run serialization through CLI commands on servers it controls or through the API. The API is the only option on Metabase Cloud, so a Cloud instance forces that choice. Record the decision, the Metabase version on each side and who will run the commands. The step is done when the runbook names the method and both versions match what the serialization docs describe for that route.
Export content from the source instance
Run the export from the source instance using the chosen route, writing the content to a dedicated directory. Scope the export to the collections and items you intend to promote, so unrelated content does not travel with it. Note that the license token is excluded from the export. The step is done when the export finishes without errors and the directory contains YAML files for the expected collections, questions, dashboards and related objects.
Review the YAML in version control
Commit the exported YAML to a Git repository and review the diff through a pull request. Check that the expected items appear, that database references and collection paths look correct, and that no credentials or tokens appear in the files. Because the YAML is readable, reviewers can spot unintended changes before anything reaches production. The step is done when a reviewer has approved the commit and the export has been tagged for import.
Import into the target instance
Import the reviewed YAML into the target instance using the same route and a Metabase version that the target supports. Confirm that the target database connections already exist, since imported content refers to them. Enter the target's own license token through the normal activation process, because the token is not carried in the export. The step is done when the import completes and the target shows a valid license.
Verify item counts and key content
Compare the number of collections, questions, dashboards and models on the source and target, then open several imported dashboards and run their questions against the target database. Confirm that filters, parameters and permissions behave as expected for a test user. Keep a short record of the counts and the checked items. The step is done when counts match the export scope and the sampled content renders and returns data on the target.
Record the promotion and repeat it deliberately
Save the export commit, the import date, the Metabase versions and the verification results in the change record. Repeat the sequence for each future promotion so the target stays traceable to a reviewed commit. Ask the Metabase team or your partner to confirm any items that serialization does not carry across in your version, and plan to recreate them by hand. The step is done when the change record links the commit to the verified target state.
How content moves from build to production instance
The flow starts on a source Metabase, a Pro or Enterprise instance where dashboards and questions are built, and serialization exports its contents as readable YAML files. Those files are reviewed in Git before anything else happens, so changes are visible as diffs. The target Metabase then imports the reviewed files to create or update items. The license token is excluded at export, so the target instance must hold its own license, and you should confirm which items and settings the import carries before relying on it.
Serialized YAML moves through Git review into a target instance that keeps its own license.
What serialization does not carry across
Serialization moves content, not the whole instance. The items below are excluded or instance-specific, so each target instance needs its own setup and verification. Check the full exclusion list in the Metabase serialization docs rather than assuming it is complete, because the list can change between versions.
License token
Metabase excludes the license token from exports, so a target instance never inherits the license from its source. Each Pro or Enterprise instance needs its own valid token applied during setup. Confirm before import that the target has an activated token for its plan, or the paid features that depend on serialization and SSO will not be available there.
Serialization docsDatabase connections and credentials
Database connection settings and their stored passwords are tied to each environment's network and secrets, so the target needs its own connections to staging or production warehouses. Ask who holds those credentials, how they are injected into the target, and whether the source and target point at the intended databases before any question or dashboard runs there.
Instance-specific settings
Site-wide settings such as the instance URL, email configuration, and branding can differ between environments. Treat each as a per-instance item to review, not as content that arrives with the import. Make a checklist of settings to set on the target and confirm each one after import, including anything that affects links or outbound mail.
Users, groups and authentication
Assume that user accounts, group membership and identity provider configuration are not a complete copy of the source. Plan how people sign in on each target, which group mappings apply there, and who receives access. Verify permissions on the target with test accounts, since serialized content does not prove that the right people can see it.
Application database and sessions
Serialization works on Metabase content, not on the application database itself. Backups, sessions, and internal state stay on each instance, so restoring one instance's application database does not copy its content to another. Plan backups for each target separately and confirm what the export actually contains before relying on it for disaster recovery.
Data and runtime state
Query results, cached data, and the data itself are not moved by serialization. A target shows content built on its own warehouse data, so validate queries and models against the target's data after import. Confirm with the vendor how each content type is handled before counting on a specific item to arrive.
Questions teams ask before promoting Metabase content
Is Metabase serialization free to use?
No. Serialization is available only on the Pro and Enterprise plans, so an open source or Starter instance cannot export or import YAML through this route. Metabase lists four plans: Open Source (free), Starter, Pro and Enterprise. Starter and Pro are priced per month with a yearly billing option and a number of included users, and Enterprise is priced by quote starting at $20,000 per year. Check the current figures and what each plan includes on the Metabase pricing page before you budget, and confirm that the plan you pick covers serialization in both the source and the target instance.
How much effort does Metabase serialization take?
The effort depends mostly on how much content you move and how many environments sit between the source and the target. A small set of dashboards and questions moved once is a short task. A recurring promotion path across staging, production and regional copies takes more work because each run needs a repeatable export, a review of the YAML diff, an import and a check of the results. The main drivers are the number of collections and items in scope, how many databases and user groups the content depends on, whether the target already holds content with the same names, and how much testing the team wants before each promotion. Ask any partner for a written breakdown of these drivers against your own content inventory.
Can our own team run Metabase serialization without a partner?
Yes, if your team has an administrator who can run the CLI or call the API, can read YAML, and can test changes in a non-production instance. Metabase documents serialization as a supported feature on Pro and Enterprise plans, and the API is the only option on Metabase Cloud. The harder parts are usually not the commands. They are agreeing which content belongs in the export, mapping database connections and groups between instances, deciding who approves a promotion, and recording what was changed. A partner is useful when you want those rules designed, documented and tested in your environment before the first production import. Metabase's serialization documentation is the right starting point for your own team.
What does a serialization project need from our team?
Plan for four inputs. First, a source Metabase and a target Metabase, both on Pro or Enterprise, with the same major version agreed in advance. Second, a test instance where imports can run without touching production, so each promotion can be checked before it lands. Third, a version control repository, usually Git, to hold the exported YAML, review changes through pull requests and keep an audit trail. Fourth, named owners for content, database connections and user groups, who can confirm what should be promoted and what must stay local. Your team also needs credentials with the access that the CLI or API requires in each instance. Confirm the exact access and version requirements with Metabase before you set up the pipeline.
Does serialization carry everything across between Metabase instances?
No. Serialization exports Metabase content as YAML and imports it to create or update items in another instance, and Metabase excludes the license token from exports. Anything outside that content, such as the target's own database connections, user accounts, permission setup and license, has to be prepared in the target instance. Before a first promotion, list each item type you expect to move and check it against Metabase's serialization documentation, then test an import in a non-production instance. Do not assume that a dashboard or question will work unchanged if the database it depends on is named or configured differently in the target.
How does serialization differ from Metabase remote sync and the config file?
The three features solve different problems. Serialization is an export and import of YAML that you run through the CLI or API, which suits staging to production promotion, version control of readable files and copying template content to other instances. Metabase remote sync, covered in its own topic, is a Git-based workflow where a read-write instance builds content and a read-only production instance pulls changes. The configuration file initializes a new Pro or Enterprise instance from a config.yml with users, databases and settings, and it is a setup tool rather than a content promotion tool. Choose serialization when you control each promotion step yourself, use remote sync when you want Git to drive the workflow, and use the config file for repeatable instance setup. Confirm which of these your plan supports before you design the pipeline.
When a partner helps with serialization
Outside help adds the most value at the design stage, before anyone exports a single file. The first decision is the environment split: which instances are read-write authoring sandboxes, which are staging, and which are production, and which of them hold the Pro or Enterprise license needed for serialization at all. Serialization is available only on Pro and Enterprise plans, so a split that puts an open source or Starter instance in the promotion path will fail before the first import. A partner can map that split against your plan tiers, your network boundaries and your change approval process, then document who may export, who may import and where the YAML is stored between the two.
The second area is database mapping. Serialized questions and dashboards refer to databases by the identifiers in each instance, so a staging instance connected to a sample or refreshed copy of the warehouse can produce content that points at the wrong source once it lands in production. Your team should confirm how each database is named and connected in every instance, which credentials the importing instance uses, and which items are expected to differ by environment. Metabase's serialization docs at the Metabase serialization documentation list what is and is not carried across, so use that list as the baseline for the mapping review rather than assuming a full copy.
The third and fourth areas are the Git review workflow and the verification checklist. A partner can set up the repository layout for the readable YAML, the pull request review steps, and the rule that production is only changed by an import from an approved commit. The checklist should cover a post-import comparison of collections and permissions, a check that the license token was not carried over, a test query against each database, and a rollback plan. Ask any partner to show a completed checklist from a dry run in a non-production instance, and confirm which of these tasks they would hand back to your own team to run.
How DeployOpen scopes and delivers Metabase serialization
DeployOpen plans and delivers Metabase serialization between environments inside your own infrastructure, from deciding what moves between instances to proving the import works on the target. The work runs under a written, fixed scope, with the Pro or Enterprise plan requirement, the CLI or API choice and the content exclusions agreed before any export is run.
How we scope
- Confirm your Metabase plan is Pro or Enterprise, since serialization is not available on Open Source or Starter.
- Map which collections, questions, dashboards and settings move between instances and which stay local.
- Agree whether the CLI or the API is used, noting the API is the only option on Metabase Cloud, in the written scope.
How we build
- Set up export and import runs against a staging instance so the YAML output is reviewed before it reaches production.
- Document the post-import steps for items that must be reconnected, such as database connections, credentials and license settings.
- Store the YAML in version control with a review step so changes to dashboards and questions are traceable.
How we hand over
- Deliver a runbook covering the export and import commands, the order of steps and the checks to run after each import.
- Provide a list of what is not carried across and the manual actions each environment needs to match the source.
- Walk your platform and analytics teams through a test promotion so they can repeat it without DeployOpen.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover, if you want it.
- Retest the promotion path after Metabase upgrades, since serialization output can change between versions.
- Review the scope with your team when new content types or environments are added.

