/kubb:init [input-spec] [output-dir] [plugins]from Kubb
Scaffolds a kubb.config.ts and installs Kubb plugins by running the kubb init CLI. Accepts an OpenAPI spec, output directory, and comma-separated plugin list as arguments.
Ships in Kubb. Installing the plugin adds it to Claude Code.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
Scaffold Kubb in the current project by running the kubb init CLI in the terminal. The
arguments map to its flags: an OpenAPI spec (--input), an output directory (--output), and a
comma-separated plugin list (--plugins). Read the config skill before choosing plugins.
Parsed from $ARGUMENTS (ask only for what is missing):
Choose plugins. Map the requested outputs to @kubb/plugin-* packages with the config
skill. Values are Kubb registry ids, the same ones kubb add takes, such as plugin-ts or
plugin-zod. Browse them at https://kubb.dev/extensions.
Default to plugin-ts when the user is unsure. A framework plugin (plugin-react-query,
plugin-vue-query) also needs plugin-axios or plugin-fetch.
Run init with --yes and the chosen values so it never prompts:
npx kubb init --yes --input <input> --output <output> --plugins <comma,separated,list>
This writes kubb.config.ts and installs kubb plus the selected packages (--yes also
creates a package.json if the project has none). For a default setup, npx kubb init --yes
works without flags. If a config already exists, edit it by hand rather than rerunning init.
If init stops because a plugin needs another plugin, add that plugin to --plugins and run it
again.
Suggest running /kubb:generate next.
7-day visitors to each command page
3 commands in this plugin
npx claudepluginhub kubb-labs/kubb --plugin kubbOther plugins' commands for the same job