Skip to content

chkit pull

Shortcut for chkit plugin pull schema. Introspects your live ClickHouse instance and generates a deterministic TypeScript schema file.

chkit pull [flags]
FlagTypeDefaultDescription
--out-file <path>stringOverride output file path
--database <db>stringLimit pull to specific databases (repeat or comma-separate)
--dryrunbooleanfalsePrint the operation plan without writing files
--forcebooleanfalseAllow overwriting an existing output file

Global flags documented on CLI Overview.

This command delegates to the pull plugin’s schema command. The pull plugin must be registered in your config’s plugins array with manifest.name equal to "pull".

If the pull plugin is not configured, the command fails with: “Pull plugin is not configured. Add a plugin with manifest.name “pull” to config.plugins.”

Terminal window
chkit pull --out-file ./src/db/schema/pulled.ts
Terminal window
chkit pull --database analytics --dryrun
CodeMeaning
0Success
1Error
2Invalid plugin options