Skip to content


Hooks that will be called when a specific action is triggered in Kubb.


Hook that will be triggered at the end of Kubb's generation.
Useful for running Prettier or ESLint to format/lint your code.

  • Type: string | string[]
import { defineConfig } from '@kubb/core'

export default defineConfig({
  hooks: {
    done: ['npx prettier --write .'],
  input: {
    path: './petStore.yaml',
  output: {
    path: './src/gen',

Released under the MIT License.