On this page
Kater CLI Delete and restore trash
kater trash fix
Fixes each object that reads a deleted object, in one change, as Fix in the Trash does.
With no options, Kater’s fix applies: what Kater selected reads in its place where a part can read it, a part that stands on its own goes, and the rest keeps showing Not available.
Examples
# See Kater's fix: the verdict, and each part's code before and after. Nothing changes.kater trash fix 3f1c9a20-5b7e-4d21-9a0e-1c2d3e4f5a6b --dry-run# Apply Kater's fixkater trash fix 3f1c9a20-5b7e-4d21-9a0e-1c2d3e4f5a6b# Put engaged_sessions in its placekater trash fix 3f1c9a20-5b7e-4d21-9a0e-1c2d3e4f5a6b --with engaged_sessions# Remove each part in place of a replacekater trash fix 3f1c9a20-5b7e-4d21-9a0e-1c2d3e4f5a6b --with none# Apply Kater's fix, but leave the dashboard's tile as it iskater trash fix 3f1c9a20-5b7e-4d21-9a0e-1c2d3e4f5a6b --part connections/duckdb_sample/workspaces/shop/dashboard.yaml#connections/duckdb_sample/workspaces/shop/dashboard.yaml:95=keepArguments
Options
It also takes the global options --json and --help.
What it answers
It gives the number of objects that it fixed, what Kater replaced and removed, and the number of parts that still show Not available. The last line is the kater undo command that takes the change back. When a part has no fix yet, nothing changes, and the command names the part to give a --part.
- Agents ask first. An agent runs
--dry-runfirst, tells you what will change, and runs the fix withkater_applyonly after you say yes.