A CLI tool for generating TypeORM migrations and table schemas for PostgreSQL with TypeScript support. Current stable version is 0.1.1. It automates migration file creation, schema management, and integrates with TypeORM. Key differentiators: TypeScript-first, automated timestamp handling, custom templates, and support for complex relationships. Release cadence is irregular as it's in early development.
npm install cca-migration-generatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installation, configuration, and basic migration generation using the CLI.
Rename cca-migration-generator.json to cca.config.json and update the structure per the latest docs.
Update typeorm to version >=0.3.0 in your project.
Run the CLI from the root of your project where cca.config.json is located.
Change to the project root directory where cca.config.json exists, or specify a custom path using --config option if available.
Ensure PostgreSQL is running and that cca.config.json has correct host and port (default 5432).
Use a unique migration name, or delete the existing migration file before generating a new one.
Run 'npm install typeorm' to install the peer dependency.