Skip to content

Script to update and duplicate question/card in Metabase

License

Notifications You must be signed in to change notification settings

SartMorgs/metabase-migration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version

Metabase Migration

Script to update and duplicate Question in Metabase using Metabase REST API.

Here is a blog post on how we approach managing multiple environments in Embedded Metabase https://medium.com/itmi-engineering/managing-multiple-environments-with-embedded-metabase-87b074ea9aad

How to use

Clone this repository and npm install

Create .env file in root folder that contains

METABASE_BASE_URL=xxx
METABASE_USERNAME=xxx
METABASE_PASSWORD=xxx

Update Question

node app.js update —-originId=[question_id] --destId=[question_id] —-databaseId=[database_id]

Duplicate Question

node app.js duplicate —-questionId=[question_id] --collectionId=[collection_id] -—name=[name] -—databaseId=[database_id]

--name is optional, if it's not provided it will use the same question name.

Work in Progress

  • Duplicating or updating question between different metabase instance
  • Duplicating or updating Dashboard

About

Script to update and duplicate question/card in Metabase

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%