Skip to main content
On this page

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

CommandWhat it does
kater source writeCreate or replace a whole file with your text.
kater source rebasePoint a query or chart’s SQL at its own workspace.
kater source patchChange properties of a Kater file in place.

Examples

Terminal window
# Go to the ad_reporting workspace in your local copy of Kater content
cd connections/snowflake_prod_connection/workspaces/ad_reporting
# Set the label of the spend_by_platform query
kater 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 instead
kater source rebase query_contracts/clicks_by_platform.sql --move read_through

See also