tdk fn patch
Register a code-only patch of a function version.
A patch shares the parent's topology (tables, dependencies, triggers, workers) — only bundle / snippet / runtime values / description can be overridden. Patches are reachable only by explicit fvid via replay.
tdk fn patch \
--proj quickstart \
--name read_world \
--coll sales_data \
--fn-version fv-9d21ac \
--path functions/read_world.py::read_world \
--description Ingests raw sales data from Postgres \
--dir-to-bundle ./qs-example
| Flag | Type | Required | Description |
|---|---|---|---|
--proj, -P | string | Optional | Project to target; overrides the pinned project. Prompted for when a command needs one and neither is set. |
--name, -n | string | Required | Name of the function to patch. |
--coll, -c | string | Optional | Name of the collection to which the function belongs. |
--fn-version | string | Optional | Function-version id (fvid) this patch overrides. Use 'tdk fn get --show-history' to find available fvids. |
--path | string | Required | Path to the function file. Must be of the form '/path/to/file.py::function_name'. Will be prompted for it if not provided. |
--description | string | Optional | Description of the patch. |
--dir-to-bundle | string | Optional | Path to the directory that should be stored in the bundle for execution in the backend. If not provided, the folder where the function file is will be used. |