chkit pull
Shortcut for chkit plugin pull schema. Introspects your live ClickHouse instance and generates a deterministic schema file (TypeScript, or Python under chkit-py).
Synopsis
Section titled “Synopsis”chkit pull [flags]| Flag | Type | Default | Description |
|---|---|---|---|
-o, --out-file <path> | string | — | Override output file path |
-d, --database <db> | string | — | Limit pull to specific databases (repeat or comma-separate) |
--dryrun | boolean | false | Print the operation plan without writing files |
-f, --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. Register the pull plugin in your config’s plugins array to set its options (outFile, databases, …). Without a registration, chkit pull and chkit plugin pull schema run the installed pull plugin with its defaults, as chkit-py does. A pull plugin registered with enabled: false stays off: the command then fails with exit code 1 and “Pull plugin is not configured. Add it to config.plugins first.”
In chkit-py, pull is a built-in command, so there is no plugin to register; chkit pull schema and chkit plugin pull schema run it too.
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