CLI migration engine for Lovable.dev projects — auto-detects stack (React, Vite, Supabase, Tailwind, shadcn/ui), generates Dockerfile (multi-stage), GitHub Actions CI/CD workflows (ci.yml + release.yml), and a comprehensive deploy plan including Supabase migrations and edge functions. v0.3.5, stable, requires Node >=20.0.0. Key differentiators: zero modification of original project, automatic Supabase detection (auth, storage, realtime, migrations, functions), wizard and demo modes. Ships TypeScript types.
npm install lovable-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs the full migration pipeline: analysis, plan generation, Dockerfile, GitHub Actions, and deploy instructions.
Upgrade Node.js to v20 or later (e.g., via nvm: `nvm install 20`).
Remove the --stack flag; let the CLI auto-detect your stack.
Always specify a fresh output directory, or ensure you have backed up any existing content.
Ensure your project includes a .env file with the required variables, or run `lovable-migrate ui` for interactive setup.
Edit the generated `ci.yml` and `release.yml` to replace `npm` with `yarn` or `pnpm` as needed.
Use `npx lovable-migrate ...` instead of `lovable-migrate ...` without npx.
Run `npx lovable-migrate ...` or install locally with `npm install --save-dev lovable-migrate` and use `./node_modules/.bin/lovable-migrate`.
Use `import { migrate } from 'lovable-migrate'` instead of `import lovableMigrate from 'lovable-migrate'`.Ensure the input project path exists and is a valid Lovable.dev project directory.