Skip to content

passwordless-OTP/metabase-cli

Repository files navigation

Metabase CLI

A command line service to interact with metabase instance at https://metabase.otp.plus. A simple, intuitive CLI to export and import configurations from metabase.

Installation

# Clone the repository
git clone <repository-url>
cd metabase-cli

# Install dependencies
npm install

# Make the CLI executable
chmod +x bin/metabase-cli.js

# Link the CLI globally
npm link

Usage

Export data from Metabase

metabase-cli export --output my-export.json

Import data to Metabase

metabase-cli import --input my-export.json

Configure Metabase connection

# Interactive configuration
metabase-cli config

# List all configuration values
metabase-cli config --list

# Get a specific configuration value
metabase-cli config --get baseUrl

# Set a specific configuration value
metabase-cli config --set username --value your_username

Configuration

You can configure the Metabase connection in two ways:

  1. By creating a .env file with the following variables:

    METABASE_URL=https://metabase.otp.plus
    METABASE_USERNAME=your_username
    METABASE_PASSWORD=your_password
    
  2. By using the configuration command:

    metabase-cli config

About

Metabase CLI for store visit analytics and dashboard generation

Resources

Stars

Watchers

Forks

Packages

No packages published