Installation
Environment
Node.js version >18
Kubb has a minimal support of Node.js version 18.0.0.
WARNING
Node.js versions prior to Node.js 18 are no longer supported. To use Kubb, please migrate to Node.js 18 or higher.
https://nodejs.org/en/blog/announcements/nodejs16-eol
TypeScript version >4.7
Kubb has a minimal support of TypeScript version 4.7.
If you are using an older TypeScript version, please migrate to version 4.7 or later to use Kubb. Please consider that at the moment of writing this TypeScript 4.6 is almost two years old.
Latest 1.14.9
You can install Kubb via NPM.
shell
bun add @kubb/cli @kubb/core
bun add @kubb/cli @kubb/core
shell
pnpm add @kubb/cli @kubb/core
pnpm add @kubb/cli @kubb/core
shell
npm install @kubb/cli @kubb/core
npm install @kubb/cli @kubb/core
shell
yarn add @kubb/cli @kubb/core
yarn add @kubb/cli @kubb/core
Canary canary
Kubb also publishes a canary version on every commit to the main branch.
To install the canary version:
shell
bun add @kubb/cli@canary @kubb/core@canary
bun add @kubb/cli@canary @kubb/core@canary
shell
pnpm add @kubb/cli@canary @kubb/core@canary
pnpm add @kubb/cli@canary @kubb/core@canary
shell
npm install @kubb/cli@canary @kubb/core@canary
npm install @kubb/cli@canary @kubb/core@canary
shell
yarn add @kubb/cli@canary @kubb/core@canary
yarn add @kubb/cli@canary @kubb/core@canary
Alpha alpha experimental
Kubb also publishes an alpha version which contains experimental features that are not production ready.
shell
bun add @kubb/cli@alpha @kubb/core@alpha
bun add @kubb/cli@alpha @kubb/core@alpha
shell
pnpm add @kubb/cli@alpha @kubb/core@alpha
pnpm add @kubb/cli@alpha @kubb/core@alpha
shell
npm install @kubb/cli@alpha @kubb/core@alpha
npm install @kubb/cli@alpha @kubb/core@alpha
shell
yarn add @kubb/cli@alpha @kubb/core@alpha
yarn add @kubb/cli@alpha @kubb/core@alpha