Integrate Kubb with Studio, CI, and build tools
Run Kubb from Studio, from CI, or during your build. Each integration uses your shared kubb.config.ts.
Studio
CI
Build tools
Kubb runs generation during your build through unplugin-kubb, included with kubb. Each integration takes your kubb.config.ts as a single config object and generates when the tool builds. Without config, it loads kubb.config.ts like the CLI does.
Vite, Nuxt, and Astro generate during builds only. Run kubb generate before starting their development servers.
output.postGenerate commands. See Defaults.Import a spec
Import a *.openapi.yaml or *.openapi.yml file to get the output of every plugin in your config as one module, without generated files. A config without input only serves these imports.
import { type Pet, petStatusEnum } from './petStore.openapi.yaml'Code a plugin writes to a separate file, such as a bundled client runtime, is not included. For types in tsc and your editor, add openapi-import.