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.
# 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 linkmetabase-cli export --output my-export.jsonmetabase-cli import --input my-export.json# 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_usernameYou can configure the Metabase connection in two ways:
-
By creating a
.envfile with the following variables:METABASE_URL=https://metabase.otp.plus METABASE_USERNAME=your_username METABASE_PASSWORD=your_password -
By using the configuration command:
metabase-cli config