Skip setup wizard / Programmatically setup initial admin data

Hi folks!

Is there a way to programmatically setup admin user data when booting up a docker container of metabase, and skip the initial setup wizard experience?

One example use-case is if I need to bootup multiple separate/disposable metabase container instances (e.g. via Ansible script) and want to skip the initial setup wizard for each.

I've tried looking into using Environment Variables (metabase.com) to do this, but not sure which need to be setup, or if they would do the changes I need.

Thanks in advance,
Filipe

Hi @filfreire
You have to use the API. Everything you can do in the GUI can be done via the API.
https://www.metabase.com/docs/latest/api-documentation.html

The best way to learn the API, is to just use Metabase while having your browser developer Network-tab open and looking at the request, and what data is being send/received.

Here's an example of setting up an instance and creating some users:
https://www.metabase.com/learn/administration/serialization#add-users-to-our-metabase-origin-environment

1 Like