{"repo":"kysely-org/kysely-ctl","free":true,"listed":false,"github":"https://github.com/kysely-org/kysely-ctl","clone":"git clone https://github.com/kysely-org/kysely-ctl.git","description":"Command-line tool for Kysely, Knex-compatible, works in Node.js, Deno, Bun, etc.","language":"TypeScript","stars":315,"topics":["automation","cli","ctl","knex","kysely","migrations","mssql","mysql","postgres","seeds"],"license":"MIT","category":"databases-storage","readme_excerpt":"Join the discussion ⠀⠀⠀⠀⠀⠀⠀ kysely-ctl is the official command-line tool for Kysely. We strive to make it TypeScript-first, cross-platform (macOS, Linux, and Windows), cross-runtime (Node.js, Bun, and Deno), and cross-module system (ESM and CommonJS) compatible. We also aim to have feature parity with Knex.js's CLI. Install Prerequisites: kysely-ctl requires kysely = 0.18.1 to be installed in your project/s. System-wide installation: When installed globally, kysely-ctl will be available as kysely in your terminal, anywhere. Node.js: or: Bun Deno Project-scoped installation: Alternatively, you can install kysely-ctl in your project as a dev dependency, which will make it available as kysely in your project's package.json : Node.js: or: or: Bun Deno Use Configuration Currently, a kysely.config.ts file is required, in the project root OR .config folder. Run kysely init in your terminal to create one. Reuse Kysely instance defined elsewhere You can pass a Kysely instance, instead of dialect , dialectConfig & plugins : Custom migration/seed file prefixes To use Knex's timestamp prefixes: Extending configuration See c12 docs and the following example. Environment-specific configuration See c12 docs and the following example. Commands For more information run kysely -h in your terminal. Migrate The migrate module mirrors Knex.js CLI's module of the same name. Can now be called as either: or [!NOTE] rollback without --all flag is not supported, as Kysely doesn't keep track of \"migrat","default_branch":null,"files":null,"tree":[],"storefront":"/r/kysely-org","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kysely-org/kysely-ctl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}