← All tools

kysely-ctl

Popularity 65 Updated Development & Build

Command-line tool for Kysely

npmauto-collected

Installation

npm
npm install -g kysely-ctl

Install with npm.

<div style="width: 100%;" <img src="assets/banner.svg" alt="kysely in the terminal" width="100%" / </div

[](https://www.npmjs.com/package/kysely-ctl)

###### Join the discussion ⠀⠀⠀⠀⠀⠀⠀ [](https://discord.gg/xyBJ3GwvAm) [](https://bsky.app/profile/kysely.dev)

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:

<details <summaryWhen installed globally, <codekysely-ctl</code will be available as <codekysely</code in your terminal, anywhere.</summary

#### Node.js:

npm i -g kysely-ctl

or:

pnpm add -g kysely-ctl

#### Bun

bun add -g kysely-ctl

#### Deno

deno install -g -f npm:kysely-ctl@latest

</details