On this page
Kater CLI Find and understand model
kater model search
Finds models and fields whose name, label, description, AI context, business questions or tags match some text.
The text is a regular expression, unless you give --literal. It reads only saved contracts, so nothing runs on the warehouse.
Examples
# Go to the connection's shared modelscd connections/snowflake_prod_connection/modeling# Find the models and fields that mention spendkater model search spend# Find the ones that mention clicks or impressionskater model search 'clicks|impressions'# Find the exact text "cost per session", not a patternkater model search 'cost per session' --literal# Find at most 20 matches, with upper and lower case exactkater model search Spend --case-sensitive --limit 20Arguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
What a match shows
Each match names the model or the field, and the key that matched, such as description. It also gives the whole value, with the place of the text in it. When more matches remain than --limit allows, the answer has truncated set to true.