A TypeScript CLI tool (v1.0.9, MIT license) for analyzing WordPress sites and generating detailed migration effort estimation, reports, and scripts for transitioning to Payload CMS. Automatically discovers WordPress configuration, scans database schemas, plugins, themes, and custom content types, then produces multi-format reports (PDF, HTML, JSON, CSV, Markdown). Features AI-powered effort estimation, risk assessment, and migration script generation. Differentiates from generic migration tools by focusing specifically on Payload CMS, including plugin compatibility mapping and custom post type detection. Requires Node.js >=18 and TypeScript 5.8.3+.
npm install ts-wp-payload-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to run the CLI programmatically or use the analyze function directly with configuration options.
Set `"type": "module"` in package.json or use dynamic import: `const m = await import('ts-wp-payload-migration')`.Replace `ts-wp-payload-migration migrate` with `ts-wp-payload-migration analyze`.
Use `--silent` or `--log-level error` to suppress credential output.
Upgrade to Node.js 18 or newer, or use a transpiler that targets Node 16 as a workaround.
Always specify `--wp-root` if not running from the WordPress document root.
Use `--export tables` instead of `--csv-tables`.
Install locally: `npm install ts-wp-payload-migration --save-dev` and use npx: `npx ts-wp-payload-migration analyze`
Run `npm install mysql2` in your project.
Set `"type": "module"` in package.json or use `require('ts-wp-payload-migration')` is not supported; switch to dynamic import: `import('ts-wp-payload-migration')`