Overview
Themetadb init command creates a new Metadb data directory and configuration file. This is the first step when setting up a new Metadb instance.
Syntax
Options
Path to the data directory to create. This directory will store configuration and temporary data.
Enable verbose output to see detailed information during initialization.
Enable extremely verbose output for debugging (requires
METADB_DEV=on).What It Does
When you runmetadb init, the command:
- Creates the specified data directory if it doesn’t exist
- Generates a
metadb.confconfiguration file in the data directory - Sets up the directory structure for Metadb operations
Configuration File
The generatedmetadb.conf file will have this structure:
Required Configuration
After runninginit, you must edit metadb.conf to provide:
PostgreSQL server hostname
PostgreSQL server port (typically 5432)
Database name (must be
metadb or start with metadb_)Database superuser account (e.g.,
postgres)Password for the superuser account
Database user that owns the Metadb database
Password for the systemuser account
SSL mode for database connection (should be
require or stronger)Example
Example Configuration
After initialization, editdata/metadb.conf:
Next Steps
After initialization and configuration:- Ensure PostgreSQL is properly configured
- Verify database users and permissions exist
- Start the server with
metadb start
