A CLI tool (v0.1.0, pre-release) for interactively generating MikroORM migration files without requiring a MikroORM configuration or being inside a project folder. Integrates with KnexJS for migration generation. Currently supports only migration files without relations; relation support is planned. Not yet stable for production use.
npm install mikro-orm-interactive-generatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows programmatic use of generateMigration to create a migration for a 'users' table with common columns.
Wait for a future version that adds relation support or manually edit generated migrations to add relations.
Use `import` syntax or dynamic import if inside a CommonJS file.
Install globally with `npm i -g mikro-orm-interactive-generator` or use `npx mikro-orm-interactive-generator`.
Use `moig create` if available in your version, or check `moig --help` for current usage.
Manually add down/rollback logic to generated migration files if needed.
Run `npm install -g mikro-orm-interactive-generator` or use `npx mikro-orm-interactive-generator`.
Use `import moig from 'mikro-orm-interactive-generator'` and call `moig.generateMigration()`.
Change to `import` syntax or use dynamic `import()`.