Kater CLI Build an analysis source
kater source
Writes your Kater content files by hand: whole files, single properties, and the workspace that a query's SQL reads.
Use these commands for changes that no other kater command makes.
Commands
| Command | What it does |
|---|---|
kater source write | Create or replace a whole file with your text. |
kater source rebase | Point a query or chart’s SQL at its own workspace. |
kater source patch | Change properties of a Kater file in place. |
Examples
# Go to the ad_reporting workspace in your local copy of Kater contentcd connections/snowflake_prod_connection/workspaces/ad_reporting# Set the label of the spend_by_platform querykater source patch query_contracts/spend_by_platform.sql --edits '[{"at": "label", "value": "Spend by platform"}]'# Make a query that reads the shared model read its workspace insteadkater source rebase query_contracts/clicks_by_platform.sql --move read_through