YAML to OSQL translator for Profilarr PCD 2.0 migration. Converts PCD 1.0 databases (YAML files) into PCD 2.0 format (Operational SQL).
# install dependencies once
npm install
# run the converter directly from TypeScript during development
npx tsx src/index.ts -i /path/to/yaml-database -o ops/1.initial.sql| Flag | Description | Default |
|---|---|---|
-i, --input <dir> |
Input directory containing YAML files | ./data/input |
-o, --output <file> |
Output SQL file path | ./data/ops/1.initial.sql |
-d, --dry-run |
Output SQL to console instead of writing to file | |
-q, --quiet |
Suppress verbose output | |
-h, --help |
Show help message |
- Node.js 18+
- npm (or pnpm/yarn)