chkit pull
Shortcut for chkit plugin pull schema. Introspects your live ClickHouse instance and generates a deterministic TypeScript schema file.
Synopsis
Section titled “Synopsis”chkit pull [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--out-file <path> | string | — | Override output file path |
--database <db> | string | — | Limit pull to specific databases (repeat or comma-separate) |
--dryrun | boolean | false | Print the operation plan without writing files |
--force | boolean | false | Allow overwriting an existing output file |
Global flags documented on CLI Overview.
Behavior
Section titled “Behavior”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.”
Examples
Section titled “Examples”chkit pull --out-file ./src/db/schema/pulled.tschkit pull --database analytics --dryrunExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error |
| 2 | Invalid plugin options |
Related
Section titled “Related”- Pull plugin reference — full documentation for configuration and output format
chkit plugin— list and run plugin commands directly