A CLI for managing ClickHouse schemas and migrations in TypeScript projects. Current stable version is 0.1.0-beta.27 (pre-release, beta stage). It provides a declarative YAML-based schema definition, automatic migration generation, and simple CLI commands (init, status, up, down, new). Differentiators vs raw SQL migrations: type-safe schema definitions, migration history tracking, and rollback support. Released irregularly as beta.
npm install chkitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a new chkit project with config and directory structure.
Convert your chkit.json to chkit.yml with equivalent settings.
Run commands from the root directory or use --config to specify path.
Update config: replace 'migrationsDir' with 'migrations.path'.
Upgrade Node.js to version 16 or higher.
Install chkit as a dev dependency: npm install --save-dev chkit
Run 'npx chkit init' in the project root to create config.
Use import statement: import { defineSchema } from 'chkit'