Skip to main content
On this page

Kater CLI Build an analysis filter

kater filter set

Changes a filter's settings, as its cog does: its label, its switch, required or optional, its description and its words for an agent.

--name gives the filter a new name in every file of the workspace that names it.

Examples

Terminal window
# Go to the ad_reporting workspace in your local copy of Kater content
cd connections/snowflake_prod_connection/workspaces/ad_reporting
# Give the platform filter a new label, and start it off
kater filter set paid_media_spend_trend platform --label "Ad platform" --off --write
# Make the date filter required
kater filter set paid_media_spend_trend is_within_last__union__date_day --required --write
# Give the date filter a shorter name everywhere
kater filter set paid_media_spend_trend is_within_last__union__date_day --name last_12_months --write

Arguments

ArgumentDescription
<place>The query, as <workspace>/<name>, its key or its id, or the workspace, by its folder, its key or its id. Never a file.
<name>The filter’s name, as kater filter list shows it.

Options

OptionDescription
--label <text>A new label.
--off, --onStarts the filter on for a reader who made no choice for it. --off starts it off.
--optional, --requiredMakes it a REQUIRED_FILTER, which a reader cannot switch off. --optional makes it an OPTIONAL_FILTER.
--description <text>A new description. An empty text removes it.
--ai-context <text>New words for an agent. An empty text removes them.
--name <name>A new name, in every file of the workspace that names the filter.
--writeWrites the change. Without it, the command shows the SQL that it writes, as a diff, and what it reaches.

It also takes the global options anywhere on the line, and --help.

See also